Restricted Access message when trying to do ANYTHING

Started by directtech, November 24, 2006, 06:33:41 PM

Previous topic - Next topic

directtech

SMF Version: SMF 1.1 RC3
Hello,
I have setup the forum and implemented the bridge with Joomla.  It WAS working, but I'm not sure what setting I jacked up.  Now, everything is blocked with Restricted Access messages.  I can't login, can't open topics, anything.  Any ideas on how to fix this?

Elmacik

Whats the exact "message" you get?
I assume you are already logged in (as an admin I guess)
Home of Elmacik

directtech

I am not logged in and can not log back in.  When going through the Joomla bridge, ANYTHING I click on in the forum takes me back to the frontpage of the website... NOT the forum page.  Now, when I go directly to the forum NOT using the bridge, ANYTHING I click on gives me a popup error message that just says "Restricted Access".  That's it.  Totally stuck with nothing to do and no ideas.  Please help.

Jacen

I don't use Joomla so I don't know anything about it, but sounds like Joomla edited the forum to make it have to worfk through the bridge.

Question: Can you log in to Joomla's control panel?
"I've always found that sticking your fingers in your ears and humming loudly solves a whole slew of problems."

directtech

I do not believe this to be an issue with Joomla as the forum does not work even when being accessed directly (http://www.mydomain.com/forum) outside of Joomla.  All the Joomla bridge really does is iframe the forum into the joomla site so it appears to be a part of the site.

Elmacik

Home of Elmacik

directtech

The forum is at:
http://www.thespread.com/forum

or if you go to thespread.com and click "Forum" on the menu, you'll get the version through the Joomla bridge component.  Thanks for checking into this.

Elmacik

Some modules, addons you installed broke your links in my opinion. Or probably wrong usage of SEF system.
Since this is related to Joomla, I will move this topic to Joomla/Mambo support board.
But let me tell you my opinion;

When your forum is accessed really directly, there is absolutely no problem
Try yourself: http://www.thespread.com/forum/index.php?board=1.0
Try a topic: http://www.thespread.com/forum/index.php/topic,26219.0.html

You see, it works well. But probably you installed something that breaks the URLs.
Because your forum produces broken links like these:
http://www.thespread.com/index.php?option=com_smf/index.php?board=1.0
http://www.thespread.com/index.php?option,com_smf&Itemid,483&board,1.0
But what it should actually be is this, it works you can try:
http://www.thespread.com/index.php?option=com_smf&Itemid=483&board=1.0

While you can try uninstalling the last addon you setup, you can wait Orstio help you in where I will move this topic now.
Home of Elmacik

directtech

I have not installed ANY addons to SMF.  I can see that your links work, but when I click any links in them still, I get the same problems of course.  What I would like to try is to turn off the SEF setting within SMF, but I can't login.  Where and in what file can I edit to do this manually without logging in??

Orstio

In your SMF admin panel, did you change the value of "Forum URL" ?

directtech

Yes I did as I was trying to get it to work with SEF through the Joomla bridge.  I have Artio SEF installed.  I just now changed the forum URL in the Settings.php file to reflect what I believe is the correct URL.  NOW, the forum outside of Joomla functions correctly.  I can even login :) 

So, now... what do I do to get this working in Joomla again?  Any link takes me back to the main site frontpage.

Orstio

It's still not correct.  You need to get rid of the "/index.php"

Elmacik

#12
I am not a Joomla guru, but as far as I remember, you cant use SEF both in SMF and Joomla together, when they are bridged.
They usually recommend to turn off SEF in SMF while its on in Joomla.

What you can try now is opening Settings.php which is in your forum directory, and finding $boardurl there. Then set it to exactly:
http://www.thespread.com/forum

Edit: Well this is the same thing we are talking about. So I didnt want to delete my reply even after I saw you already replied. Sorry for making noise in here Orstio :)
Home of Elmacik

Orstio

QuoteI am not a Joomla guru, but as far as I remember, you cant use SEF both in SMF and Joomla together, when they are bridged.
They usually recommend to turn off SEF in SMF while its on in Joomla.

That is correct.  You need to let Joomla handle the SEF.

directtech

I have changed the Settings.php as you said and turned OFF SEF in SMF.  I had set Artio SEF to skip com_smf.  As it still isn't working, maybe I'll change that and see what happens.

Orstio


directtech

#16
The mambot is published.  Is it not supposed to be??  However, when I go to edit the mambot settings, this error message is displayed above the mambot settings:

Warning: file_get_contents(/xxxxxx/xxxxxx/public_html/mambots/system/SMF_header_include.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /xxxxxx/xxxxxx/public_html/includes/domit/xml_domit_lite_parser.php on line 1079

Also, the SEF program within Joomla automatically assigns the SEF url of forum/index.php to com_smf.  Of course, that is the ACTUAL URL, so it takes it out of the Joomla site.  When I alter the SEF link in the admin of Artio SEF, the forum does not display.  I get this error message:

DB function failed with error number 1146
Table 'smf_db.jos_menu' doesn't exist SQL=SELECT name FROM jos_menu WHERE link = 'index.php?option=com_smf'

So, two different error messages here that I have no idea what to do with :)

Orstio

QuoteWarning: file_get_contents(/xxxxxx/xxxxxx/public_html/mambots/system/SMF_header_include.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /xxxxxx/xxxxxx/public_html/includes/domit/xml_domit_lite_parser.php on line 1079

That would be because you failed to read and follow the instructions in the readme.html that comes with the bridge:

Quote from: readme.htmlMake sure the following folders are writable (chmod 777) before installing the component:
  /components
  /modules
  /mambots/system
  /administrator/components

Chances are that you did not chmod your mambots/system folder to 777 before you installed the bridge.  Now, you'll need to unzip the com_smf.zip package, and put the files SMF_header_include.php and SMF_header_include.x into your mambots/system folder, and then rename SMF_header_include.x to SMF_header_include.xml.

QuoteDB function failed with error number 1146
Table 'thespre_smfforum.jos_menu' doesn't exist SQL=SELECT name FROM jos_menu WHERE link = 'index.php?option=com_smf'

That would be an indication that your SMF database user does not have access to your Joomla database.  You probably also did not grant access to your Joomla database user to your SMF database, so you should probably make sure of both.


directtech

Ok, got the mambot error fixed.   :-[

Regarding the users of the two databases, the users of both have access to the other db.  Does that error mean that it is looking for a table 'jos_menu' within the smf database?  Cause there isn't such a table there.

Orstio

QuoteDoes that error mean that it is looking for a table 'jos_menu' within the smf database?  Cause there isn't such a table there.

No.  The error message is telling you the symptom.  It is looking for the jos_menu table in the SMF database, but it should not look there for it.  It should be switching to the Joomla database before doing that.  But, if the SMF database user has no access to the Joomla database, then it will not switch.

Are you absolutely sure that your SMF database user has access to your Joomla database?

Advertisement: