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: Parse error in cftest.php  (Read 8737 times)

0 Members and 1 Guest are viewing this topic.

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Parse error in cftest.php
« on: August 24, 2006, 03:59:52 pm »

I tried to test my installation:

coppermine is installed - url/gallery

edited cftest.php to /gallery

went to - url/cpmfetch/cftest.php and got this error:

Code: [Select]
Parse error: parse error, unexpected T_DNUMBER in /home/fhlinux222/m/maura-tierney.diva-host.com/user/htdocs/cpmfetch/cftest.php on line 27

what is wrong?

this mod is ideal for me as I'm wanting to show the lastest images on my home page so I'd really like to get this to work

Vuud: Moderator renamed subject to something descriptive

« Last Edit: August 26, 2006, 03:43:37 pm by vuud »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Parse error in cftest.php
« Reply #1 on: August 24, 2006, 04:14:47 pm »

Review what you changed in cftest.php, and if needed start with a fresh copy.  I would bet a finger that you somehow added a typo in there when you changed to /gallery.

Please also try be more descriptive in the post titles in the future :)  That way other people with that problem can benefit from it.

Vuud

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: Parse error in cftest.php
« Reply #2 on: August 24, 2006, 04:32:34 pm »

the only thing I change was this

Code: [Select]
$ChangeThisToYourPartialUrlToCPG = "/gallery;
or

Code: [Select]
$ChangeThisToYourPartialUrlToCPG = "../gallery;
uploaded a clean cftest.php file got the check screen with just the line 5 error, will now try changing it.

it worked this time :-)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Parse error in cftest.php
« Reply #3 on: August 24, 2006, 04:40:00 pm »

the only thing I change was this

Code: [Select]
$ChangeThisToYourPartialUrlToCPG = "/gallery;
or

Code: [Select]
$ChangeThisToYourPartialUrlToCPG = "../gallery;
uploaded a clean cftest.php file got the check screen with just the line 5 error, will now try changing it.

it worked this time :-)


Good.  PHP errors of that sort are checked for before I ship it out.  If one crops up its due to something changing after by someone or something.

I get to keep my finger :D

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Parse error in cftest.php
« Reply #4 on: August 25, 2006, 06:05:59 am »

When opening a quote you need to close it again as well. To confirm that vuud can keep his fingers:
Code: [Select]
$ChangeThisToYourPartialUrlToCPG = "/gallery;for sure never was in the code. It probably read
Code: [Select]
$ChangeThisToYourPartialUrlToCPG = "/gallery";(note the traling double quote).
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.