SMF Integration Issues SMF Integration Issues
 

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

SMF Integration Issues

Started by Oldiesmann, May 17, 2005, 10:32:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Oldiesmann

I am having fits trying to get Coppermine integrated with my SMF 1.0.3 board at www.christianindieforums.com. Because the gallery is located in a sub-directory of the directory that the forum is located in, I set the path to .. ($path = '..';). After uncommenting the appropriate line in init.inc.php and uploading both files to the proper location, I now get hit with the following error everytime I try to access the gallery:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /.../christianindieforums/gallery/include/init.inc.php on line 184

Line 184:
        $hdr_ip = stripslashes($HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR']);
Michael "Oldiesmann" Eshom
SMF Project Manager

Oldiesmann

Figured out what the problem was. After editing the files with Dreamweaver, the FTP client (I guess) assumed they were plain text and uploaded them in ASCII format, which resulted in line breaks getting stripped out from both files (ie the code for the entire file was on a single line).
Michael "Oldiesmann" Eshom
SMF Project Manager