Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: ERROR ON WHOLE PAGE  (Read 3971 times)

0 Members and 1 Guest are viewing this topic.

amigoenelbano

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
[Solved]: ERROR ON WHOLE PAGE
« 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
« Last Edit: January 19, 2009, 01:04:21 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: ERROR ON WHOLE PAGE
« Reply #1 on: January 18, 2009, 09:31:04 pm »

Code: [Select]
$options = array('windowtarget' => '_blank', "imageheight"=>"120";

Is missing a closing brace. Should be

Code: [Select]
$options = array('windowtarget' => '_blank', "imageheight"=>"120");
Logged

amigoenelbano

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: ERROR ON WHOLE PAGE
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.