No route found for "GET /" [SOLVED]

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

No route found for "GET /" [SOLVED]

Post by ingeva » Sat Jan 17, 2015 11:52 am

I see several reports with this error, but not for the root direcory, which, of course, always exists.
Thie message is on the opening page, and will confuse new users. Login is still possible, but between "information" and "main index" only the above subject line is shown.
Switching back to English language does not help.
I use PHP Version 5.5.9-1ubuntu4.5

Support Request Template
What version of phpBB are you using? phpBB 3.1.2
What is your board's URL? Local
Who do you host your board with? Own computer
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
What version of phpBB3 did you update from? phpBB 3.0.12 (Not in your list!)
What styles do you currently have installed? Prosilver
What language(s) is your board currently using? Norwegian
Which database type/version are you using? MySQL 5
What is your level of experience? Experienced with PHP and phpBB
When did your problem begin? After upgrading, following instructions to the point.
I'm running several 3.0.12 boards, and I'm the responsible admin for phpbb.no (ingeva)
phpbb.no is still running 3.0.12, and I need to fix all issues with 3.0.12 before proceeding.
Please describe your problem. Opening page shows:
No route found for "GET /"
Generated by SRT Generator
Last edited by ingeva on Mon Feb 02, 2015 10:33 am, edited 1 time in total.
inge
Admin for phpbb.no
The key to success: Linux Mint

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2228
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: No route found for "GET /"

Post by kinerity » Sat Jan 17, 2015 4:56 pm

ingeva wrote:When did your problem begin? After upgrading, following instructions to the point
Just so everyone can be on the same page - which instructions?
Kailey Truscott - Community Team

User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

Re: No route found for "GET /"

Post by ingeva » Sat Jan 17, 2015 6:00 pm

kinerity wrote:Just so everyone can be on the same page - which instructions?
Good question.
This post: viewtopic.php?f=486&t=2270681
by Lumpy Burgertushie » Wed Nov 26, 2014 6:30 pm
inge
Admin for phpbb.no
The key to success: Linux Mint

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2228
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: No route found for "GET /"

Post by kinerity » Sat Jan 17, 2015 6:17 pm

Those are the correct instructions. Have you tried uploading fresh copies of the files again just to be sure?
Kailey Truscott - Community Team

User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

Re: No route found for "GET /"

Post by ingeva » Sat Jan 17, 2015 6:23 pm

kinerity wrote:Those are the correct instructions. Have you tried uploading fresh copies of the files again just to be sure?
Yes I have. I have also tried replacing the database with a backup from another forum, and I get the same error. The backup update seems to be OK, and the forum itself is OK too, but this error message is unfortunate. I haven't tried it on the web yet; I always try out things locally first.
I'll check some more by inserting some debug statements in the offending function but any tips will be appreciated.

BTW, does anyone know where the previous version is stored? It is evidently NOT from the database.
The beforementioned procedure says that two directories should be kept from the old version (3.0.12) before the update, but they are identical to the ones in the new version (3.1.2) - or have I overlooked something? :)
inge
Admin for phpbb.no
The key to success: Linux Mint

User avatar
david63
Registered User
Posts: 16060
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: No route found for "GET /"

Post by david63 » Sat Jan 17, 2015 6:45 pm

ingeva wrote:does anyone know where the previous version is stored?
The previous version is not stored anywhere - when you do the upgrade it overwrites the old version. It is your responsibility to ensure that you have a backup of both the files and database.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

Re: No route found for "GET /"

Post by ingeva » Sat Jan 17, 2015 6:58 pm

david63 wrote:
ingeva wrote:does anyone know where the previous version is stored?
The previous version is not stored anywhere - when you do the upgrade it overwrites the old version. It is your responsibility to ensure that you have a backup of both the files and database.
The version number can be found in several files, I just don't know which one is used. It is reported on one of the very first lines of the output from the upgrade routine.
After one database upgrade, if I try to run the routine again with another database, the version number is incorrect.

In the file ./vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php

I inserted a debug printout in the function below before the error.

