|
Title: Newbie Alert! Parse error: Post by: Brian on April 10, 2005, 02:43:32 PM I have run across a tech problems you might be able to resove.
I have installed SMF forum and want to integrate the Mambo/SMF systems to provide for a single log-in for both. I was configuring the system in Mambo (I wanted to remove the user agreement) and it came with this error Parse error: parse error, unexpected ';' in /public_html/administrator/components/com_smf/config.smf.php on line 7 The above file looks like: <?php global $smf_path, $existing_smf, $smf_prefix, $mos_prefix, $wrapped, $agreement_required, $im, $registration_agreement; $smf_path = ""; $existing_smf = ""; $mos_prefix = "mos_"; $smf_prefix = ""; $wrapped = ; $agreement_required = ""; $im = ""; $registration_agreement = "You agree, ... blah blah blah.. to your computer."; ?> Not sure if the problem on line 7 $wrapped = ; is lack of quotes, or the presence of the semi colon as indicated by the error code. I have tried a variety of combinations but nothing seems to fix the problem. Any clues? Title: Re: Newbie Alert! Parse error: Post by: AndyS on May 13, 2005, 12:17:35 PM I am having a similar issue. I dont seem to have the same lines as you do in your config.smf.php file. The issue has to do with how the file is written to after you make your changes. for some reason the form values are not being inserted into the file correctly. I am not a PHP guru so I can't figure out how to fix how the form values are written to the config file.
For now you have to manually make your changes to the config file in a text editor such as notpad. then save it back to the server (upload). The developers seem to be busy working on a new version. So I am not sure if they have time to address a patch to the admin.smf.php file. It's probably something very simple like a missing character. Cowboy, if you have the time could you look into this? BTW, I have all of the lastest version. 1.3.1.1 of SMF and 4.5.2.1 of MOS thanks Title: Re: Newbie Alert! Parse error: Post by: rotor on May 14, 2005, 09:17:53 AM I cant see anything wrong in the code ... what I can see of it ...
why dont you put it back the way it was and just untick the option "Show and require agreement letter when registering." under Admin/Edit Registration Agreement
Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved. |