We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7391
    • 49 Posts
    For some reason i get a Fatal Error when i try to run Jot on a page with Maxigallery on it. I’m not trying to make Jot work with maxi, i just want it to operate on its own on the same page.

    This is the error that i get:

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

    This is the Call:

    [[Jot? &subscribe=`1` &pagination=`10`]]

    or

    [!Jot? &subscribe=`1` &pagination=`10`!]


    Jot works great on documents without maxi. Except for the missing graphics on the comment box.

    Please help.
      • 7923
      • 4,213 Posts
      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’);
      }

      Jot and MaxiGallery both use the same class, but Jot doesn’t check when it includes it that is it already included.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 4195
        • 398 Posts
        i shall fix my distribution accordingly asap.
          Armand Pondman
          MODx Coding Team
          :: Jot :: PHx