We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20829
    • 28 Posts
    I just bumped into this issue using modx Evo 1.0.6 and maxigallery 0.5.2

    However changing the "split" into "explode" did not work for me. Is there another way to work around this?
    • The error will tell you which line number in the file is causing the error. Go to that line and make the change.
        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
        • 20829
        • 28 Posts
        Well it does not actually point to the split function, what i get is:

        MODx encountered the following error while attempting to parse the requested resource:
        « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM AUTO_INCREMENT=1' at line 12 »
              SQL: CREATE TABLE `m_db1`.modx_maxigallery ( `id` int(10) unsigned NOT NULL auto_increment, `gal_id` int(10) unsigned NOT NULL, `filename` tinytext NOT NULL, `title` text NOT NULL, `date` datetime NOT NULL, `descr` text default NULL, `pos` int(10) default NULL, `own_id` int(10) default NULL, `hide` int(1) default 0, PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; 
        • That's a different error altogether. You'll need to change that TYPE to ENGINE in the installation part of the snippet; newer versions of MySQL don't like the TYPE property.
            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
            • 20829
            • 28 Posts
            Thanks for the reply, which files need to be changed? Just "maxigallery.class.inc.php" or any more?
            • Yes, should be around line 54.
                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
                • 20829
                • 28 Posts
                Thanks for your time sottwel! Got it sorted out.