Home arrow Forum Error
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 07:20:41 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  Error
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Error  (Read 4440 times)
Aled
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Error
« on: August 13, 2006, 04:20:30 PM »

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 » Logged
joomlanewbie
Joomla Master
***

Karma: +20/-5
Offline Offline

Posts: 145


View Profile
Re: Error
« Reply #1 on: August 13, 2006, 07:42:42 PM »

those parse errors may be caused by the file being incorrectly uploaded.

reupload that file and try again
make sure it has the right permissions (chmod) as well
Logged
kai920
Moderator
Joomla Expert
*****

Karma: +14/-2
Offline Offline

Posts: 275



View Profile
Re: Error
« Reply #2 on: August 13, 2006, 10:52:21 PM »

If Joomlanewbie's suggestion does not work, try posting the contents of your config.smf.php.
Logged

Aled
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: Error
« Reply #3 on: August 14, 2006, 09:46:44 AM »

i've uninstalled it and re-installed it a few times.

When i've tried uninstalling it. It removes the line from the components install section however when i go to joomlaexplorer it's still there.

So i've manually removed the folder.

This is what the code in config.smf.php

Code:
<?php
global $smf_path$smf_redirect$joomla_redirect$smf_prefix$mos_prefix;
global 
$wrapped$sync_uname$hideemail$cbprofile$registration_module$login_module$mosurl;
global 
$announce_url$news_url$latest_joomlasmf_url;
$smf_path "";
$smf_redirect = ;
$joomla_redirect = ;
$mos_prefix "jos_";
$smf_prefix "";
$wrapped = ;
$sync_uname = ;
$hideemail = ;
$cbprofile 0;
$registration_module "";
$login_module "";
$mosurl "http://ask4hosting.co.uk/swansealacrosse/index.php?option=com_smf&Itemid=35&";
$jsmf_debug = ;
//The following are used for the syndication feed
$announce_url "http://www.joomlahacks.com/news/mh_announcement.rdf";
$news_url "http://www.joomlahacks.com/index2.php?option=com_rss&feed=RSS1.0&no_html=ss1";
$latest_joomlasmf_url "http://www.joomlahacks.com/news/mh_mambo_smf_update.rdf";
?>
Logged
Aled
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: Error
« Reply #4 on: August 14, 2006, 09:47:20 AM »

the forum is in /swansealacrosse/forum
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Error
« Reply #5 on: August 14, 2006, 09:59:45 AM »

edit that file, anywhere there is

Code:
= ;

change it to
Code:
= 0;

That will fix it.  Curious thing is how that happened.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Aled
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: Error
« Reply #6 on: August 14, 2006, 12:12:05 PM »

I've done that, but then when i go to save. It takes away all the 0 and reverts back to the above code
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Error
« Reply #7 on: August 14, 2006, 06:53:05 PM »

then something is wrong on your installation.  I would uninstall and reinstall. 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Chemofunk
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 8


View Profile
Re: Error
« Reply #8 on: August 19, 2006, 12:05:41 PM »

I am having this bug, too. Reinstalling does not help.

Code:
J! 1.0.10
JSMF 1.1.4.2
RegisterGlobals Off
Logged
ira salsberg
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Error
« Reply #9 on: August 28, 2006, 08:36:44 PM »

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 » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Error
« Reply #10 on: September 01, 2006, 09:03:10 AM »

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.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Crim
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile WWW
Re: Error
« Reply #11 on: September 01, 2006, 11:46:39 AM »

Is there anyway to fix this, it gets tiring opening up my ftp and then editing files for a simple change.
Logged

-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Error
« Reply #12 on: September 01, 2006, 02:47:49 PM »

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.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Bruce Nazarian
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 14


View Profile
Re: Error
« Reply #13 on: September 01, 2006, 03:13:16 PM »

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

Bruce
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Error
« Reply #14 on: September 01, 2006, 03:54:39 PM »

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. 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Pages: [1] 2 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
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login