We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36698
    • 19 Posts
    After upgrade to Revo 2.2.14 I get this error on front page:
    Parse error: syntax error, unexpected '{' in /var/mydomain.co.uk/httpdocs/core/config/config.inc.php on line 13
    Anyone knows what the problem could be?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Try uploading and running the upgrade again. It sounds like the config.inc.php file didn't get written properly, leaving some of the code in place.
        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
        • 36698
        • 19 Posts
        Thanks.
        I have run the upgarde but now I encountered different problem, I can't finish the upgrade because on installation summary page it says I have httpdocs and manager folder unwritable (although they are 777), I realised that the paths are wrong, still pointing to some old server, so I updated the config.inc.php file with new paths but it still points to the old ones on summary installation screen and says the folders do not exist or are not writable - where else do I have to check for those paths?

        Checking if /datasan/www/vhosts/mydomain.co.uk/httpdocs/ directory exists: Failed!

        Checking if /datasan/www/vhosts/mydomain.co.uk/httpdocs/manager/ directory exists: Failed!

        Checking if /datasan/www/vhosts/mydomain.co.uk/httpdocs/connectors/ directory exists: Failed!

        (current path should be /var/www/vhosts/)
          • 36698
          • 19 Posts
          my config.core.php file looks like this:

          <?php
          define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
          define('MODX_CONFIG_KEY', 'config');


          is this correct? orshould it contain actual path?
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            That should work, but you might want to try putting in the full path to the core folder. There are three of these files, one in the site root, one in the connectors folder, and one in the manager folder.
              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
              • 36698
              • 19 Posts
              Thanks, I got it finally working, I had to put the full paths manually to all 3 files