Bridge v1.1.2 issues with page not found...

Started by Kindred, January 13, 2006, 02:51:45 PM

Previous topic - Next topic

Kindred

Hi Orstio,

So, the folder jumpto, which previously caused the board to break out of wrap (by directing to the actual forum URL) now breaks completely.

going to the jumpto box sends me to:
http://SITE/forum/index.php&board=13.0

where it should, of course, be
http://askawitchcommunity.org/index.php?option=com_smf&Itemid=147&board=13.0

Now...  I have always had some issues with login/logout redirecting back to the user's previous page.
I figured they were due to the customized 40x component that I had installed (login/logout directed a user, always, to the 404 page not found screen)

NOW! however, I disabled the 404...
For some reason, login/logout is directing the page to
http://SITE/index.php?option=com_smf&Itemid=147&action=login2
and
http://SITE/index.php?option=com_smf&Itemid=147&action=logout&returnurl=2&sesc=0769a4d7ad29ff61590d9f12b91549d8

They look right... BUT they come up as 404!

Choosing joomla homepage or smf homepage used to work just fine...  but with 1.1.2, EVERY login/logout takes me to a 404 page!


Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Harzem

Same here! Waiting for a solution. It is just 5 minutes since I installed Joomla, SMF, and their bridge.

www.harzem.com/dershane

Orstio

I just fixed it.  My apologies for the typo.

Harzem

Can you give the change here? We can go and edit what we should edit. Or should we redo all the bridging?

Orstio

Just redownload the bridge, unzip it, and upload the file smf.php to your components/com_smf folder.

Kindred

ok... I tried the 1/13 update (still 1.1.2 in the post?)

still have the same problem.

404 not found on the jumpto box and on login or logout...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Orstio

#6
Quoteok... I tried the 1/13 update (still 1.1.2 in the post?)

still have the same problem.

404 not found on the jumpto box and on login or logout...

Are you certain that your smf.php is updated?  I just tested this on my site with SEF both on and off, and all seems to be working.

If this is the site, Kindred:

http://askawitchcommunity.org/index.php?option=com_smf&Itemid=147

Then it is definitely not 1.1.2.  This is some of the code from the jumpto there:

<option value="?&amp;board=3.0">

And in 1.1.2, I changed that so that it would appear like this instead:

<option value="&amp;board=3.0">

(I removed the opening "?".)

Kindred

I had it up to 1.1.2, but switched it back because I don't want people dropping into the 404.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Harzem

My 404 Error is solved by the update. You may retry the bridge may be...

Kindred

#9
Ok...  this is very odd...

I load the new smf.php (1.1.2 from 1/13) over the old one..


Joomla-standard SEO OFF:

"jumpto" gives me 404.  (it goes to http://askawitchcommunity.org/forum/index.php&board=2.0 which is obviously wrong.)
Preview Post does not work
login/logout redirect to previous page gives me 404.

Joomla-standard SEO ON:

"jumpto" breaks out of wrap
Preview Post does not work
login/logout redirect to previous page gives me 404.

With the new bridge, I have noticed that my sitemapping is also broken now...

http://askawitchcommunity.org/sitemaps/index.php inserts the front page object before the other...  (like this: http://askawitchcommunity.org/index.php?option=com_frontpage&Itemid=1/index.php?option=com_smf&Itemid=147?topic=506.0 )

I have left the 1.1.2 published for now...


Of course, with SEO on, all of the modules (who's online2, recent posts and the calendar module) all show the non-SEO links...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Orstio

Open the file smf.php (the one that you say is the new one).

Is line 505 this?

$setLocation = $mosConfig_live_site . '/' . $setLocation;

or this:

$setLocation = $mosconfig_live_site . '/' . $setLocation;

Kindred

#11

if ($mosConfig_sef == 1){
$setLocation = sefReltoAbs($setLocation);
} else {
$setLocation = $mosConfig_live_site . '/' . $setLocation;
}


Also, I am getting this error filling up my SMF error log
8: Undefined index: sa
File: /SITE/components/com_smf/smf.php
Line: 497

line 497 is:
   if (substr($setLocation, 0, 4) == 'http' && $_REQUEST['action'] != 'logout' && $_REQUEST['sa'] != 'check')
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Orstio

OK, this might have to do with commenting out the SMF header, and the code in the Joomla template.

When I view your page source, there are these two lines:

                var smf_scripturl = "http://askawitchcommunity.org/forum/index.php";

and

        <link rel="contents" href="http://askawitchcommunity.org/forum/index.php" />

Can you hardcode those to this:

                var smf_scripturl = "http://askawitchcommunity.org/index.php?option=com_smf&amp;Itemid=147";

and

        <link rel="contents" href="http://askawitchcommunity.org/index.php?option=com_smf&amp;Itemid=147" />

Kindred

Damn... can't believe I missed that every time I looked at the page code..

I did it slightly differently, now that you pointed out the error point.


global $txt, $mosConfig_dbprefix, $mosConfig_db, $db_name;
mysql_select_db($mosConfig_db);
$sql = "SELECT id FROM ".$mosConfig_dbprefix."menu WHERE link='index.php?option=com_smf'";
$result = mysql_query ($sql);
$row = mysql_fetch_array($result);
$myurl = $_SERVER['PHP_SELF'] . "?option=com_smf&Itemid=" . $row[0]."&";
$scripturl = $myurl;


was added just before the start of the SMF Head info that I took from index.template.php

Seems to have fixed the jumpto issues... and the login/logout redirect.

Only thing left is the error
8: Undefined index: sa
File: /SITE/components/com_smf/smf.php
Line: 497
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Orstio

Yeah, some servers will do that.  Change line 497 to this:

if (substr($setLocation, 0, 4) == 'http' && $_REQUEST['action'] != 'logout' && (!isset($_REQUEST['sa']) || $_REQUEST['sa'] != 'check'))

Kindred

yup, that fixed it.  Thanks, Orstio!

Oh... that fix in the header also seemsa to have fixed the preview issue ie IE!
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

vibez

Quote from: Orstio on January 14, 2006, 05:06:05 PM
Yeah, some servers will do that.  Change line 497 to this:

if (substr($setLocation, 0, 4) == 'http' && $_REQUEST['action'] != 'logout' && (!isset($_REQUEST['sa']) || $_REQUEST['sa'] != 'check'))

Thanks for the tip! It worked a treat on my server

bicunisa

I'm getting lots of errors that read along these lines:

8: Undefined index: sa
Archivo: /SITE/components/com_smf/smf.php
Línea: 497

I tried to replace the line 497:
echo '<pre>';

With this one:
if (substr($setLocation, 0, 4) == 'http' && $_REQUEST['action'] != 'logout' && (!isset($_REQUEST['sa']) || $_REQUEST['sa'] != 'check'))

And it doesn't work :(
I'm still getting the same errors:
8: Undefined index: sa
Archivo: /SITE/components/com_smf/smf.php
Línea: 498

But now it points to line 498, any ideas?

Kindred

that was not line 497....

either that or you modified something, because the line you need to change reads:
if (substr($setLocation, 0, 4) == 'http' && $_REQUEST['action'] != 'logout' && $_REQUEST['sa'] != 'check')

changing the echo statement would have no effect (obviously)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bicunisa

Woops! sorry but that line of code you pointed isn't near line 497.

Found the correct line to substitute at line: 994
And I haven't messed with the smf.php file before.

After that change it worked pretty good, thanks a lot guys :D

Advertisement: