Parse error in cftest.php Parse error in cftest.php
 

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]

Main Menu

Parse error in cftest.php

Started by debragrant, August 24, 2006, 03:59:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

debragrant

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:

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


vuud

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

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

the only thing I change was this

$ChangeThisToYourPartialUrlToCPG = "/gallery;

or

$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 :-)

vuud

Quote from: debragrant on August 24, 2006, 04:32:34 PM
the only thing I change was this

$ChangeThisToYourPartialUrlToCPG = "/gallery;

or

$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

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

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