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

    Sorry for bad Topic, had no better Idea.


    I copied a working Maxigallery-Call from one Page to another. When starting the new Gallery-Page in Frontend i got this Error:

    Fatal error: Cannot redeclare class cchunkie in .../assets/snippets/jot/includes/chunkie.class.inc.php on line 11


    Ok, theres a Solution in Forums here, but now to the strange Part:

    I then deleted the new Gallery-Page for now and wanted to continue Work on other Pages first, but since that Chunkie-Error all Frontend-Pages, except one, are Away, showing this Error:

    « MODx Parse Error »
    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 ’[*id*] AND sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) AND sc.hidemenu’ at line 1 »
    SQL: SELECT DISTINCT sc.id,sc.menutitle,sc.pagetitle,sc.introtext,sc.menuindex,sc.published,sc.hidemenu,sc.parent,sc.isfolder,sc.description,sc.alias,sc.longtitle,sc.type,if(sc.type=’reference’,sc.content,’’) as content, sc.template,sc.link_attributes FROM `d0043b5d`.modx_site_content sc LEFT JOIN `d0043b5d`.modx_document_groups dg on dg.document = sc.id WHERE sc.parent = [*id*] AND sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) AND sc.hidemenu = 0 GROUP BY sc.id ORDER BY sc.menuindex ASC;


    As being no Developer at all im lost now where to look at to fix that, so any Hint is much appreciated.

    I looked for all Findings of [*id*] in Database and compared with another Installation, all pretty similar...

    Then i run the Installer again in Upgrade-Mode, didn’t change anything.

    HELP! shocked

    cheers,
    Peter
      Grafik & Grossformatdruck: www.druck-schmie.de
      Bildergalerie: www.bilder-schmie.de
      • 23109
      • 25 Posts
      Its solved, Problem was at a complete other Place: i used [*id*] as Wayfinder-Startlevel in a TV short before.
      That the Error came up at what i described above might be because the Cache was new created or something, i guess. wink

      Using [*something*] in TVs will be possible in Version 0.9.7, good News.

      Thanks to OpenGeek for giving me the right Hint and his Patience in the IRC-Channel. smiley

      cheers,
      Peter
        Grafik & Grossformatdruck: www.druck-schmie.de
        Bildergalerie: www.bilder-schmie.de
        • 7923
        • 4,213 Posts
        The error "Fatal error: Cannot redeclare class cchunkie in .../assets/snippets/jot/includes/chunkie.class.inc.php on line 1" comes when Jot and MaxiGallery is run on the same page.. or Jot and Ditto.. because Jot doesn’t check that does chunkie class exists when it includes it. To fix it, edit jot.class.inc.php file and find this line:

        include_once($path . ’/includes/chunkie.class.inc.php’);

        and replace it with:

        if (!class_exists(’CChunkie’)) {
        include_once($path . ’/includes/chunkie.class.inc.php’);
        }


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."