Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Support specific to the SMF 1.1.x plugin.

Moderator: fanno

Forum rules
Please post all the bugs you encounter on our issue tracker.

Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby GJSchaller on Mon Jul 12, 2010 12:19 am

Please fill up the following form to enjoy free support from our Team. No Support will be provided in case this form is not filled up!

1. Have you searched the forums and checked the documentation section for a solution?
Yes

2. Please summarize your problem in a few lines.
When I upgraded JFusion 1.2.4 to 1.5.0-000 (Rev 2235) using the JFusion integrated updater, and SEF is enabled in Joomla 1.5.18, any links within SMF (Search, Admin, Boards, Posts, etc.) generate a 404 error.

3. What steps will reproduce the problem?
Any link from the main SMF (Framless) page, with SEF enabled in JFusion

4. What is the expected output? What do you see instead?
Expected SMF page in frameless Joomla, got 404 instead.

5. You must include a printout of the login checker in the JFusion component.

Code: Select all
Joomla Version     1.5.18
PHP Version    5.2.12
MySQL Version    5.0.90-community-log
System Information    Linux ocean.xtardns.com 2.6.18-164.10.1.el5 #1 SMP Thu Jan 7 20:00:41 EST 2010 i686
Browser Information    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
joomla user Plugin    Enabled
jfusion user Plugin    Enabled
jfusion authentication Plugin    Enabled

JFusion Versions
JFusion Component Version    1.5.0-000 (Rev 2235)
JFusion Authentication Plugin Version    1.5.0-000
JFusion User Plugin Version    1.5.0-000
JFusion Activity Module Version    1.5.0-000
JFusion Login Module Version    1.5.0-000
JFusion Search Plugin Version    1.5.0-000
JFusion Discussion Plugin Version    1.5.0-000

JFusion smf Plugin
configuration    master 1
slave 0
dual_login 1
check_encryption 1
JFusion joomla_int Plugin
configuration    master 0
slave 1
dual_login 1
check_encryption 1


Authentication Plugin
userid    34
username    GJSchaller
name    GJSchaller
email    gjschaller@psi-13.com
password    ca8a7f********
password_salt    4626*****
activation    ""
is_activated    1
reason    null
lastvisit    1278476251
group_id    0
group_name    Default Usergroup
block    0
credentialed_username    GJSchaller
password_clear    ******
   Authentication Plugin Success
Authentication Plugin Debug
0    smf Password Encryption Check: ca8a7f******** vs ca8a7f********
1    smf Password Encryption Check: Success


jfusion User Plugin
   User Plugin Success
User Plugin Debug
init    0 Using userinfo JFusion authentication plugin
joomla_int User Update    0 A user has been found that matches the login details
1 Skipped Password Update: Password already valid
2 The user group has been updated: 23 -> 29
3 Language of the user not updated: gjschaller@psi-13.com en-GB -> en-GB
joomla_int User Details    userid 91
activation ""
username GJSchaller
name GJSchaller
password d963e9********
email gjschaller@psi-13.com
block 0
group_name Public Frontend
group_id 29
params " "
password_salt 4626*****
language en-GB
password_clear ******
smf Session    0 Trying to find loginform using url: http://storytellers.knightrealms.com/smf/index.php?action=login
1 Login page read, setting cookies first phase:
2 Created Cookie: Name=PHPSESSID, Value=c173962023bb41eba038b6fb82be558e, Expires=11-07-2010 20:47:51, Cookie Path=/, Cookie Domain=.knightrealms.com, Cookie Secure connection only=0, Cookie HTTP-only=0
3 Valid login form found
4 Valid username and password fields found
5 Starting login: action= http://storytellers.knightrealms.com/smf/index.php?PHPSESSID=c173962023bb41eba038b6fb82be558e&action=login2 parameters= user=GJSchaller&passwrd=xxxxxx&cookielength=-1&submit=Login&jnodeid=storytellers.knightrealms.com
6 Login performed, setting cookies definite phase:
7 Created Cookie: Name=PHPSESSID, Value=c173962023bb41eba038b6fb82be558e, Expires=11-07-2010 20:47:51, Cookie Path=/, Cookie Domain=.knightrealms.com, Cookie Secure connection only=0, Cookie HTTP-only=0
8 Created Cookie: Name=SMFCookie246, Value=a:4:{i:0;s:2:"34";i:1;s:40:"dbf6a90dacaf26ac0ca5b587f595a1204866b7d4";i:2;i:1468109871;i:3;i:2;}, Expires=09-07-2016 20:17:51, Cookie Path=/, Cookie Domain=.knightrealms.com, Cookie Secure connection only=0, Cookie HTTP-only=0
9 Created Cookie: Name=PHPSESSID, Value=22c915062f4593d9017c5541081849cb, Expires=11-07-2010 20:47:51, Cookie Path=/, Cookie Domain=.knightrealms.com, Cookie Secure connection only=0, Cookie HTTP-only=0
10 CURL_LOGINTYPE=brute_force
joomlaid    91
Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
User avatar
GJSchaller
JFusion Intermediate
JFusion Intermediate
 
