We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20448
    • 48 Posts
    Hi Folks

    Just installed MaxiGallery on a new site and I have the following error. Have searched forums but cannot see an answer.

    « 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: C:\xampp\htdocs\goosecottage\assets\snippets\maxigallery\maxigallery.class.inc.php
    Line: 242
    Line 242 source: $sizes = split(’x’, $max_thumb_size);

    Parser timing
    MySQL: 0.0069 s (6 Requests)
    PHP: 0.0689 s
    Total: 0.0758 s

    Can you please help to resolve. I have change the permissons to make editable.

    Thanks

    Phil
      Get your business online - Adapt Web Design www.Adaptwebdesign.com
    • Open C:\xampp\htdocs\goosecottage\assets\snippets\maxigallery\maxigallery.class.inc.php in an editor.

      Replace in line 242
      $sizes = split('x', $max_thumb_size);

      with
      $sizes = explode('x', $max_thumb_size);  


      That should do it.
        • 20288
        • 132 Posts
        Quote from: dogo at Oct 08, 2010, 12:40 PM

        Open C:\xampp\htdocs\goosecottage\assets\snippets\maxigallery\maxigallery.class.inc.php in an editor.

        Replace in line 242
        $sizes = split('x', $max_thumb_size);

        with
        $sizes = explode('x', $max_thumb_size);  


        That should do it.

        Worked perfectly for me. Thanks for the tip.