forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: debragrant on August 24, 2006, 03:59:52 pm

Title: Parse error in cftest.php
Post by: debragrant 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

Title: Re: Parse error in cftest.php
Post by: vuud 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

Title: Re: Parse error in cftest.php
Post by: debragrant 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 :-)
Title: Re: Parse error in cftest.php
Post by: vuud 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

Title: Re: Parse error in cftest.php
Post by: Joachim Müller 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).