We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32025
    • 305 Posts
    I have MODx revolution v.2.2.8 installed and haven't been in my control panel for quite some time. I was looking around in the control panel when it just went blank and now displays an error message (I did not make any changes at all).

    The first think I noticed was the page tree was not showing.

    Here is my error page:
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /MYRoot/core/model/modx/modx.class.php on line 2409
    
    Fatal error: Class 'modContext_' not found in /MyRoot/core/xpdo/xpdo.class.php on line 763


    The first file (line #2409) says this(second line):
    $this->config = array_merge($this->config, $config);
            $this->_systemConfig= $this->config;
            return true;


    The second file (line#760) shows this (3rd line):
    if ($className= $this->loadClass($className)) {
                $className .=  '_' . $this->config['dbtype'];
                if ($instance= new $className ($this)) {
                    if (is_array($fields) && !empty ($fields)) {
                        $instance->fromArray($fields);


    Can anyone point me in the right direction? I don't even know where to look in the error logs. Confused as to what to do now.
      Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      First I'd try manually deleting all of the folders in the core/cache/ directory. Then I'd check my database for tables that need to be repaired.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 32025
        • 305 Posts
        Sottwell, you are a lifesaver! Before I went to be last night I realized all this happened after I cleaned the cache in the control panel. Apparantely I did make a change in my control panel.

        I cleaned all the folders out of the core/cache and the site was properly restored. Just to make sure I also manually repaired and optimzed my tables via mySQL. Cache was the issue.

        Thank you again!
          Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          After a while you get a "smell" of corrupted files and/or database tables.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org