3

I have recently created a staging environment. Back-end works fine. But when I load my staging site I get the following error:

Fatal error: Class 'Mage_Wishlist_Block_Customer_Sidebar' not found in /html/app/code/core/Mage/Core/Model/Layout.php on line 491

I have tried to fix it by clearing all kinds of Caches, and updating layout.php file (app/code/core/Mage/Core/Model/Layout.php):

$out .= $this->getBlock($callback[0])->$callback[1]();

replaced with this one.

$out .= $this->getBlock($callback[0])->{$callback[1]}();

It didn't work.

Can you please help me resolve this, please?

  • 1
    make sure the file app/code/core/Mage/Wishlist/Block/Customer/Sidebar.php exists and it is readable. – Marius Jan 31 '17 at 8:37
  • @Marius Wow this really helped, finally my staging site is up and running, however, it has different theme colors. I believe I can fix those from the theme configuration settings. – Faheem Ahmad Feb 2 '17 at 4:42
1

There is only two scenario when you have this issue

1st as Marius said check the class file exist : app/code/core/Mage/Wishlist/Block/Customer/Sidebar.php

2Nd : please check Mage_Whistlist module is enable in system->configuration->Advanced

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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