简体   繁体   中英

Error message Strict standards in Joomla Website

Joomla Website URL: http://gero-teufert.de/impro_for_biz3/index.php

We are getting several errors on this Joomla Website since we updated the PHP version.

Errors Like:

Strict Standards: Non-static method JApplication::getMenu() should not be called statically in /var/www/l3s8433/html/impro_for_biz3/includes/application.php on line 540

We have solved the errors on our local machine by editing the php.ini file and Joomla config file but since we do not have access to this file on server, we could not do it.

Is there anyway we could solve these errors by editing Joomla files as we were were able to solve some errors and few are still left.

You are getting this error because your error reporting is set to On in your configuration.php . To fix go to "global config" and go to /server/ Error reporting/ set to none . This should work.

If your hosting service uses FastCGI, you must have your own copy of php.ini (maybe with a slightly different name) somewhere in your FTP account. Alternatively, you should be able to configure PHP with a .user.ini file.

If it runs PHP as Apache module, you can use .htaccess . It's worth nothing that the syntax is different and you cannot use constants like E_ALL :

php_value error_reporting -1

If it's using another SAPI, please provide the appropriate info.

BTW, you aren't actually solving the errors. You are just hiding them ;-)

Open configuration.php in the main joomla directory. Set $error_reporting to '6135' .

For me it was line 23, and after editing it looked like this:

public $error_reporting = '6135';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM