Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 47 guests, and 258 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Outdoorking
Outdoorking
Sydney, Australia
Posts: 320
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 18
Gizmo 12
Ruben 10
Morgan 4
BB 2
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
Print Thread
Enable Spider Friendly Urls Issues #260920
01/15/18 12:32 PM
01/15/18 12:32 PM
Joined: Aug 2006
Posts: 89
Florida
G
Geoff Offline OP
journeyman
Geoff  Offline OP
journeyman
G
Joined: Aug 2006
Posts: 89
Florida
When I enable, we get an error message, “Sorry, you are not logged in or do not have permissions to do that.”

Logged in and seemed to work but then took me back to login screen with same error message.

Completely locked out as keeps giving same error message every time. Tried different steps and still same error message. Could not log back in on phone. I had the settings pulled up on computer and was able to change back without spider friendly urls. Saved for some reason as thought would say not logged in.

From php.ini:

Quote
; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://php.net/cgi.fix-pathinfo
cgi.fix_pathinfo=1


This was same issue I have had in past and why never enabled this feature. Any ideas?

NOTE: I have had these issues before adding the following custom code to our htaccess file.

Quote
# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# RewriteRule for Custom 3rd Party Apps outside of WP
RewriteRule ^forums/ - [L]



Also should note the attached image indicates the Keep me Logged In button does not show when error msg thrown. This applies also when spider friendly url turned off error message too

Attached Files 0E1E6A11-0016-4CC9-B1CE-3E4ECE6982E3.png
Last edited by Geoff; 01/15/18 02:53 PM. Reason: htaccess custom code
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Enable Spider Friendly Urls Issues [Re: Geoff] #260921
01/15/18 03:00 PM
01/15/18 03:00 PM
Joined: Apr 2004
Posts: 1,171
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,171
California
As per the documentation you quoted, and the url you've included in your quote:

correct your php.ini from:
cgi.fix_pathinfo=1

to:
cgi.fix_pathinfo=0

or just comment it out all together, as:
;cgi.fix_pathinfo=1


If you have a recent version of PHP-FPM (~5.3.9+?), then you need to do nothing, as the safe behaviour below is already the default.

Further reading at:
https://serverfault.com/questions/6...info-really-dangerous-with-nginx-php-fpm
and
https://en.wikipedia.org/wiki/Common_Gateway_Interface


isaac @ id242.com // forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Changelog
Re: Enable Spider Friendly Urls Issues [Re: isaac] #260929
01/15/18 04:48 PM
01/15/18 04:48 PM
Joined: Aug 2006
Posts: 89
Florida
G
Geoff Offline OP
journeyman
Geoff  Offline OP
journeyman
G
Joined: Aug 2006
Posts: 89
Florida
Awesome. Thank you!

PHP 5.6


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Control Panel / Transactions Username
by Morgan. 06/20/18 05:38 AM
Custom Insert won't save
by Baldeagle. 06/18/18 07:44 PM
New Image capabilities ver 7.6.1
by Abbott. 06/14/18 02:28 PM
Thread deleted?
by Lisanne. 06/05/18 11:13 AM
random 500 server errors on post
by Bad Frog. 05/31/18 09:34 AM
Forum Statistics
Forums36
Topics35,122
Posts191,325
Members12,085
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180524)