We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26499
    • 4 Posts
    My website suddenly get 500 error !!
    At first, I still can get into manager ,but front end show error 500.
    After a few min, I could not get into manager....
    Here is the error message:

    [28-Mar-2011 08:51:03] PHP Fatal error: Class ’modUser_’ not found in /home/plustek/public_html/core/xpdo/xpdo.class.php on line 598
    [28-Mar-2011 08:51:03] PHP Fatal error: Class ’modUser_’ not found in /home/plustek/public_html/core/xpdo/xpdo.class.php on line 598
    [28-Mar-2011 10:09:16] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 77824 bytes) in /home/plustek/public_html/core/model/modx/modresource.class.php on line 330
    [28-Mar-2011 10:10:56] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 128 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:10:58] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 46 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:10:58] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 42 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:00] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 128 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:00] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 46 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:00] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 140 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:01] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 140 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:01] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 46 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:02] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 46 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:04] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 46 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:08] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 128 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:10] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 128 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:11] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 140 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:12] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 140 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:13] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 46 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:14] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 77824 bytes) in /home/plustek/public_html/core/model/modx/modresource.class.php on line 330
    [28-Mar-2011 10:11:14] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 46 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:11:15] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 77824 bytes) in /home/plustek/public_html/core/xpdo/om/xpdoobject.class.php on line 1243
    [28-Mar-2011 10:11:46] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 77824 bytes) in /home/plustek/public_html/core/model/modx/modresource.class.php on line 330
    [28-Mar-2011 10:11:47] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 77824 bytes) in /home/plustek/public_html/core/model/modx/modresource.class.php on line 330
    [28-Mar-2011 10:11:48] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 77824 bytes) in /home/plustek/public_html/core/model/modx/modresource.class.php on line 330
    [28-Mar-2011 10:12:20] PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate 19456 bytes) in /home/plustek/public_html/core/xpdo/om/xpdoobject.class.php on line 241
    [28-Mar-2011 10:12:20] PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate 19456 bytes) in /home/plustek/public_html/core/xpdo/om/xpdoobject.class.php on line 241
    [28-Mar-2011 10:12:21] PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate 19456 bytes) in /home/plustek/public_html/core/xpdo/om/xpdoobject.class.php on line 241
    [28-Mar-2011 10:12:22] PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate 19456 bytes) in /home/plustek/public_html/core/xpdo/om/xpdoobject.class.php on line 241
    [28-Mar-2011 10:12:27] PHP Warning: PHP Startup: Unable to load dynamic library ’/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so: cannot make segment writable for relocation: Cannot allocate memory in Unknown on line 0
    [28-Mar-2011 10:12:27] PHP Warning: PHP Startup: Unable to load dynamic library ’/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so: cannot make segment writable for relocation: Cannot allocate memory in Unknown on line 0
    [28-Mar-2011 10:12:27] PHP Warning: PHP Startup: Unable to load dynamic library ’/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
    [28-Mar-2011 10:12:27] PHP Warning: PHP Startup: Unable to load dynamic library ’/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0
    [28-Mar-2011 10:12:27] PHP Warning: PHP Startup: Unable to load dynamic library ’/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so’ - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: cannot make segment writable for relocation: Cannot allocate memory in Unknown on line 0
    [28-Mar-2011 10:12:46] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 140 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:12:46] PHP Fatal error: Out of memory (allocated 1835008) (tried to allocate 48 bytes) in /home/plustek/public_html/core/model/modx/modaccess.class.php on line 12
    [28-Mar-2011 10:13:07] PHP Fatal error: Call to a member function getMany() on a non-object in /home/plustek/public_html/core/cache/elements/modsnippet/32.include.cache.php on line 34
    [28-Mar-2011 10:13:07] PHP Fatal error: Call to a member function getMany() on a non-object in /home/plustek/public_html/core/cache/elements/modsnippet/32.include.cache.php on line 34
    [28-Mar-2011 10:13:07] PHP Fatal error: Call to a member function getMany() on a non-object in /home/plustek/public_html/core/cache/elements/modsnippet/32.include.cache.php on line 34
    [28-Mar-2011 10:13:08] PHP Fatal error: Call to a member function getMany() on a non-object in /home/plustek/public_html/core/cache/elements/modsnippet/32.include.cache.php on line 34
    [28-Mar-2011 10:20:16] PHP Fatal error: Call to a member function get() on a non-object in /home/plustek/public_html/core/cache/elements/modsnippet/77.include.cache.php on line 8


    I only can do is check database,and I found the ’session’ table is up to 325MB...
    I check the backup db that wae backed up one week ago,and I found the ’session’ table is 250MB

    Should I clear ’session’ table ??
    How it is going on....can someone help me....

    Thank you..
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      It wouldn’t hurt to clear the session table for starters, but It looks like the root issue is you ran out of memory. Try increasing your php memory limit, I find 64mb to be enough for most sites. The other issues seam to be with some snippets, but memory is likely the cause.
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 26499
        • 4 Posts
        Thank you for your reply.
        I clear the session table ,and successfully enter the manger. smiley
        But front end still show error 500.... sad
        I found the resource tree and file tree can not show up,but template tree and snippet tree can show up.
        However,I increased it to 128MB(I have used 128MB memory for several months) and restarted the apache,but it still not work.
        My website is very huge with 8783 records in site_content table.
        But it is fine before...

        Is anything else you can tell me that I can try?
          • 21838
          • 284 Posts
          clear your cache manually (erase all content in ’core/cache’)…
            MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            Do you still get the same error messages or have they changed? Can you share the error log information (from manager) as it should help identify the troublesome snippets.

            Additional information about the site and what snippets you are using would also be helpful, and are you using Revo 2.0.8?
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting
              • 26499
              • 4 Posts
              You are my GOD!!!!
              Thank you very much!!!
              It work!!!!!
              I really appreciate your help!!!
              Without you,I totally do not know how to resolve this nightmare!!
              Thank you again!:)
                • 21838
                • 284 Posts
                Quote from: seamonkey0 at Mar 28, 2011, 09:29 AM

                You are my GOD!!!!
                Thank you very much!!!
                It work!!!!!
                I really appreciate your help!!!
                Without you,I totally do not know how to resolve this nightmare!!
                Thank you again!:)
                it was cache issue? will be fixed in 2.1 btw.
                  MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
                  • 26499
                  • 4 Posts
                  Ya !I think it is.
                  Thank you again!!
                  With your help,I like Modx much more.
                    • 21838
                    • 284 Posts
                    Quote from: seamonkey0 at Mar 28, 2011, 09:41 AM

                    Ya !I think it is.
                    Thank you again!!
                    With your help,I like Modx much more.
                    no problem smiley
                      MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)