function getObject(objectId){
if(document.getElementById && document.getElementById(objectId)){
return document.getElementById(objectId);
}
else if (document.all && document.all(objectId)){
return document.all(objectId);
}
else if (document.layers && document.layers[objectId]){
return document.layers[objectId];
}
else {
return false;
}
}
function initLightbox() { myLightbox = new Lightbox();var startImg=getObject('img0');if(startImg){myLightbox.start(startImg);return false;} }
Event.observe(window, 'load', initLightbox, false);$link="<a id=\"img".$i."\" href=\"[(site_url)]" . $file . "\" rel=\"lightbox[maxigallery]\" title=\"<b>".htmlentities(stripslashes($pic['title']),ENT_NOQUOTES,$mgconfig['use_charset'])."</b><br />".htmlentities(stripslashes($pic['descr']),ENT_NOQUOTES,$mgconfig['use_charset'])."\">";
« MODx Parse Error »what does it mean?
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: imagecreatetruecolor(): Invalid image dimensions
Error type/ Nr.: Warning - 2
File: /home/<...>/assets/snippets/maxigallery/watermark/Thumbnail.class.php
Line: 354
Line 354 source: $this->img["des"] = ImageCreateTrueColor($X_des,$Y_des);
Parser timing
MySQL: 0.5605 s s (3 Requests)
PHP: 0.4602 s s
Total: 1.0207 s s
[[MaxiGallery?&pics_in_a_row=`3`&max_thumb_size=`110`&max_pic_size=`400`&titles_in_overview=`1`&keep_bigimg=`1`&pics_per_page=`6`]]
Parse error: parse error, unexpected $ in /home/andy/public_html/beverleyinpictures/manager/includes/document.parser.class.inc.php(705) : eval()'d code on line 743


Hmm... I know you said you cut and pasted the snippet twice already, but that just sounds like an error in the snippet code to me. Maybe a third time?
I added spaces before and after the ampersands - didn’t help. I have the page published, but I don’t have any photos added because I can’t run the snippet.
This discussion is closed to further replies. Keep calm and carry on.