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

    I have a bug which is driving me crazy :
    « MODx Parse Error »
    
    MODx encountered the following error while attempting to parse the requested resource:
    « `` is not numeric and may not be passed to makeUrl() »
     
    Parser timing
      MySQL:	0.0189 s s	(40 Requests)
      PHP:	0.0941 s s	 
      Total:	0.1131 s s
    


    I have this error when i create/duplicate new page.
    The error is on all page having Ditto / Maxigallery / MaxigallerySolo
    Page which doesn’t have Ditto / Maxigallery / MaxigallerySolo don’t have this error

    When i delete the part below
    $c = &$this->chunkCache;
    

    of siteCache.idx.php, i no longer have the error until i create a newpage ...
    also after i delete the cache of siteCache.idx.php, all the page is messed up, until i modify some ditto template.

    with the ’site refresh’ it doesn’t work.

    I have read and searched as much as i can of the forum, but i haven’t find an answer.

    please, please, please HELP, i’m really becoming crazy with this problem ...
      • 22202
      • 23 Posts
      Further investigation reveal that the problem came from Maxigallerysolo where it’s in "gallery_browser" mode

      in those line (56 to 60) of Maxigallerysolo :
      		}else if($open=="gallery_browser"){
      			$returnstring .= "<a href=\"".$modx->makeUrl($pic['gal_id'], '', "&pic=".$pic['id'])."\">";
      		}else{
      			$returnstring .= "<a href=\"".$modx->makeUrl($pic['gal_id'], '', '')."\">";
      		}
      


      $pic[’gal_id’] seems to doesn’t beeing set, that’s why i have the parse error

      But i really want that the picture link to the gallery_browser, and i don’t know (yet) how to fix it.
      If you can hrlp ...
        • 22202
        • 23 Posts
        Also i call the MaxigallerySolo snippet from a Chunk (ditto template) :

        <div class="newstitle"><a href="[~[+id+]~]">[+longtitle+]</a></div>
        <p>[+summary+]</p>
        <p>[+tvcontentfr+]</p>
        <p>[[MaxiGallerySolo? &galIDs=`[+id+]` &open=`gallery_browser`]]</p>
        <p>[+link+]</p> 
        <div class="date">[+date+]</div>
        


        it seems that some part of the problem is because i call it from a chunk ...
          • 7923
          • 4,213 Posts
          have you tried using uncached snippetcall in the chunk?


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 22202
            • 23 Posts
            Quote from: doze at Sep 20, 2006, 03:19 PM

            have you tried using uncached snippetcall in the chunk?

            Yes, i’ve tried !
            when i put the uncached snippet call, the snippet is not ’parsed’ instead of having the pictures on my website, i see the snippet call...

            Do you know what i can do to hack Maxigallerysolo so $pic[’gal_id’] will exist ??

            Thanks
              • 7923
              • 4,213 Posts
              Does all of the documents that ditto list have gallery? If not, that could cause problems (if not using lightbox to display) as there are no checking for that in MaxiGallerySolo.. Easy to fix though..


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 9549
                • 93 Posts
                I would need such fix right now embarrassed
                  • 22303 MODX Staff
                  • 10,725 Posts
                  Quote from: feary at Dec 13, 2006, 05:41 PM

                  I would need such fix right now embarrassed
                  I would need $50 right now and such fix could likely be realized wink

                  p.s. second best post ever
                    • 9549
                    • 93 Posts
                    and I thought you were Santa! hahahah. anyway, i’m updating to the latest maxigallery and maxigallerysolo. and do some praying. lol.
                      • 7923
                      • 4,213 Posts
                      I haven’t done anything regarding this to maxigallerysolo.. I didn’t make that snippet, i have just improved it a bit and fixed some bugs.. but:

                      after:
                      $pics=$modx->getIntTableRows("*","maxigallery", "gal_id IN ('" . $galIDs . "')","pos,date","DESC");
                      

                      add:
                      if (count($pics) == 0) {
                         return;
                      }
                      

                      That’ll be $500000000 thank you very much!

                      EDIT: fixed bbcode tags


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