We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41850
    • 2 Posts
    Hello,

    My business partner is having issues getting into three different websites built on MODx and hosted on Media Temple. These issues just came up out of the blue. We are completely at a loss as to why.

    ANY help would be GREATLY appreciated!

    Site One Error Message:

    « 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: /nfs/c01/h06/mnt/45163/domains/totalwellnessnetwork.com/html/manager/includes/document.parser.class.inc.php
    Line: 841
    Line 841 source: $tempSnippetParams= split($splitter, $tempSnippetParams);

    Parser timing
    MySQL: 0.0094 s (0 Requests)
    PHP: 0.0276 s
    Total: 0.0370 s

    Site 2 Error Message:

    « 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: /nfs/c01/h06/mnt/45163/domains/teammcnamara.com/html/manager/includes/tmplvars.format.inc.php
    Line: 21
    Line 21 source: $cp = split("&",$paramstring);

    Parser timing
    MySQL: 0.0328 s (3 Requests)
    PHP: 0.0473 s
    Total: 0.0801 s

    Site 3 is a little bit different problem -

    When he tries to login as the manager, this message appears:

    Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c01/h06/mnt/45163/domains/laddmcnamara.com/html/manager/includes/browsercheck.inc.php on line 16
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You need to go to those files mentioned, at the line numbers specified, and change the code.

      For the errors about split() being deprecated, simply change the split to explode.

      For the error about the by reference deprecation, you need to remove the &.
      $client = new phpSniff($GET_VARS['UA'],$sniffer_settings);
      


      The host upgraded their PHP version, and there are a number of such changes.

      I would strongly recommend upgrading the MODx on these sites.
        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
        • 41850
        • 2 Posts
        Thank You Thank You Thank You!

        I really appreciate the help!

        Now, let's see if I can do this without blowing the whole thing up. I have very little understanding for this sort of thing, but, your instructions seem pretty straight forward.

        Thanks Again!