- This topic has 3 replies, 3 voices, and was last updated 11 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › How to turn off strict standards error warnings in PHP 5.4
Tagged: error warnings, strict standards
I have moved from PHP 5.2 to PHP 5.4 and am getting strict standards error messages such as
Strict Standards: Non-static method dbAccess::find() should not be called statically in /homepages/32/d419215780/htdocs/wp-content/plugins/wp-eMember/eMember_registration_utils.php on line 674
It seems that PHP 5.4 includes E_STRICT in E_ALL
Have tried setting setting
php_flag display_errors off
in htaccess, but that fails to display web page gives 500 error
Don’t have access to php.ini, but created a local php.ini and added line
error_reporting = E_ALL & ~E_STRICT
and placed php.ini file in emember folder, but that didn’t make any difference.
Is there a way that I can turn off the default PHP 5.4 strict standards error reporting?
Thanks for your query. We will add a fix for this asap.
We have updated the plugin to remove references to the “static” keyword so you shouldn’t see this issue in PHP5.4 install anymore. Please load a fresh new copy of the plugin now:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
Thanks for the very quick, excellent response. It all works fine now.