Posts: 80
Joined: Wed Apr 22, 2009 12:54 am

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby GJSchaller on Mon Jul 12, 2010 12:23 am

The workaround is simple - disable SEF for the time being.

I tried both options for SEF in the SMF Plugin settings, neither worked.

What should be:

http://storytellers.knightrealms.com/smf/index.php

leads to:

http://storytellers.knightrealms.com/in ... index.php/

And the error:
Code: Select all
404 - Component not found

You may not be able to visit this page because of:

   1. an out-of-date bookmark/favourite
   2. a search engine that has an out-of-date listing for this site
   3. a mistyped address
   4. you have no access to this page
   5. The requested resource was not found.
   6. An error has occurred while processing your request.

Please try one of the following pages:

    * Home Page

If difficulties persist, please contact the System Administrator of this site.

Component not found
Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
User avatar
GJSchaller
JFusion Intermediate
JFusion Intermediate
 
Posts: 80
Joined: Wed Apr 22, 2009 12:54 am

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby fanno on Mon Jul 12, 2010 12:47 am

Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7680
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby GJSchaller on Mon Jul 12, 2010 1:04 am

Argh!

I looked at that post, I really did!

I forgot I had two different Joomla installs on the same server, and I was looking at the public.php for the wrong install - which was still running 1.2.4! :oops:

Thank you!
Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
User avatar
GJSchaller
JFusion Intermediate
JFusion Intermediate
 
Posts: 80
Joined: Wed Apr 22, 2009 12:54 am

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby GJSchaller on Mon Jul 12, 2010 1:18 am

I'm now running into another problem, after updating Public.php per Fanno's post.

When I hover on a link to a sub-board, the URL is:

http://storytellers.knightrealms.com/fo ... board=11.0

But when I click on it, it resolves to:

http://storytellers.knightrealms.com/fo ... board,11.0

And gives me a 404. What is causing the URL to change?
Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
User avatar
GJSchaller
JFusion Intermediate
JFusion Intermediate
 
Posts: 80
Joined: Wed Apr 22, 2009 12:54 am

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby fanno on Mon Jul 12, 2010 1:59 am

I am not sure why the url is redirected ? but if you add a / at the end

Code: Select all
http://storytellers.knightrealms.com/forums/index.php/board,11.0/


It works my guess is because of the .0 it is looking for a file called board,11.0

i'll take a look tomorrow if i have time, feel free to me in a few days if i missed it ! =P

-Thanks
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7680
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby GJSchaller on Mon Jul 12, 2010 2:49 am

Thank you - I have disabled SEF for now, so that the forums are working. If you need me to re-enable it, let me know.
Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
User avatar
GJSchaller
JFusion Intermediate
JFusion Intermediate
 
Posts: 80
Joined: Wed Apr 22, 2009 12:54 am

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby fanno on Mon Jul 12, 2010 1:41 pm

here is the coperate

http://code.google.com/p/jfusion/source ... ult.php#40

find:
Code: Select all
//check for .html suffix mode
$sef_suffix = $mainframe->getCfg('sef_suffix');
if($sef_suffix == 1){
        //redirect if url non_sef
        if (strrpos($data->fullURL, '?') !== false) {
           //replace all non-sef characters and redirect
           $data->fullURL = preg_replace('/\?/', '/', $data->fullURL);
           $data->fullURL = preg_replace('/\=/', ',', $data->fullURL);
       $data->fullURL = preg_replace('/\&/', '/', $data->fullURL);
       $mainframe->redirect($data->fullURL);
        }
}


change to

Code: Select all
//check for .html suffix mode
$sef_suffix = $mainframe->getCfg('sef_suffix');
if($sef_suffix == 1 && false){
        //redirect if url non_sef
        if (strrpos($data->fullURL, '?') !== false) {
           //replace all non-sef characters and redirect
           $data->fullURL = preg_replace('/\?/', '/', $data->fullURL);
           $data->fullURL = preg_replace('/\=/', ',', $data->fullURL);
       $data->fullURL = preg_replace('/\&/', '/', $data->fullURL);
       $mainframe->redirect($data->fullURL);
        }
}
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7680
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby GJSchaller on Mon Jul 12, 2010 1:56 pm

Thank you - I'll give it a shot tonight when I am home from work!
Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
User avatar
GJSchaller
JFusion Intermediate
JFusion Intermediate
 
Posts: 80
Joined: Wed Apr 22, 2009 12:54 am

Re: Updating JFusion from 1.2.4 to 1.5.0 - SMF (Framless) 404

Postby fanno on Mon Jul 12, 2010 3:29 pm

GJSchaller wrote:Thank you - I'll give it a shot tonight when I am home from work!

just a note, this is should only remove the problem but it could cause other problems as the code was added for a reason, but it should make your site work again.

-Thanks
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7680
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Next

Return to SMF 1.1.x

Who is online

Users browsing this forum: No registered users and 0 guests