Reputation: 143
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
Upvotes: 1
Views: 20856
Reputation: 1
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
Upvotes: -1
Reputation: 1958
Joomla adminpanel:=
Go to "administrator"
Under "global configuration" select "server"
In "server settings" set "Error Reporting" to "none" or "simple".
Upvotes: -1
Reputation: 2304
Change file php/config.php
CHANGE LINE: error_reporting = E_ALL | E_STRICT
TO: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
Upvotes: -1
Reputation: 230
Simplest solution to this problem is:
Upvotes: 2
Reputation: 9
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.
Upvotes: 0
Reputation: 9
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
Upvotes: 0
Reputation: 71
go to the file that cause error and change $this->_handler to self::$_handler
Upvotes: 7
Reputation: 9
run-C:\xampp\php\php.ini; open with Notepad, Ctrl+H; find: e_strict, replaced:-empty-; replaced all; save; close.
Upvotes: 0
Reputation: 47620
display_errors = Off
should work. To find where it seted to On It maybe
To know what files used as php.ini you can use phpinfo(); and find path php.ini there
Upvotes: 3