开发者

Strict Standards error in joomla1.7

开发者 https://www.devze.com 2023-03-29 08:54 出处:网络
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.

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:

  1. Go to "administrator" window
  2. Under "global configuration" select "server"
  3. 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.


  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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号