今天我们的网站anattorneyforyou.com开始出现致命的内存超时错误。确切的错误信息是这样的:
"致命错误:在第117行" /www/anattorneyforyou.com/htdocs/libraries/joomla/error/exception.php中,允许的内存大小为268435456个字节(试图分配32个字节) / p>
问题是内存不足,正是函数debug_backtrace()正在创建一个耗尽所有内存的无限循环。我在这个网页上找到了一些信息:http://www.petermac.com/joomla-out-of-memory-error-with-exception-php/告诉我将函数从debug_backtrace更改为debug_print_backtrace。当我这样做时,我可以看到无限循环我能够抓住前20行左右这里是输出:
#0 JException->__construct(Unable to load application: site, 500, 1, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:136]
#1 JError::raise(1, 500, Unable to load application: site, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:171]
#2 JError::raiseError(500, Unable to load application: site) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/application/application.php:143]
#3 JApplication::getInstance(site, Array (), J) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/factory.php:46]
#4 JFactory::getApplication(site) called at [/www/anattorneyforyou.com/htdocs/index.php:32]
#0 JException->__construct(Application Instantiation Error, 500, 1, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:136]
#1 JError::raise(1, 500, Application Instantiation Error, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:171]
#2 JError::raiseError(500, Application Instantiation Error) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/factory.php:43]
#3 JFactory::getApplication() called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:546]
#4 JError::customErrorPage(JException Object ([level] => 1,[code] => 500,[message] => Unable to load application: site,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ()))
#5 call_user_func(Array ([0] => JError,[1] => customErrorPage), JException Object ([level] => 1,[code] => 500,[message] => Unable to load application: site,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ())) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:530]
#6 JError::handleCallback(JException Object ([level] => 1,[code] => 500,[message] => Unable to load application: site,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ()), Array ([0] => JError,[1] => customErrorPage)) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:143]
#7 JError::raise(1, 500, Unable to load application: site, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:171]
#8 JError::raiseError(500, Unable to load application: site) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/application/application.php:143]
#9 JApplication::getInstance(site, Array (), J) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/factory.php:46] #10 JFactory::getApplication(site) called at [/www/anattorneyforyou.com/htdocs/index.php:32]
#0 JException->__construct(Application Instantiation Error, 500, 1, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:136]
#1 JError::raise(1, 500, Application Instantiation Error, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:171]
#2 JError::raiseError(500, Application Instantiation Error) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/factory.php:43]
#3 JFactory::getApplication() called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:546]
#4 JError::customErrorPage(JException Object ([level] => 1,[code] => 500,[message] => Application Instantiation Error,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ()))
#5 call_user_func(Array ([0] => JError,[1] => customErrorPage), JException Object ([level] => 1,[code] => 500,[message] => Application Instantiation Error,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ())) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:530]
#6 JError::handleCallback(JException Object ([level] => 1,[code] => 500,[message] => Application Instantiation Error,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ()), Array ([0] => JError,[1] => customErrorPage)) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:143]
#7 JError::raise(1, 500, Application Instantiation Error, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:171]
#8 JError::raiseError(500, Application Instantiation Error) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/factory.php:43]
#9 JFactory::getApplication() called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:546]
#10 JError::customErrorPage(JException Object ([level] => 1,[code] => 500,[message] => Unable to load application: site,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ()))
#11 call_user_func(Array ([0] => JError,[1] => customErrorPage), JException Object ([level] => 1,[code] => 500,[message] => Unable to load application: site,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ())) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:530]
#12 JError::handleCallback(JException Object ([level] => 1,[code] => 500,[message] => Unable to load application: site,[info] => ,[file] => ,[line] => 0,[function] => ,[class] => ,[type] => ,[args] => Array (),[backtrace] => ,[_errors] => Array ()), Array ([0] => JError,[1] => customErrorPage)) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:143]
#13 JError::raise(1, 500, Unable to load application: site, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:171]
#14 JError::raiseError(500, Unable to load application: site) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/application/application.php:143]
#15 JApplication::getInstance(site, Array (), J) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/factory.php:46] #16 JFactory::getApplication(site) called at [/www/anattorneyforyou.com/htdocs/index.php:32]
#0 JException->__construct(Application Instantiation Error, 500, 1, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:136] #1 JError::raise(1, 500, Application Instantiation Error, , 1) called at [/www/anattorneyforyou.com/htdocs/libraries/joomla/error/error.php:171]
#2 JError::raiseError(500, Application Instantiation Error) called at
我希望熟悉joomla的人可以告诉我这里出了什么问题。
提前感谢您提供任何帮助。
瑞安