Author Topic: SMF bridge for Joomla troubles  (Read 24059 times)

Xboy

  • Newbie
  • *
  • Posts: 6
    • View Profile
SMF bridge for Joomla troubles
« on: 11 March 2007, 20:35 »
Hello,

your component is great. Much better than OpenSEF but i have problem with SMF bridge.

If i install SMF bridge everything works. But at the moment i installed SEF Advance i am getting this error:

 The following error or errors occurred while posting this message:
Your session timed out while posting. Please try to re-submit your message.
No subject was filled in.
The message body was left empty.

I got your new SEF advance version - 4.8 so i uninstalled SEF Advance 4.6 and installed Bridge again...Everything was great until i instaled new version of SEF Adv. Still same problem.

I also tryed to exclude bridge component in configuration but from that time i am getting error my smf pages not exist.

Can you help me? I see you run SMF on your site too.

Thanks.



Hagadoo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #1 on: 11 March 2007, 21:01 »
I had the same problems with 4.8. I disbled the SMF Bridge component in SEF Advance and replaced the original Joomla sef.php in the includes folder and atleast have it working in the rest of the site and can post in forums again!
Hopefully this issue will get worked out.

Hag

http://www.hagadoo.com
« Last Edit: 11 March 2007, 21:04 by Hagadoo »

Xboy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #2 on: 11 March 2007, 22:09 »
I had the same problems with 4.8. I disbled the SMF Bridge component in SEF Advance and replaced the original Joomla sef.php in the includes folder and atleast have it working in the rest of the site and can post in forums again!
Hopefully this issue will get worked out.

Hag

http://www.hagadoo.com


Thank you, /includes/but sef.php was replaced with what? With sef.php from SEF Advance package? There is big difference i guess.

Ok, i will try it but....  ;D




Hagadoo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #3 on: 11 March 2007, 23:43 »
I replaced the sef.php that was in the /includes/ folder on the server, with the one that was in the Joomla 1.0.12 package in the /includes/ folder.

Hag

Xboy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #4 on: 12 March 2007, 01:15 »
Yes i did it too. No results. But still many thanks for your time.

Regards! Leaving to bed: 0:30 AM here


Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,650
    • View Profile
    • Sakic.Net
Re: SMF bridge for Joomla troubles
« Reply #5 on: 14 March 2007, 07:48 »
Hello all,

This issue has been resolved now.

The problem was not that SEF Advance stripped POST variables, the problem was that SMF bridge was sending the form to an URL without trailing slash.
And, as you might know, SEF Advance redirects all requests without trailing slash to the URL with slash to create default directory server behavior.
Then, when sent to a new page with slash, POST variables were no longer present and login would fail.
Everything can be fixed by adding the trailing slash to the URL in SMF Bridge action form, but I decided to even put the fix in SEF Advance so such URLs are supported for posting. So I added a redirect prevention if POST variables are sent.

If you download the latest version (4.8.1) you will find this issue fixed. You can just replace files:
./components/com_sef/sef_incl.php
./administrator/components/com_sef/sef.xml
« Last Edit: 14 March 2007, 07:51 by Saka »

mailalon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #6 on: 05 April 2007, 15:23 »
Emir Hi,
I installed the last version of sef advance on my site (4.9.3) i use Joomla 1.0.11 and Ortsio's bridge latest version that is on the SMF site.

The problem is that i can't enter the forums
m using the forum in unwrpped mode so when clicking on the forst forum on the list it creates the url : http://www.babyhold.com/index.php?option,com_smf&/Itemid,36&/board,1.0

which of course is incorrect it should be
http://www.babyhold.com/index.php?option,com_smf&Itemid=36&board=1.0

the only way for the forum to run with the bridge is to disable sef advance , which of course i don't want.

Please help

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,650
    • View Profile
    • Sakic.Net
Re: SMF bridge for Joomla troubles
« Reply #7 on: 05 April 2007, 17:12 »
Hi mailalon,

Can you please contact me on mail with your admin password and FTP info.

Thanks.

mailalon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #8 on: 11 April 2007, 17:45 »
Hi Emir,
I sent you an email with all the deatils but have not heard from you yet. Please help.

Alon

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,650
    • View Profile
    • Sakic.Net
Re: SMF bridge for Joomla troubles
« Reply #9 on: 14 April 2007, 07:01 »
Hello Alon,

It has been solved on your site now.

For other users having the same problem with links ending up in 404 errors I describe the solution.

Problem:
- SEF URLs are stripped by the trailing slash
- SEF Advance is not redirecting to slashed version because of the dots in URLs (thinking there are extensions)
- The URL ends up in 404 error

Solution:
- Don't strip trailing slash:
  In file components/com_smf/smf.php on line 235 change:
    $sefurl = substr($sefurl, 0, strlen($sefurl)-1);
    to:
    $sefurl = substr($sefurl, 0, strlen($sefurl));

mailalon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #10 on: 14 April 2007, 14:38 »
Hi Emir,
Thanks for the quick reply.

But i'm sorry to dissapoint now there is not problem to enter the forum. however when you click on a messege title such as this :  http://www.babyhold.com/option,com_smf/Itemid,38/topic,7.msg9#msg9

you will get a 404 again.

Alon

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,650
    • View Profile
    • Sakic.Net
Re: SMF bridge for Joomla troubles
« Reply #11 on: 14 April 2007, 14:39 »
OK, will have a look on that too.

mailalon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #12 on: 14 April 2007, 14:41 »
Emir,
I think that the reason is another dot in the url
http://www.babyhold.com/option,com_smf/Itemid,38/topic,7.msg9#msg9

mailalon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: SMF bridge for Joomla troubles
« Reply #13 on: 14 April 2007, 14:51 »
Hi Emir,
Thanks for your help on this. I wouldn't mind avoiding sef links for the smf forum but the real trouble is that from some reason even if you select in sef advance to ignore the bridge component it still put sef links inside the forum itself and gives 404 errors.

therefor, someone who runs sef advance can't run smf bridged and vice versa. as a site owner you have to choose if to run sef links or smf which is a hard choice as long as their is no really a good forum to joomla.

Alon

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,650
    • View Profile
    • Sakic.Net
Re: SMF bridge for Joomla troubles
« Reply #14 on: 14 April 2007, 15:08 »
Fixed that one too now:
http://www.babyhold.com/option,com_smf/Itemid,38/topic,2.msg2#msg2

This time the problem was in .htaccess file (that's why I always recommend using .htaccess from SEF Advance package, not the one that comes with Joomla!).

I commented out this line:
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]