public function onKernelRequest(GetResponseEvent $event)
{
$request = $event->getRequest();
/* Print this information */
print_r($request);
exit;
/* !!!!!!!!!!!!!!!!!!!!!! */

The result printout, slightly compressed, can be seen here:

http://egni.no/phpbb_debug.txt

Can you see any clues here?
inge
Admin for phpbb.no
The key to success: Linux Mint

User avatar
david63
Registered User
Posts: 16060
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: No route found for "GET /"

Post by david63 » Sat Jan 17, 2015 9:02 pm

That version number is stored in the config table of the database
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
T0ny
Registered User
Posts: 1383
Joined: Sun Jan 29, 2006 8:42 pm
Location: Lancashire
Name: Tony

Re: No route found for "GET /"

Post by T0ny » Sat Jan 17, 2015 9:51 pm

phpbb_debug.txt wrote: [REDIRECT_STATUS] => 403
[REDIRECT_URL] => /.err403.php
It looks like your server is redirecting the request due to an HTTP 403 "Access Forbidden" error

User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

Re: No route found for "GET /"

Post by ingeva » Sat Jan 17, 2015 10:43 pm

david63 wrote:That version number is stored in the config table of the database
Yes, I found it. I just wonder why it isn't used by the upgrade procedure.
inge
Admin for phpbb.no
The key to success: Linux Mint

User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

Re: No route found for "GET /"

Post by ingeva » Sat Jan 17, 2015 10:47 pm

T0ny wrote:
phpbb_debug.txt wrote: [REDIRECT_STATUS] => 403
[REDIRECT_URL] => /.err403.php
It looks like your server is redirecting the request due to an HTTP 403 "Access Forbidden" error
I wonder why on earth it would do that. After all, it looks for the root directory where there are no restrictions. Maybe I should try using the old .htaccess file ...
inge
Admin for phpbb.no
The key to success: Linux Mint

User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

Re: No route found for "GET /"

Post by ingeva » Sat Jan 17, 2015 11:04 pm

ingeva wrote:I wonder why on earth it would do that. After all, it looks for the root directory where there are no restrictions. Maybe I should try using the old .htaccess file ...
Well, it seems like that did the trick. The .htaccess file that came with version 3.1.2 could not be used. Replacing it with my old .htaccess file and adding my special error processing file .err403.php etc. made the error disappear. The the 3.1.2 file does not contain any reference to .err403.php, which is my own special file (Gives a more elaborate error message and logs the error).

I don't understand why the root directory could be inaccessible. If I logged in everything worked fine. The error was only on the opening page.
inge
Admin for phpbb.no
The key to success: Linux Mint

User avatar
ingeva
Registered User
Posts: 166
Joined: Tue Feb 07, 2012 8:03 am
Location: Sandvika, Norway

Re: No route found for "GET /"

Post by ingeva » Mon Feb 02, 2015 10:33 am

ingeva wrote:
ingeva wrote:Maybe I should try using the old .htaccess file ...
Well, it seems like that did the trick. The .htaccess file that came with version 3.1.2 could not be used. Replacing it with my old .htaccess file and adding my special error processing file .err403.php etc. made the error disappear.
I found the culprit. This was caused by a protection scheme that I have been using on higher directory levels.
The solution:

I added
'DirectoryIndex index.php' (No quotes)

before the rest of the .htaccess file.

Oh, and one more thing:
Before updating the database from 3.0.x the default forum language MUST be set to English, otherwise the update will fail. This detail could be easy to miss.
inge
Admin for phpbb.no
The key to success: Linux Mint

LordGlissando
Registered User
Posts: 17
Joined: Mon Feb 09, 2015 6:49 am

Re: No route found for "GET /" [SOLVED]

Post by LordGlissando » Tue Feb 10, 2015 8:41 pm

please state where you added; 'DirectoryIndex index.php' (No quotes) I'm getting No route found for "GET / on my route page, it is not affecting functionality but is confusing to users,thanks

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: No route found for "GET /" [SOLVED]

Post by Oyabun1 » Tue Feb 10, 2015 10:25 pm

LordGlissando wrote:please state where you added; 'DirectoryIndex index.php' (No quotes)
ingeva wrote:I added
'DirectoryIndex index.php' (No quotes)

before the rest of the .htaccess file.
I assume that means the line was added to the start of the .htaccess file in the root of the board installation.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

Locked

Return to “[3.1.x] Support Forum”