1

I'm getting this error in two areas - one on the frontend here...

http://82.147.12.196/~securato/besafe-izi-up-x3-fix

Click the 'first to review this product' link on the above page and you will see of them.

The other occurs in the admin when accessing Review>Manage Ratings. This error reads...

Fatal error: Call to a member function getIdByCode() on boolean in /home/securato/public_html/app/code/core/Mage/Adminhtml/controllers/RatingController.php on line 154

Any help will be much appreciated.

7
  • Could you add that line 154 in your question please? Commented Dec 4, 2015 at 13:45
  • Sorry, this is the link for the first error securatot.co.uk/axkid-minikid-214
    – PhilW
    Commented Dec 4, 2015 at 14:09
  • Line 154 is.... Mage::register('entityId', Mage::getModel('rating/rating_entity')->getIdByCode('product'));
    – PhilW
    Commented Dec 4, 2015 at 14:11
  • Could you dump what is Mage::getModel('rating/rating_entity')? Seems weird that it would just be a boolean. Is it something you wrote or are you using base Magento functionalities? Commented Dec 4, 2015 at 14:23
  • No, haven't touched this during development. In fact it was working on a dev space here... dev---securatot---dev.co.uk/izi-go-modular-black-cab
    – PhilW
    Commented Dec 4, 2015 at 14:26

1 Answer 1

0

I have the same issue. PhilW, how did you solve this?. Can your share it with the community?. I'm investigating about the issue and did the following:

  1. Reinstall the rating tables.
  2. Compare my tables content with a fresh installation and both match perfectly.
  3. Overwrite completely app/code/core/Mage/Rating

And is still not working. It always return Call to a member function getIdByCode() on boolean in ....app/code/core/Mage/Rating/Model/Rating/Entity.php on line 4

..Fatal error: Call to a member function getIdByCode() on boolean ..RatingController.php on line 154

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.