Welcome Guest, Not a member yet? Register   Sign In
Getting 500 errors on live site - seems to be a memory allocation issue?
#1

[eluser]mattpointblank[/eluser]
Hi all,

On my local (Windows) server, my 'edit article' page loads fine. On the remote (Linux) server, it gives a blank page, with Firebug reporting a 500 error.

Other 'edit article' pages work, but a few articles (with no obvious pattern) seem to break it.

I looked in the server error log and found this:

Code:
[Mon Apr 12 13:46:34 2010] [error] [client 213.123.176.33] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1021684 bytes) in /var/www/vhosts/mysite.co.uk/httpdocs/system/libraries/Output.php on line 92, referer: http://www.mysite.co.uk/article/14379

I looked up the function in Output.php, it's this:

Code:
function append_output($output)
    {
        if ($this->final_output == '')
        {
            $this->final_output = $output;
        }
        else
        {
            $this->final_output .= $output;
        }
    }

I recently modified my site so that all HTML loaded from views is concatenated into a string, which is then sent to a 'master' view (basically so I can use the same view for each page). Could this function be related to the error? It seems to only happen on 'rich' pages (eg my 'edit article' page has some WYSIWYG text editors and lots of javascript functions). Any ideas?


Messages In This Thread
Getting 500 errors on live site - seems to be a memory allocation issue? - by El Forum - 04-12-2010, 06:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB