Parse error in inspekt.php Parse error in inspekt.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 inspekt.php

Started by zorbas2, February 08, 2015, 10:47:10 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

zorbas2

What I did:
- database backup
- deleting all from server except /albums, anycontent.php, config.inc.php
- uploading all files and folders from 1.5.34 package except /albums, anycontent.php, config.inc.php

when trying to access the instalation I get :
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/44/d33963748/htdocs/scripts/cpg1.5.x/include/inspekt.php on line 117

when trying to access update.php I get a blank page.

What *beep* I stupidly did wrong???
Any help would be greatly appreciated!!!

ΑndrĂ©

Have you tried to re-upload include/inspekt.php? Maybe it got corrupted during upload.

Line 117 reads
    public static function makeServerCage($strict=TRUE) {
which probably means that you're running a quite old version of PHP. For further information, please read this (there's also a patch in the first reply).

zorbas2

It was not the corrupted file but my PHP version!!
Now with 5.5 everything works again like a charm.

Thank you so much!  :D