Home arrow Forum "register_globals off" problem with SMF Bridge
  Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 04:52:53 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)
| | | |-+  "register_globals off" problem with SMF Bridge
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: "register_globals off" problem with SMF Bridge  (Read 5030 times)
Eframis
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
"register_globals off" problem with SMF Bridge
« on: August 28, 2006, 08:52:14 AM »

Hi...

I'm Eframis from Turkey...

My Site Info is here:
Joomla 1.0.10
SMF 1.1 RC2 (with 1.1 RC2-2 Security Patch)
J-SMF 1.1.4.2
J-SMF Who's Online 1.4
J-SMF Login 1.4.2
J-SMF Recent Topics 1.7.1
J-SMF Forum Discussbot 1.4.3


I need and want to enable "register_globals" is "OFF" for security reasons, but I make do this, getting some errors...

I getting following problems when enable "register_globals=OFF":
1- config_smf.php file is not saving... When Saving Configuration, I get the below error:
Quote
Parse error: syntax error, unexpected ';' in /home/*****/public_html/administrator/components/com_smf/config.smf.php on line 6

And my config_smf.php file is vrong like below:
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 "mos_";
$smf_prefix "";
$wrapped = ;
$sync_uname = ;
$hideemail = ;
$cbprofile 0;
$registration_module "";
$login_module "";
$mosurl "http://www.******.com/index.php?option=com_smf&Itemid=155&";
$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";
?>


2- If I mark the option "Stay always logged in", I'm getting logged of after ~60 minutes from Joomla, but not from SMF.

The mod_smf_login shows me still as logged in, but in fact I am not, as other "Registered only" functions in Joomla are disappearing and I have to relog on.


3-( MOST IMPORTANT )

When "registy_globals" is "OFF" I'm not send any PM, not create any New Topic, not editing any existing Topic/post and not reply to the any post...

When I make to the above things, I get the "You are not authorized to view this resource." (HTTP 403 Error)...

Please help me...

When registry_globals is ON, no any problem, but I want to OFF this...

Sorry My Bad English...
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-36
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "register_globals off" problem with SMF Bridge
« Reply #1 on: August 28, 2006, 09:28:18 AM »

The first two are an issue with the bridge.  The final one is an issue with Joomla 1.0.X.  My understanding is that 1.0.x does not work well with register globals off.  The upcoming Joomla 1.5 is designed to work that way.  In any case, that is the reason for your third error. 

As to 1 and 2, these should be solved in JSMF 2.0.
Logged

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

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: "register_globals off" problem with SMF Bridge
« Reply #2 on: August 28, 2006, 10:27:44 AM »

Thanks for your reply...

Third problem is no occured when normal forum path and login (as http://www.mysite.com/forum) but when I logged using com_smf (as http://www.mysite.com/component/option,com_smf/Itemid,94) with register globals=OFF, this error ocurred...

I'll waiting J-SMF 2.0 Cheesy
Again thanks...
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-36
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "register_globals off" problem with SMF Bridge
« Reply #3 on: August 28, 2006, 11:36:35 AM »

Yes, that should be correct with #3.  It is joomla which is producing the you're not authorized error. 
Logged

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

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: "register_globals off" problem with SMF Bridge
« Reply #4 on: August 31, 2006, 09:10:03 PM »

Thanks...

Ok.. I have found reason of #3. problem...

This problem to result from SMF BBC Code Settings...

My forum's Bulletin Board Code Settings are:

Enable bulletin board code (BBC) =(Checked)
Enable basic HTML in posts = (Checked)
Automatically link posted URLs = (Checked)


When I use an URL with started http:// (like http://www.anysiteurl.com) in my post I getting HTTP 403 Forbidden Error, if I use direkt (without http://) link (like www.anysiteurl.com), no error...


There are any solve of this problem?

(Sorry My Bad English)
« Last Edit: August 31, 2006, 09:19:13 PM by Eframis » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-36
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "register_globals off" problem with SMF Bridge
« Reply #5 on: August 31, 2006, 10:36:59 PM »

that sounds like a core SMF problem.  Does it do this when you access the forum directly?
Logged

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

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: "register_globals off" problem with SMF Bridge
« Reply #6 on: August 31, 2006, 11:04:44 PM »

that sounds like a core SMF problem.  Does it do this when you access the forum directly?

No... This error no occured when directly forum access... But occured when Com_Smf (Joomla Bridge) access..
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-36
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "register_globals off" problem with SMF Bridge
« Reply #7 on: August 31, 2006, 11:24:27 PM »

well we do go through the page and rewrite all urls that pertain to the bridge, it could be that we are doing something to it.  Can you enable debug and send it to me via pm?
Logged

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

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: "register_globals off" problem with SMF Bridge
« Reply #8 on: September 02, 2006, 10:04:43 AM »

You are great a man, Wolverine... Thanks for your helps and everything...
Logged
kober
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: "register_globals off" problem with SMF Bridge
« Reply #9 on: February 10, 2007, 06:23:22 PM »

When I use an URL with started http:// (like http://www.anysiteurl.com) in my post I getting HTTP 403 Forbidden Error, if I use direkt (without http://) link (like www.anysiteurl.com), no error...

Is there a help for this? I get the same error:

You are not authorized to view this resource.

without http:// in the front the is everything all right Smiley
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







Joomla Hacks German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
About Advertise Register Login