Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Error - let unregistered users see the thumbnails only  (Read 4087 times)

0 Members and 1 Guest are viewing this topic.

scottking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Error - let unregistered users see the thumbnails only
« on: October 09, 2006, 01:55:58 am »

I did as followed to displayimage.php and get an error

if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before
/**************************************************************************
* Local functions definition
**************************************************************************/

Error

Parse error: syntax error, unexpected T_DNUMBER in /home/nicholeh/public_html/photogallery/displayimage.php on line 97


Here is line 97

 $ipinfo = ' (' . $CURRENT_PIC_DATA['pic_hdr_ip'] . '[' . $CURRENT_PIC_DATA['pic_raw_ip'] . ']) / ';

lookking for assistance on this error

Thanks
Scott
« Last Edit: October 09, 2006, 04:37:37 pm by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Error - let unregistered users see the thumbnails only
« Reply #1 on: October 09, 2006, 06:24:43 am »

- Re-upload meded file again
- Rename it to displayimage.txt and attach it to this thread
Logged
‍I don't answer to PM with support question
Please post your issue to related board

scottking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Error - let unregistered users see the thumbnails only
« Reply #2 on: October 09, 2006, 10:59:50 am »

Here is the displayimage.txt

Should of mentioned too I am running 1.49 with no mods
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Error - let unregistered users see the thumbnails only
« Reply #3 on: October 09, 2006, 12:25:26 pm »

Your attached file is fine !
Try to re-upload it
Logged
‍I don't answer to PM with support question
Please post your issue to related board

scottking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Error - let unregistered users see the thumbnails only
« Reply #4 on: October 09, 2006, 04:09:11 pm »

Solved.

Hmm strange. when I upload the displayimage.php I get the Parse error. If I delete the displayimage.php and upload the displayimage.txt and then rename it to .php everything works fine.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Error - let unregistered users see the thumbnails only
« Reply #5 on: October 09, 2006, 04:36:28 pm »

What FTP Client you are using ?
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.