coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: obay on July 18, 2007, 12:05:50 PM

Title: problem while running coppermine after transfer to webserver from localhost
Post by: obay on July 18, 2007, 12:05:50 PM
Help!?

I installed and customized Coppermine (cpg1412) on my localhost (xampplite) under htdocs/mysite/gallery (instead of the default htdocs/cpg1412). Everything beautiful and ready so I uploaded to my server. Everything in my site works, all pages, databases etc.. expect now the Coppermine index.php gives the error:

Parse error: parse error, unexpected $, expecting T_VARIABLE or '$' in /home/content/v/s/o/vsonline/html/demos/mysite/gallery/include/functions.inc.php on line 1681

I check the said file and there doesn't seem to be anything wrong with that line:

global $CONFIG, $AUTHORIZED;

Coppermine doesn't work :( I've tried reinstalling on the web server by deleting the install.lock and running install.php again right on the server. Install fine, but still the error is there. I don't have any idea what could be wrong and I don't know where to start. Any help appreciated, thanks!
Title: Re: problem while running coppermine after transfer to webserver from localhost
Post by: Abbas Ali on July 18, 2007, 12:29:27 PM
Reupload index.php file. If the line in question seems fine then there might be some mismatching brace in the code.
Title: Re: problem while running coppermine after transfer to webserver from localhost
Post by: obay on July 18, 2007, 12:52:05 PM
there can't be any mismatching brace because i never even opened the file before. i've only edited manually the files inside my customized theme. still having the same problem after reuploding index.php. but still works offline. help?
Title: Re: problem while running coppermine after transfer to webserver from localhost
Post by: Joachim Müller on July 18, 2007, 01:11:53 PM
Possible file corruption may not only be caused by user editing the file. Hard disk or transfer (FTP) issues might corrupt the file as well. Do as suggested and replace the file with a clean copy of a fresh package.
Title: Re: problem while running coppermine after transfer to webserver from localhost
Post by: Abbas Ali on July 18, 2007, 01:24:59 PM
Also try using a different ftp client for uploading the file.