We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33966
    • 52 Posts
    Hi
    I moved an existing Evo 1.06 site to a new server, dumped the database, uploaded all the files, changed permissions of the directories, adapted the config.inc.php (database name and so on) and when trying to go to the manager i get this:

    « MODx Parse Error »

    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: Function split() is deprecated
    Error type/ Nr.: - 8192
    File: /var/www/web115/html/manager/includes/document.parser.class.inc.php(814) : eval()'d code
    Line: 2

    Parser timing
    MySQL: 0.0027 s (5 Requests)
    PHP: 0.0090 s
    Total: 0.0117 s

    What went wrong? Any help appreciated...
    Thanks
    Markus
    • Your new server has a new version of PHP, and the split() function isn't used any more.

      You have a snippet with the split() function. Find out which one it is and change the "split" to "explode".

      http://php.net/manual/en/function.split.php
      http://php.net/manual/en/function.explode.php
        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
        • 33966
        • 52 Posts
        Hi Susan

        That helped. I am able now to log in to the manager and to see the website.

        But now I have a new problem: on my own snippets there are suddenly \ (backslashes) where there should not be. Is this a problem of configuration of magic quotes on instead of off on the server?

        Thanks
        Markus
        • Yes.
            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