When UB Shop by is disabled search returns error

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

Profile photo of Mall Staff 184060.00 $tone February 18, 2016
Public

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.

#3
Profile photo of Mall Staff 184060.00 $tone February 18, 2016
Public

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.

#5

Please login or Register to Submit Answer

Written By

Comments