Some links not working after upgrade from 3.1.6 to 3.2.2

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Charles L. Cotton
Registered User
Posts: 76
Joined: Sat Aug 13, 2005 4:15 pm
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Charles L. Cotton » Tue Jun 05, 2018 6:06 pm

Lumpy Burgertushie wrote:
Tue Jun 05, 2018 2:14 pm
what it boils down to is that if you did not change anything and the board changes that leaves your host having changed something.

you should contact them to see what they may have done to cause this .

robert
The problem began immediately with the upgrade from 3.1.6 to 3.2.2. The only change I made was after the update. I changed the config file in response to Mick's suggestion to change "mysql to mysqli" to resolve a database update problem. The site is on a dedicated server and I've been told there have been no changes in recent months.

Chas.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19312
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Mick » Wed Jun 06, 2018 7:31 am

Note that Force server URL settings and Cookie secure are two different things. Generally Force server URL settings is set to no.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

Charles L. Cotton
Registered User
Posts: 76
Joined: Sat Aug 13, 2005 4:15 pm
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Charles L. Cotton » Wed Jun 06, 2018 3:17 pm

Mick wrote:
Wed Jun 06, 2018 7:31 am
Note that Force server URL settings and Cookie secure are two different things. Generally Force server URL settings is set to no.
You're right; I typed the wrong setting in my post. I should have typed "Cookie Secure." When that is enabled, most people cannot log in if they are using Firefox, Chrome and possibly other browsers.

Nothing I have tried has worked and I confirmed that nothing on my server was changed after I updated from 3.1.6 to 3.2.2. Is it possible for me to simply delete the extraneous code that is being injected? If so, where can I find it?

Thanks,
Chas.

User avatar
GanstaZ
Registered User
Posts: 325
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by GanstaZ » Wed Jun 06, 2018 5:19 pm

What happens if you disable urlrewrite?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19312
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Mick » Thu Jun 07, 2018 9:23 am

Charles L. Cotton wrote:
Wed Jun 06, 2018 3:17 pm
"Cookie Secure." When that is enabled, most people cannot log in if they are using Firefox, Chrome and possibly other browsers.
Thats probably because you’re allowing your users to go in via http, they should only be using https if ssl is being used. You need to put a redirect in your .htaccess file to make sure all http requests go via https then turn cookie secure on. There is a ton of information about this both here and on the web.

This is what I use in my .htaccess file on my test board to rewrite http to https which was a fresh installation on an SSL server:

Code: Select all

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I can't vouch for the code but it works fine, it came from my host. DON’T duplicate RewriteEngine on when you edit .htaccess.

If you’re not sure about this speak to your host.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

Charles L. Cotton
Registered User
Posts: 76
Joined: Sat Aug 13, 2005 4:15 pm
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Charles L. Cotton » Thu Jun 07, 2018 1:44 pm

GanstaZ wrote:
Wed Jun 06, 2018 5:19 pm
What happens if you disable urlrewrite?
Nothing changes.

Chas.

Charles L. Cotton
Registered User
Posts: 76
Joined: Sat Aug 13, 2005 4:15 pm
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Charles L. Cotton » Tue Jun 12, 2018 1:40 pm

Mick wrote:
Thu Jun 07, 2018 9:23 am
Charles L. Cotton wrote:
Wed Jun 06, 2018 3:17 pm
"Cookie Secure." When that is enabled, most people cannot log in if they are using Firefox, Chrome and possibly other browsers.
Thats probably because you’re allowing your users to go in via http, they should only be using https if ssl is being used. You need to put a redirect in your .htaccess file to make sure all http requests go via https then turn cookie secure on. There is a ton of information about this both here and on the web.

This is what I use in my .htaccess file on my test board to rewrite http to https which was a fresh installation on an SSL server:

Code: Select all

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I can't vouch for the code but it works fine, it came from my host. DON’T duplicate RewriteEngine on when you edit .htaccess.

If you’re not sure about this speak to your host.
Thanks Mick, that seems to have taken care of the login issue when Cookie Secure is enabled.

Regards,
Chas.

Charles L. Cotton
Registered User
Posts: 76
Joined: Sat Aug 13, 2005 4:15 pm
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Charles L. Cotton » Tue Jun 12, 2018 5:00 pm

Here is some additional information that is puzzling.

The link problem (ex. pages: Copyright notice, Mission, Forum Rules) is somewhat intermittent. Very infrequently clicking one of the pages will return the proper page. This is less than 5% of the time. The extraneous code being inserted is "app.phpindex.php," or something similar, even with this code in the .htaccess file:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

If I strip the extraneous code from the URL, the correct page is returned. I can then click on any of the pages and it returns the correct page. As soon as I click the logo and go back to the home page, the link is again broken and the extraneous code is inserted.

I did the same test using the report post feature. I stripped out "/app.phpviewtopic.php" and the post report form is displayed. I can then click any of the pages and the proper page is displayed. As soon as I go back to the home page, or select a post from the "New Posts" link, the pages and report post link are again broken.

Chas.

Charles L. Cotton
Registered User
Posts: 76
Joined: Sat Aug 13, 2005 4:15 pm
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Charles L. Cotton » Tue Jun 12, 2018 8:28 pm

I found that someone else had the identical problem (plus a migration problem). Here is the link: viewtopic.php?f=556&t=2464836&start=15

I'm checking with my host to see if the package that resolved his problem (pg. 2 of the thread) will work for me.

Chas.

Charles L. Cotton
Registered User
Posts: 76
Joined: Sat Aug 13, 2005 4:15 pm
Contact:

Re: Some links not working after upgrade from 3.1.6 to 3.2.2

Post by Charles L. Cotton » Wed Jun 13, 2018 6:49 pm

Charles L. Cotton wrote:
Tue Jun 12, 2018 8:28 pm
I found that someone else had the identical problem (plus a migration problem). Here is the link: viewtopic.php?f=556&t=2464836&start=15

I'm checking with my host to see if the package that resolved his problem (pg. 2 of the thread) will work for me.

Chas.
UPDATE:

My problem was solved by adding the package referenced on Page 2 of the above-listed link. I hope this helps someone else if they run into the same problem.

Chas.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: abrogard, Froddelaar, liamvf, Paul and 24 guests