Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
3 registered members (isaac, Morgan, JAISP), 71 guests, and 217 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 781
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 22
Ruben 10
Gizmo 8
Geoff 3
Morgan 3
FREAK 2
Slaz 2
DennyP 1
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
G
Geoff  Offline OP
Journeyman
Joined: Aug 2006
Posts: 92
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

I am a Superstar! Testing signature here
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
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,205
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 Released
Re: Enable Spider Friendly Urls Issues [Re: isaac] #260929
01/15/18 04:48 PM
01/15/18 04:48 PM
G
Geoff  Offline OP
Journeyman
Joined: Aug 2006
Posts: 92
Florida
Awesome. Thank you!

PHP 5.6


I am a Superstar! Testing signature here

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
UBB.threads 7.6.2 - Released
by isaac. 09/17/18 08:08 AM
7.6.2 Changelog Discussion
by isaac. 09/17/18 06:35 AM
Upgrade Documentation
by DennyP. 09/15/18 03:55 PM
PHP 7.2
by Geoff. 09/12/18 10:22 PM
Email Cleanup-Is it possible?
by Ruben. 09/06/18 11:25 AM
Forum Statistics
Forums36
Topics35,139
Posts191,443
Members12,106
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2