Every time someone is logged in on the site and get logged out they are sent back to the login form. When enetering login details, the following is shown;
http://domain.com/action=forum
Not Found
The requested URL /action=forum was not found on this server.
I downloaded the repair_settings.php and ran it successfully. But now the error is back.
What is this and how do I fix it? It only happens when you get logged out by the timer.
Somewhere is missing index.php in your path.
Ah, so the path should read http://domain.com/index.php?action=forum ? I see, I'll check it out!
I tried to change the forum path from hxxp:domain.com to hxxp:domain.com/index.php? to let SMF add the action=forum, but what happened is that the path becomes hxxp:domain.com/index.php/index.php?action=forum... Double index.php? The first index.php wasn't there in the first place! Where did it come from?
The forum url must not include index.php!
You probably apllied some SEO mod's or tricks to remove index.php
Quote from: margarett on November 12, 2014, 03:26:46 AM
The forum url must not include index.php!
You probably apllied some SEO mod's or tricks to remove index.php
Have done some digging around and no, I haven't installed any mods to interfere with the path or even touched the settings in that way.
Sure I have a few mods installed, but nothing in that way.
I have ran repair-settings.php a few times and everythink LOOKS fine, but it's hard to say when I don't know where that /index.php belongs. I also searched old threads but nothing came up that looked like a solution...
The mods I have are
SimplePortal 2.3.6
Tapatalk SMF 2.0 Plugin 4.1.1
YouTube BBCode 2.6
Admin Notepad 2.0.2
Avatar Rounded Corners 1.0
Member Notepad 1.0.1
Order Custom Profile Fields 1.1.1
Sure, not all of them that essential, but they sure are fun :)
And I do recall that the website has behaved like this from like almost the very beginning.
Please, do advise :)
Dunno, sorry.
There are some tricks to remove index.php (which are not MODs), maybe you used such a thing?
I would suggest you to install a new SMF instance: other database, other folder in your server and check the behavior.
Suspicion: Something went awry, when you installed Simple Portal.
Hmm, ok that is a good suggestion. I will make a new, separate installation and take note of the settings before and after I install SimplePortal.
Let us know how you get on, woncha?
Well, I installed a fresh version of SMF on a test server, and the paths are "identical" (the test server has a different domain name). There is no mention in the Paths & URLs of index.php anywhere on the newly installed server. So none of the original Paths & URLs have been modified by any of the mods it would seem.
To clarify...
Without the portal, the homepage, here, would be http://www.simplemachines.org (If it was installed, here, which it ain't). That would take you to the portal.
The URL to the actual forum would be:
http://www.simplemachines.org/index.php?action=forum
The changes to Subs.php reflect this, as...
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
...gets changed to this...
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
'sub_buttons' => array(
),
),
Now, then... One would assume that everything worked as it ought to. Then, this thing started manifesting itself. The question has to be asked... What was done, between everything being as it ought to be, then not?
Quote from: K@ on December 04, 2014, 06:18:54 AM
To clarify...
Without the portal, the homepage, here, would be http://www.simplemachines.org (If it was installed, here, which it ain't). That would take you to the portal.
The URL to the actual forum would be:
http://www.simplemachines.org/index.php?action=forum
Now, then... One would assume that everything worked as it ought to. Then, this thing started manifesting itself. The question has to be asked... What was done, between everything being as it ought to be, then not?
Oh, I see. That makes sense. Well, to be honest I would say with 97% certainty that this problem appeared after the SimplePortal was installed. Also, a separate problem with persistent logins appeared, but that is another story...)
I'll go ahead and install the SimplePortal mod on the test domain to see if the problem appears there, both with random logouts and error in forum login redirect...
Thx a million so far!!!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc014.gif&hash=f74820123053ff9301b57a2ded5672bfa96b900b)
Ok, so it took some testing but the problem appears after installing the SimplePortal mod. Definetly. On the test domain there is nothing but the SMF forums and the newly installed SimplePortal, and problems appeared this morning.
That's also why we did not notice the problems on the original forums initially, because we did not install the portal from the start.
It also seems that the persistent login function, or even the logged in for X minutes function, stopped working as the portal was installed.
I was thinking of the above code line
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
Would it be incorrect to insert a index.php in that line, so it becomes
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? 'index.php?action=forum' : ''),
instead? Or is that improper repairs made? Because the code line itself seem to leave index.php out...
I believe that scripturl is defined to include index.php
Yes siree! :)
QueryString.php
// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/index.php';
Quote from: Kindred on December 05, 2014, 07:54:59 AM
I believe that scripturl is defined to include index.php
Yeah, I thought the exact same thing, but for some reason index.php is lost along the way somewhere... :(
Link to site?
Quote from: Arantor on December 05, 2014, 08:24:59 PM
Link to site?
Well, this is odd... Turned out there was an network issue here at work and that the test forums works just fine with SMF and SimplePortal... So the error with action=forum and logouts has not been resolved... :( :( :( :(
www.legione.se is the non working one in production...
www.bennerheim.se/smftest is the test domain that actually works as it should. Will continue to install mods to see if it changes anything...
Just a nudge...
Before you install a mod, try to remember to backup, first.
Yeah, it's a pain in the arse. But, it can save you so much hassle.
Click my sig for the "How". :)
Quote from: K@ on December 08, 2014, 05:09:42 AM
Just a nudge...
Before you install a mod, try to remember to backup, first.
Yeah, it's a pain in the arse. But, it can save you so much hassle.
Click my sig for the "How". :)
Actually, I do :) But the thing is... I faintly recall the error in question occured before I started to install mods... I had the SMF, SimplePortal and a swedish language pack installed default when the problems started. I have the same setup installed on the test site now and the test site works fine actually.
Also, funny thing, the menues behave differently with the same mods, same settings, same language file and same theme... I earlier thought these might be individual problems, but as they all began at the same time, and I can't seem to replicate them, I'm starting to wonder if something went "wrong" during initial installation and is now effecting several separate things on the site...
As you can see in this screenshot (it's in swedish but you get the idea) the word "Alternativ" is moved to the row below colliding with "Pakethanterare" on the main (green) forums. But on the test site (black), it does not. Installed from the very same files, I save all the installation files for everything I install.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FYdkF2Hx.png&hash=c91de64f997f06b012927b467ba294e5dfc58304)
I was told this is a common error with the Relax theme, but how come it did not happen on the test site? I performed both installations by the exact same manner...
Ah, now... That's the great mystery of the internet. Sites that seem the same often aren't.
My test site is on exactly the same server, with the same configuration. Yet, some things are different. Quite why, has always been a bit of a head-scratcher. :)
But, just one tiny thing being different can make quite big differences.
do note.... that "down on the next line" is a known issue with several themes...
Also note : different browsers will perform the same CSS commands differently. :(
Finally note the cache... once you visit a site - your browser often caches the CSS... your forum may also have the server-side cache enabled
Well, THIS is indeed strange as well... Went into the server settings to check out the cache settings (if there are any), and find that on the production domain it says
SMF could not find a compatible accelerator on your server
while test domain says
SMF have discovered that your server har XCache installed.
What the...? Both domains are at the same ISP host!!! How is this even possible?
just out of curiosity... did you, perhaps, use an "auto-installer" for the primary site?
Quote from: Kindred on December 08, 2014, 08:23:50 AM
just out of curiosity... did you, perhaps, use an "auto-installer" for the primary site?
Auto installer? No, don't think so... I uploaded all the files to the server and went to www.legione.se/install.php
Then it asked a bunch of questions like database name, database account, password, site name and so on... Is that the auto installer?
I did the exact same way I did when I set up the test site...
Quote from: johan7804 on December 08, 2014, 07:07:36 AM
I was told this is a common error with the Relax theme, but how come it did not happen on the test site? I performed both installations by the exact same manner...
Because the theme maintainer fixed this bug in the last few days? The second screenshot shows the menu being wider - which I know is something Runic changed ;)
QuoteWhat the...? Both domains are at the same ISP host!!! How is this even possible?
Just because the domains are at the same host does not mean they are on the same server; they are clearly on different physical servers with different configuration.
Well, the XCache accelerator was a dead end. Turned out the version of PHP on the server (5.6) did not need an accelerator...
Back to square one.
A friend took a look at the code and suggested a ? should be inserted into the original code in subs.php, but that only went from http://domain/action=forum to http://domain/index.php??action=forum... I'm at a loss here... Instead of NO ? there was now ?? instead :(
oh geez... you installed a mod to remove the index.php from your url... didn't you?
don't do that. EVER!!!!!!!
http://domain/index.php?action=forum is what it should be.
Why do people want to remove the "index.php"? Is that some supposed SEO crap?
Pretty much yes
How remarkably silly.
Quote from: Kindred on December 18, 2014, 09:19:25 AM
oh geez... you installed a mod to remove the index.php from your url... didn't you?
don't do that. EVER!!!!!!!
I most certainly did NOT install such an abomination... :O :'( :(
I don't mind having index.php? in the address bar. Why would ppl want to remove that? To make it pretty? Who cares, really? It's an URL...
Mods currently installed are
SimplePortal 2.3.6
Tapatalk SMF 2.0 Plugin 4.1.1
YouTube BBCode 2.6
Member Awards 3.0
Admin Notepad 2.0.2
Avatar Rounded Corners 1.0
Member Notepad 1.0.1
Order Custom Profile Fields
(Yes I know Youtube is outdated and should be replaced with Aeva, thank you very much ;) Working on that one)
Problem appeared when I installed Simple Portal... Tried, as described earlier, install a clean test forum with same mods and settings, problem does not appear there... :(
Quote from: johan7804 on December 18, 2014, 09:11:15 AM
A friend took a look at the code and suggested a ? should be inserted into the original code in subs.php, but that only went from http://domain/action=forum to http://domain/index.php??action=forum... I'm at a loss here... Instead of NO ? there was now ?? instead :(
i guess you made a typo leaving out index.php in the first example. oh well people make mistakes.
well, there has to be SOME difference between the test forum that works and your live forum that does not work...
htaccess?
Quote from: Illori on December 18, 2014, 10:27:58 AM
i guess you made a typo leaving out index.php in the first example. oh well people make mistakes.
Actually and sadly, no :( Check the nr #1 original post by me.
Quote from: Kindred on December 18, 2014, 10:48:23 AM
well, there has to be SOME difference between the test forum that works and your live forum that does not work...
htaccess?
Agreed, but I can't for my life find it!
Would htaccess remove text in links?
actually yes... if the index.php is getting removed in one set and not the other... then it could indeed be related to something in your htaccess
Quote from: Kindred on December 18, 2014, 12:01:39 PM
actually yes... if the index.php is getting removed in one set and not the other... then it could indeed be related to something in your htaccess
Well, that sounds hopeful :) But... I do not believe I have htaccess on this server... What should I be looking for? There are no .htaccess files in root anyways...
There're .htaccess files in most directories, if not all...
I found an answer to this why it was not working. Simple Portal cause the error partly for me. I found that the "Disable Portal Redirection" was checked. When it is checked the users should be redirected to the Board Index. But for me I was getting the same error as johan7804 hxxp://www. domain .com/?action=forum showing a 404 page.
I unchecked the box and saved setting and made sure all cache clear on my PC and in SMF and then tried logging in and out and did not get the error again. I do want the user to be directed the Frontpage instead of the Board main index. Not sure if one of the files it changes got messed up but it is working either way now no errors.