I've succesfully installed SMF and this bridge before. I'm doing this on a new site.
I install the component succesfully. I then go to configuration and first click save. After this i then get this error and the component does not work from then.
Parse error: parse error, unexpected ';' in /mydomain/public_html/administrator/components/com_smf/config.smf.php on line 6
i've checked the config.smf.php unsure of the values i'm suppose to input here. But i'm sure this error shou;dn't be happening
I forgot to add. This is using the 1.1.4.2 version with SMF 1.1 RC2 and the current version of joomla
mod edit: deleted your full server path
« Last Edit: August 13, 2006, 10:48:58 PM by kai920 »
Hey all, I'm also having the same problem. If I edit the file (change the : ' to : 0;), and click save back on the component screen, it removes the zeros from the config file and I get the error.
Anyone resolve this yet by any chance?
Tx!
Ira
Running the following: J! 1.0.10 SMF 1.1RC3 JSMF 1.1.4.2 RegisterGlobals Off CB Gallery 1.0.1 PHP 4.4.4 Apache 1.3.37 (Unix)
Getting the error: Parse error: syntax error, unexpected ';' in /home/XX/public_html/joomla/administrator/components/com_smf/config.smf.php on line 6
« Last Edit: August 28, 2006, 08:46:48 PM by ira salsberg »
Joomla 1.0.10 and 11 appear to have better security for global variables which is causing this. Try to manually configure the file. 0's are no and 1's are yes, for the most part. This is all fixed in JSMF 2.0, the configs are stored in a db table. Once loaded they are cached for performance. It is a much better solution. You can expect JSMF 2.0 beta next week.
I have mentioned before that my work on JSMF 2.0 is taking precendence over fixes to 1.1.4.2. I will come back and fix up this release to a small extent however the main development will continue with JSMF 2.0.
We appreciate that your time is being taken up by new development, but could you at least POINT us to where the config file is being written? If we can change the CAUSE of the problem, we can fix it once and for all, then post the fix here... Ironically, it was working fine in J! 1.0.10, but broke in J! 1.0.11
the problem resides in the way the parameters are retrieved from the form that is submitted when you click save. This results in empty parameters being written to the file in the form:
Code:
$parameter = ;
The ultimate fix is to retrieve the parameters in a way that is allowed in J! 1.0.11. If you are looking for a quick fix, the file is located here:
administrator/components/com_smf/config.smf.php
Basically, 0's are for no or disabled and 1's are yes or enabled. You should input values and then load the configurations to see what you have. Change what you want changed and then reload the configurations, etc.
I apologize for not having the time to fix this right away.
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