ZenphotoCMS Forum
Weird Search page error - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Weird Search page error (/thread-9318.html)



Weird Search page error - micheall - 2011-11-26

So i'm doing a site redesign, and I started getting this error:

Quote:[warn] mod_fcgid: stderr: PHP Fatal error: Cannot access protected property SearchEngine::$category_list
At first I thought I fat-fingered something in my search page, and to no avail. I then copied the search page from the zenpage installation and it's doing the exact same thing.

The weird thing is, it doesn't do it if I use the zenpage theme. However when I use the zenpage search.php file I still get the above error.

Is there search related calls that need to be on the other pages for a search to happen properly now?

I can comment out the section that does the checking if something is > 0, but then of course doing that the search comes back fine showing results, but then also displays the "no results" message.




Weird Search page error - acrylian - 2011-11-26

I have never seen that error and actually other pages only have the search form. The Zenpage page uses some special theme functions related to search that are stored within theme's functions.php. But those are actually pure JS ones to show/hide the Zenpage search results only.

Did you do a file compare? Do you use a category specific search or so on any page?




Weird Search page error - sbillard - 2011-11-26

With the advent of requriring PHP5 we have been able to tighten up our Objects. Most likely your theme is using $searchengine->category_list rather than the method $searchengine->getCategoryList() The former is not allowed (and should not have been used anyway) It is now enforced this way by making the property a protected property which was not possible in PHP4.




Weird Search page error - micheall - 2011-11-26

Ahh, that's what it is. the zenpage search.php (which I copied over to troubleshoot) still uses category_list and album_list. Changing those over to getCategoryList() and getAlbumList() fixed the problem.




Weird Search page error - sbillard - 2011-11-27

You need to be careful not to mix and match releases. Yes the 1.4.1 version of Zenpage did use the properties incorrectly. But then the 1.4.1 version of the search object did not protect them either.

In the 1.4.2 Beta Zenpage does use the proper methods.




Weird Search page error - micheall - 2011-11-27

Yeah that's what had happened, not sure where I found the old file from, was almost positive I had wiped all the old files away. Now I have to go through it all with a fine tooth comb, lol. Oh wells. A good way to spend a Sunday I guess.




Weird Search page error - baddco - 2011-11-28

I believe that is part of the security hack. When mine comes up through a Google search, it comes up as some RoadRunner page, and I can't back out of it. I have to close the page. I've been told it won't actually be removed/back to normal until Google... probably every search engine, flushes their caches. Really annoying.




Weird Search page error - micheall - 2011-11-29

No, I was talking about the zenphoto search engine causing the error in my apache log, not anything from the exploit and google's flagging of my site.




Weird Search page error - acrylian - 2011-11-29

baddco: It helps to really read topics you reply to... That's how seach engines work since always...




Weird Search page error - mowgli597 - 2012-01-03

This one caught me too. Thanks for the fix!!

Mike




Weird Search page error - acrylian - 2012-01-03

It is a good idea to subscribe to one of our news facilities to get notified. The issue was almost two months ago! http://www.zenphoto.org/#stay-tuned