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, Shanmug开发者_如何学JAVAam
go to the file that cause error and change $this->_handler to 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:
- Go to "administrator" window
- Under "global configuration" select "server"
- In "server settings" set "Error Reporting" to "none" or "simple".
run-C:\xampp\php\php.ini; open with Notepad, Ctrl+H; find: e_strict, replaced:-empty-; replaced all; save; close.
Stop Apache and mysql services ( you may have to do it through SCM in Xampp control Panel)
open c:/xampp/php/php.ini
find Display_Error
there are two entries for Display_error one is with ; in start that is a comment second without ;
change Display_Error Off ( default it is On)
Start the services back.
http://localhost/joomla### and it should work.
**For those using Xampp 1.7.4, etc. the file is /opt/lamp/etc/php.ini
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
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
精彩评论