Forums › Forums › Search & Filter Pro › PHP Notice
- This topic has 4 replies, 2 voices, and was last updated 7 years, 7 months ago by Trevor.
-
Anonymous(Private) April 2, 2017 at 3:18 pm #100974
Hi, I’ve installed the plugin and working fine, but with 404 error pages, I get on the header this message repeated 5 times:
Notice: Trying to get property of non-object in /var/www/vhosts/egserver.net/test-turismemalgrat.com.egserver.net/wp-content/plugins/search-filter-pro/includes/class-search-filter-wp-data.php on line 202
I don’t have the plugin seted up in the 404 page and it’s appearing the notice.
Any idea?Anonymous(Private) April 3, 2017 at 9:45 am #101068Hi Trevor,
I show you an incorrect URL:
http://test-turismemalgrat.com.egserver.net/asdasdIt’s working in other urls but I don’t want it to show in 404 pages. I don’t have it setup there.
On the display results, my search form is just in archive pages.http://test-turismemalgrat.com.egserver.net/establiments/
http://test-turismemalgrat.com.egserver.net/categoria-gaudeix/agenda-activitats/
http://test-turismemalgrat.com.egserver.net/restaurants/
http://test-turismemalgrat.com.egserver.net/allotjament-categoria/hotels/Trevor(Private) April 3, 2017 at 12:37 pm #101102I see the errors, yes. For now, the easy ‘fix’ to to change the way PHP handles errors on your site.
These two pages from the PHP manual should help:
http://php.net/manual/en/errorfunc.configuration.php#ini.display-errors (you may have to scroll back up the page by 2cm to see the start for that section). Note how it says:
Note:
This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet).
But many servers have it ON by default (PHP 7 has it off by default).
Also this page:
-
AuthorPosts