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: help! parse error, unexpected T_STRING .../displayimage.php on line 189  (Read 6719 times)

0 Members and 1 Guest are viewing this topic.

LWAA

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56

Parse error: parse error, unexpected T_STRING in /home/maple/public_html/flrouiedscv3/displayimage.php on line 189

I get this error when clicking on a thumbnail to view the larger image. Can anyone tell me what's wrong here?

the script is here: http://maplecards.com/flrouiedscv3/thumbnails.php?album=3

thanks!
« Last Edit: September 27, 2005, 08:33:15 am by GauGau »
Logged
<i>"I understand everything, except what you're telling me"</i>

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #1 on: September 26, 2005, 11:33:25 pm »

What modificaitons have you made?  What version of Coppermine are you using?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

snork13

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 260
  • Internet! Is that thing still around?
    • Gallery
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #2 on: September 26, 2005, 11:40:23 pm »

maybe you could post the code change?

snork
Logged

LWAA

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #3 on: September 26, 2005, 11:45:44 pm »

I've incorporated the paypal mod (which I've done before without a problem).
I'm using coppermine 1.3.3
there was no code change as such, I copied files from a site I did previously and re-uploaded them.

thanks
Logged
<i>"I understand everything, except what you're telling me"</i>

snork13

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 260
  • Internet! Is that thing still around?
    • Gallery
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #4 on: September 26, 2005, 11:48:26 pm »

I've incorporated the paypal mod (which I've done before without a problem).
I'm using coppermine 1.3.3
thanks

Have you double checked the changes?
Logged

LWAA

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #5 on: September 26, 2005, 11:52:19 pm »

I'm not up on coding other than regular html, so wouldn't know what was right and what wasn't  :\'(

Would I be best to reupload the whole darn lot and start from scratch?
Logged
<i>"I understand everything, except what you're telling me"</i>

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #6 on: September 27, 2005, 12:06:45 am »

You can start by posting the code from displayimage.php, lines 185-195.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

LWAA

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #7 on: September 27, 2005, 12:31:44 am »

here they are:

        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
         //$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            //$pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
Logged
<i>"I understand everything, except what you're telling me"</i>

snork13

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 260
  • Internet! Is that thing still around?
    • Gallery
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #8 on: September 27, 2005, 01:49:40 am »

here they are:

        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
         //$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            //$pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {




line 189 & 191 // <-- try removing it from in front, i assume your trying to comment it out? from the mod below:

     
Code: [Select]
if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
            $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
« Last Edit: September 27, 2005, 02:35:17 am by snork13 »
Logged

LWAA

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #9 on: September 27, 2005, 02:53:14 am »

thanks, that didn't seem to do it ??? , but I swapped out that displayimage.php for another I'd used on another site and now it works perfectly!  :D
Logged
<i>"I understand everything, except what you're telling me"</i>

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #10 on: September 27, 2005, 08:34:52 am »

if you're interessted in "forensics" and you want to find out what went wrong, use a diff viewer like winmerge to compare the two files. You will then be able to see the differences and might learn something from it.
Logged

LWAA

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #11 on: September 30, 2005, 12:53:15 pm »

thanks - sounds good, butI'm on a mac....I will load softwindows and try it though.
Logged
<i>"I understand everything, except what you're telling me"</i>

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
« Reply #12 on: October 01, 2005, 10:45:10 am »

there are diff viewers for mac as well. As far as I know, Mac OS is Unix, sort of, so you should be able to find diff viewers for your OS. I think there are even diff viewers that come with Lunix.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.