Hello,
I disabled Shop by because i face problem with varnish cache.
But when UB Shop by is disabled search returns 500 server error.
error log file has the line below
PHP Fatal error: Call to a member function getMetaTitle() on a non-object in /home/thedresscode/public_html/app/code/core/Mage/Catalog/Block/Category/View.php on line 44
http://thedresscode.gr/
Thanks in advance,
5 answers
Hi Alex Asimakopoulos,
I need a closer look to detect the root of issue as you said, let’s provide me the admin and ftp credentials of your site.
Regards,
Mall.
Hi Alex Asimakopoulos
To sole the issue as you said, i have create a backup adn added more bellow function to the PHP file at path:
app/code/local/Ubertheme/UbShopby/Block/Catalog/Category/View.php
Function added:
public function __construct($attributes = array())
{
parent::__construct();
if(!$this->_helper->enableUbshopby()) {
return true;
}
}
Have a look again and tell me know how it goes.
Regards,
Mall.
Thanks for quick reply,
This didnt solve the problem it also give an other problem 500 server error while you visit categories.
I return the old View.php for now.
Hi Alex Asimakopoulos,
Sorry you about my wrong code at first reply.
The function should be:
public function __construct($attributes = array())
{
$this->_helper = Mage::helper('ubshopby');
if(!$this->_helper->enableUbshopby()) {
return parent::__construct();
}
}
Also, to disable all affect functions of a module, you can disable it from the xml config file at path:
/app/etc/modules/Ubertheme_UbShopby.xml
See more: http://i.imgur.com/r78GDO0.png
=> I have do it for you. Have a look and contact me if you need further assistance.
Regards,
Mall.