2011-10-14 92 views
8

在我本地的xampp中安裝和配置Joomla 1.5 CMS。安裝Joomla時出錯

我安裝後,

當我訪問Joomla網站。它顯示一些錯誤消息。

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 29 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 32 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JRequest::clean() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 33 

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\environment\request.php on line 463 

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\environment\request.php on line 464 

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\environment\request.php on line 465 

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\environment\request.php on line 466 

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\environment\request.php on line 467 

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\environment\request.php on line 468 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 35 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 38 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 39 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 46 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 47 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 50 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 53 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 54 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 57 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\import.php on line 58 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JFactory::getApplication() should not be called statically in C:\xampp\htdocs\mywebsite\index.php on line 31 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Redefining already defined constructor for class JObject in C:\xampp\htdocs\mywebsite\libraries\joomla\base\object.php on line 57 

Strict Standards: Non-static method JApplication::getInstance() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 46 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JApplicationHelper::getClientInfo() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\application\application.php on line 132 

Strict Standards: Declaration of JSite::getRouter() should be compatible with that of JApplication::getRouter() in C:\xampp\htdocs\mywebsite\includes\application.php on line 377 

Strict Standards: Declaration of JSite::getPathWay() should be compatible with that of JApplication::getPathway() in C:\xampp\htdocs\mywebsite\includes\application.php on line 377 

Strict Standards: Declaration of JSite::getMenu() should be compatible with that of JApplication::getMenu() in C:\xampp\htdocs\mywebsite\includes\application.php on line 377 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\application\application.php on line 732 

Strict Standards: Non-static method JFactory::_createConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 73 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\registry\registry.php on line 19 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JUtility::getHash() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\application\application.php on line 101 

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\utilities\utility.php on line 111 

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\application\application.php on line 384 

Strict Standards: Non-static method JFactory::getSession() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\application\application.php on line 770 

Strict Standards: Non-static method JFactory::_createSession() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 94 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 501 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Declaration of JSession::set() should be compatible with that of JObject::set() in C:\xampp\htdocs\mywebsite\libraries\joomla\session\session.php on line 737 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\joomla\session\session.php on line 19 

Strict Standards: Non-static method JSession::getInstance() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 507 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JSessionStorage::getInstance() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\session\session.php on line 108 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JFilterInput::clean() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\session\storage.php on line 57 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JFactory::getDBO() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\session\storage\database.php on line 64 

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 268 

Strict Standards: Non-static method JFactory::_createDBO() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 271 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 186 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 71 

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 551 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JDatabase::getInstance() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 563 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JError::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\factory.php on line 565 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 138 

Strict Standards: Non-static method JTable::getInstance() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mywebsite\libraries\joomla\session\storage\database.php on line 69 

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on line 161 

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\mywebsite\libraries\loader.php on lin 

回答

16

「嚴格標準」在技術上並不是一個錯誤,它是說你安裝的Joomla版本並不嚴格遵守PHP標準,你想要做的是兩件事:首先,限制php中的錯誤報告。 ini不要將標準違規報告爲錯誤,那麼(當您準備好上線時),關閉Joom la錯誤報告。

在您的php.ini中,更改 error_reporting = E_ALL | E_STRICT 至 error_reporting = E_ALL &〜E_NOTICE

重新啓動xampp以應用更改。

在Joomla的的configuration.php文件,更改$使用error_reporting值6135.

+0

我剛剛用過這個,謝謝! – Drewdin

+0

我面臨同樣的錯誤!但你的解決方案不能幫助我:( –

10

謝謝你們。我找到了解決方案

您需要停用php.ini中顯示的PHP錯誤和警告。 您可以聯繫您的託管服務提供商,或者您可以自己做(如果您有權訪問該文件)。

如果你沒有訪問php.ini文件,你可以嘗試編輯你的htaccess文件。 (你會發現在你的Joomla!安裝的根文件。如果名稱爲htaccess.txt,記得將其重命名爲.htaccess。

寫這.htaccess文件

代碼

# supress php errors 
php_flag display_startup_errors off 
php_flag display_errors off 
php_flag html_errors off 
php_value docref_root 0 
php_value docref_ext 0 
+0

是哪個版本的PHP你在用嗎?這可能是因爲Joomla 1.5使用PHP 5.3(5.3之前的版本,並不是真正爲它構建的)。 – KingJackaL

+1

@KingJackaL大部分MAMP/WAMP/XAMPP捆綁包都預先配置了PHP 5.3,或多或少地使用默認配置。正如你所提到的,雖然Joomla 1.5爲5.3補丁,但它不一定是爲它設計的。 – jlleblanc

+0

是的..謝謝哥們;)你節省了我很多時間;) –

0

在XAMPP/PHP/php.ini的變化

1.display_errors=Off 
    2.error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING 

然後重新啓動XAMPP