我有一個Mambo CMS網站託管與000webhost。該網站由Mambo 4.6.2提供支持。和PHP Version 5.2.13安裝在000webhost Web服務器上。該網站運行良好。PHP致命錯誤:調用未定義的方法mosMenu :: mosDBTable()
自從我上次在網站上工作並且該網站不再有效後,我已將我的開發計算機的操作系統升級到Ubuntu 10.04。本機已安裝PHP版本5.3.2-1ubuntu4.2。
我谷歌搜索'PHP致命錯誤:調用未定義的方法mosMenu :: mosDBTable()',這導致我這thread on the Mambo Forums。
上面的線程建議在php.ini中使用以下設置:error_reporting = E_ALL | ~E_STRICT
和zend.ze1_compatibility_mode true
。我想這一點,其產生17個附加錯誤:
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/index.php on line 170
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/index.php on line 270
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/index.php on line 323
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/index.php on line 328
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/database.php on line 777
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 407
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 426
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 533
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 1148
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 1676
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 2615
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 2621
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 2627
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 2633
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 2639
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 2668
PHP Deprecated: Function ereg_replace() is deprecated in /home/mike/Public/mambo/includes/core.classes.php on line 2978
PHP Fatal error: Call to undefined method mosMenu::mosDBTable() in /home/mike/Public/mambo/includes/core.classes.php on line 897
相同的代碼運行而不000webhost的服務器上的錯誤(其中也有PHP 5安裝)。我想知道的是,是否可以配置PHP 5/Apache 2來運行不推薦使用的代碼,而無需編輯代碼本身?
謝謝,
邁克
你也應該有問題的代碼發佈:) – Sarfraz 2010-08-21 20:51:25