Home arrow Forum Newbie Alert! Parse error:
  Welcome, Guest. Please login or register.
Did you miss your activation email?
September 06, 2008, 09:38:58 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Mambo-SMF 1.2.x
| | | |-+  Newbie Alert! Parse error:
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Newbie Alert! Parse error:  (Read 2236 times)
Brian
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Newbie Alert! Parse error:
« 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?
Logged
AndyS
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Newbie Alert! Parse error:
« Reply #1 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
Logged
rotor
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Newbie Alert! Parse error:
« Reply #2 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
« Last Edit: May 14, 2005, 09:20:42 AM by rotor » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use