1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Fatal Error: Allowed memory size exhausted

Discussion in 'Troubleshooting and Problems' started by viktorlantos, Nov 25, 2013.

  1. viktorlantos

    viktorlantos Member

    Cheers to all,

    I am running Xenforo a while ago, but today i faced with a memory issue and my site is looks like a mess now.
    This is the latest Xenforo edition.


    Theme files not loading. Page fallen apart.
    On the server i see dozens of error

    ErrorException: Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 123994067 bytes) - library/XenForo/BbCode/Parser.php:294
    Generated By: Ismeretlen fiók, Ma 18:37 -kor
    Stack Trace
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Request State
    array(3) {
      ["url"] => string(40) "http://akvakertesz.hu/forums/-/index.rss"
      ["_GET"] => array(0) {
      ["_POST"] => array(0) {
    Any suggestion to change? I appreciate your help and input on this.
    Last edited: Nov 25, 2013
  2. Sheratan

    Sheratan Well-Known Member

    Allowed memory exhausted is an error when there is no more RAM to allocated for your PHP script.

    I see your PHPINFO memory_limit is quite high, 512MB.

    If you are in VPS/Dedicated server, try to increase memory_limit more than 512M. My advise is 700M. You can increase it in php.ini

    But watch out with your RAM.
  3. viktorlantos

    viktorlantos Member

    Did that to 1G and still not working.
  4. Sheratan

    Sheratan Well-Known Member

    Have you try to restart apache?
  5. viktorlantos

    viktorlantos Member

    yup did that. not helped.
  6. viktorlantos

    viktorlantos Member

    since the full interface is fallen apart even the admin too i am having hard time to make any change on the admin.

    i do run the site with CDN

    i think i've seen a similar issue in the past when i used cdn. switched back to local and worked well.
    now i could not switch the admin
    Style Properties -> General -> Settings -> Path to Images
    as i do not see the save button with the messed up intertface.
  7. Mike

    Mike XenForo Developer Staff Member

    I've responded to your ticket. The issues appear to be related to gzip corruption. This is usually caused by systems outside XenForo manipulating the output and not necessarily changing the headers correctly to reflect this.
  8. viktorlantos

    viktorlantos Member

    Cheers Mike, thank you for your quick help. I really appreciate that.
    This was the main issue. Since i turned off gzip this runs perfectly. But as soon as i turn the gzip back (removing the line from the config) this fall apart again.

    Any idea to have the gzip advantage back?
  9. viktorlantos

    viktorlantos Member

    Also i see other error now like this

    ErrorException: htmlspecialchars(): Invalid multibyte sequence in argument - library/XenForo/BbCode/Formatter/Base.php:1618
    Generated By: Memphis, 2 perccel ezelőtt
    Stack Trace
    #0 [internal function]: XenForo_Application::handlePhpError(2, 'htmlspecialchar...', '/var/www/vhosts...', 1618, Array)
    #1 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(1618): htmlspecialchars('"mceSmilieSprit...', 3, 'UTF-8')
    #2 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Wysiwyg.php(176): XenForo_BbCode_Formatter_Base->replaceSmiliesInText('"mceSmilieSprit...', 'htmlspecialchar...')
    #3 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(513): XenForo_BbCode_Formatter_Wysiwyg->filterString('"mceSmilieSprit...', Array)
    #4 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(492): XenForo_BbCode_Formatter_Base->renderString('"mceSmilieSprit...', Array, 0)
    #5 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(469): XenForo_BbCode_Formatter_Base->renderTreeElement('"mceSmilieSprit...', Array, 0)
    #6 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(668): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
    #7 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(575): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
    #8 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(488): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
    #9 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(469): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
    #10 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Formatter/Base.php(449): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
    #11 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
    #12 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/ViewPublic/Helper/Editor.php(80): XenForo_BbCode_Parser->render('Ma volt egy gye...', Array)
    #13 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/ViewPublic/Helper/Editor.php(167): XenForo_ViewPublic_Helper_Editor::getEditorTemplate(Object(WidgetFramework_XenForo_View1), 'message', 'Ma volt egy gye...', Array)
    #14 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/ViewPublic/Thread/View.php(27): XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor(Object(WidgetFramework_XenForo_View1), 'message', 'Ma volt egy gye...', Array)
    #15 /var/www/vhosts/akvakertesz.hu/httpdocs/library/Tinhte/XenTag/XenForo/ViewPublic/Thread/View.php(7): XenForo_ViewPublic_Thread_View->renderHtml()
    #16 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/ViewRenderer/Abstract.php(227): Tinhte_XenTag_XenForo_ViewPublic_Thread_View->renderHtml()
    #17 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/ViewRenderer/HtmlPublic.php(67): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Html', Array, 'thread_view')
    #18 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/FrontController.php(572): XenForo_ViewRenderer_HtmlPublic->renderView('XenForo_ViewPub...', Array, 'thread_view', NULL)
    #19 /var/www/vhosts/akvakertesz.hu/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
    #20 /var/www/vhosts/akvakertesz.hu/httpdocs/index.php(13): XenForo_FrontController->run()
    #21 {main}
    Request State
    array(3) {
      ["url"] => string(76) "http://www.akvakertesz.hu/threads/%C3%81lmos-v%C3%B6lgy-legend%C3%A1ja.3993/"
      ["_GET"] => array(0) {
      ["_POST"] => array(0) {
  10. viktorlantos

    viktorlantos Member

    Mike had helped me to identify the root of the problem. So issue is solved.

    The problem was the php.ini setting on my VPS. Has other sites too on it. Moved my ExpressionEngine site to this VPS and the host company made a change in php.ini based on the EE requirement.
    mbstring.func_overload = 6
    This line caused all the problems with the site and messed up the server.
    As soon as i changed back to 0 everything is back on smooth operation.

    Not just Xenforo but wordpress sites also were down on this server.
    Luckily Mike was able to help and catch this change. Otherwise i still would be stressed out with the demolished board.

    I am glad that Xenforo has such a professional team. This worth every penny you spend on license.
    Great work guys.

    Please close the thread. everything is ok now.
    CNK and Tracy Perry like this.

Share This Page