coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: amigoenelbano on January 18, 2009, 06:11:16 PM

Title: [Solved]: ERROR ON WHOLE PAGE
Post by: amigoenelbano on January 18, 2009, 06:11:16 PM
i installed cpmfetch an everything looked fine, but when i tried to add some option like opening link in new page and image height this error appears when you go to page where the script was added

"Parse error: syntax error, unexpected ';', expecting ')' in /home/amigoene/public_html/index-en.php on line 272"

this is my code:

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $options = array('windowtarget' => '_blank', "imageheight"=>"120";
  $objCpm->cpm_viewLastAddedMedia(1,1,$options);
  $objCpm->cpm_close();
?>

line 72 is cpm_close.
any ideas?  it worked fine until i added the options
Title: Re: ERROR ON WHOLE PAGE
Post by: Nibbler on January 18, 2009, 09:31:04 PM

$options = array('windowtarget' => '_blank', "imageheight"=>"120";


Is missing a closing brace. Should be


$options = array('windowtarget' => '_blank', "imageheight"=>"120");
Title: Re: ERROR ON WHOLE PAGE
Post by: amigoenelbano on January 19, 2009, 06:39:49 AM
THANK YOU!   i knew it had to be something silly but i just couldn't see it.  :D