简体   繁体   中英

Strict Standards error in joomla1.7

I'm trying to create a web page using Joomla and XAMPP.

I'm getting Strict Standards in all parts of page... This is annoying.

Strict Standards: Static function JDatabase::test() should not be abstract in C:\\xampp\\htdocs\\Joomla17\\libraries\\joomla\\database\\database.php on line 350

Strict Standards: Accessing static property JCache::$_handler as non static in C:\\xampp\\htdocs\\Joomla17\\libraries\\joomla\\cache\\cache.php on line 394

Strict Standards: Accessing static property JCache::$_handler as non static in C:\\xampp\\htdocs\\Joomla17\\libraries\\joomla\\cache\\cache.php on line 396

One more thing i tried to change php.ini file. I have two files in Joomla 1.7. php INI-Devlolpment php INI-Production

Whats difference between both?

I tried many thing to switch off strict standards:

; display_errors

; Default Value: Off

; Development Value: Off

; Production Value: Off

also

; error_reporting

; Default Value: E_ALL & ~E_DEPRECATED

; Development Value: E_ALL & ~E_DEPRECATED

; Production Value: E_ALL & ~E_DEPRECATED

also

error_reporting = E_ALL & ~E_DEPRECATED

also

display_errors = Off

Still i'm getting these errors?

Please help me to solve this.. Thanks, Shanmugam

转到导致错误的文件,然后将$ this-> _ handler更改为self :: $ _ handler

display_errors = Off

should work. To find where it seted to On It maybe

  • php.ini
  • httpd.conf
  • .htaccess
  • php code

To know what files used as php.ini you can use phpinfo(); and find path php.ini there

Simplest solution to this problem is:

  1. Go to "administrator" window
  2. Under "global configuration" select "server"
  3. In "server settings" set "Error Reporting" to "none" or "simple".
  1. Stop Apache and mysql services ( you may have to do it through SCM in Xampp control Panel)

  2. open c:/xampp/php/php.ini

  3. find Display_Error

  4. there are two entries for Display_error one is with ; in start that is a comment second without ;

  5. change Display_Error Off ( default it is On)

  6. Start the services back.

  7. http://localhost/joomla### and it should work.

**For those using Xampp 1.7.4, etc. the file is /opt/lamp/etc/php.ini

run-C:\\xampp\\php\\php.ini; open with Notepad, Ctrl+H; find: e_strict, replaced:-empty-; replaced all; save; close.

In my php.ini in the XAMPP lines below

532 ;http://php.net/display-errors
533 display_errors = On

to

532  ;http://php.net/display-errors
533  display_errors = Off

Stopped and then restarted Apache server and that make the annoying errors disappear.

Change file php/config.php

CHANGE LINE: error_reporting = E_ALL | E_STRICT error_reporting = E_ALL | E_STRICT

TO: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

Joomla adminpanel:=

Go to "administrator"
Under "global configuration" select "server"
In "server settings" set "Error Reporting" to "none" or "simple".

open xampp/php/php.ini with WordPad, then make Ctrl+F type Display_Error push find, there are two findings, yours is second. you'll see display_errors line with "on" next to it, just change it to off, Ctrl+s (you must save). should work

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