Jump to content

Search Override Error


Kwash

Recommended Posts

Hi Guys,

 

We are getting a error which is really bugging us in regards to our search, this is the message which is popping up.

 

Notice: Undefined property: Possearchcategories::$_html in /home/ngahcom/public_html/modules/possearchcategories/possearchcategories.php on line 237

Parse error: syntax error, unexpected '{', expecting function (T_FUNCTION) in /home/ngahcom/public_html/override/classes/Search.php on line 166

 

How do we fix, 

 

regards

Link to comment
Share on other sites

It's hard to help, since we don't have access to that module. It would seem the module is trying to read $_html, which doesn't exist, and it's override has a { when function was expected.

 

I suggest that you contact the theme developer. If they're not responding, post override/classes/Search.php here.

Link to comment
Share on other sites

Notice: Undefined property: Possearchcategories::$_html in /home/ngahcom/public_html/modules/possearchcategories/possearchcategories.php on line 237

 

 

 

I guess the module does not include the definition of $_html

Try to add following line in file possearchcategories.php

protected $_html;

Add above line after following lines

 

class possearchcategories extends Module
{
 

 

It will become

class possearchcategories extends Module
{

    protected $_html;
Edited by shokinro (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...