We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34768
    • 9 Posts
    Error after moving to a new host

    Hi, I’ve moved my modx site from one host to another and get error

    Error: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
    Error type/ Nr.: - 8192
    File: /xxx/manager/includes/document.parser.class.inc.php
    Line: 900
    Line 900 source: $documentSource= preg_replace($in, $out, $documentSource);

    deactivate warnings (error_reporting(0);) doesn't work

    Any help is appreciated.

    Modx-Version is 1.0.2 [ed. note: dutchman last edited this post 11 years, 2 months ago.]
      • 13226
      • 953 Posts
      At a guess - your new server runs on PHP 5.5 or newer, which means you need to upgrade to the latest version of Evo - that is, if you want to stay with Evo.

      For more info you can read this post about Evos' compatibility with PHP 5.4 - 5.6
        • 34768
        • 9 Posts
        Yep, PHP 5.5

        I have now 1.0.15

        After the update I get the error (but not on the home page):
        File: /manager/includes/document.parser.class.inc.php(957): eval () 'd code
        Line: 412

        Backtrace

        1 DocumentParser-> executeParser ()
        index.php on line 144
        2 DocumentParser-> prepareResponse ()
        manager / includes / document.parser.class.inc.php on line 1551
        3 DocumentParser-> parseDocumentSource ()
        manager / includes / document.parser.class.inc.php on line 1626
        4 DocumentParser-> evalSnippets ()
        manager / includes / document.parser.class.inc.php on line 1443
        5 DocumentParser -> _ get_snip_result ()
        manager / includes / document.parser.class.inc.php on line 1005
        6 DocumentParser-> evalSnippet ()
        manager / includes / document.parser.class.inc.php on line 1028


        Also in the link appears "? PhpMyAdmin = 6d38623db3517985e0b33e6" (a link gives a correct result)


        Can you tell me what's wrong?

        Thanks in advance.
          • 34768
          • 9 Posts
          after re-updating everything works, but ?PhpMyAdmin=xxxxxxxxxx still appears at the end of each link.

          any idea why?
            • 13226
            • 953 Posts
            Sorry, but I can't help you there - I am not a back-end developer