Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
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
Attachments
0E1E6A11-0016-4CC9-B1CE-3E4ECE6982E3.png

Last edited by Geoff; 01/15/2018 2:53 PM. Reason: htaccess custom code

I am a Superstar! Testing signature here
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
Awesome. Thank you!

PHP 5.6


I am a Superstar! Testing signature here
Joined: Mar 2008
Posts: 326
D
Enthusiast
Enthusiast
D Offline
Joined: Mar 2008
Posts: 326
I'm sorry that I'm not sorry for resurrecting an old thread. ;-) My post intends to address a few things in this one, so I felt it was pertinent.

I recently started tinkering with nginx on my home computer; had been using Apache for eons. I cannot, for the life of me, get these "friendly" URLs working correctly. I have 'kinda' gotten them working by using:

Code
location / {
            try_files $uri $uri/ /index.php?$args; 
}

But this just returns the same portal page, even if I click on the User List link. Without the above snippet, I get the nginx "No input file specified" when trying to use spider links. I'm running PHP 7.3.0 and nginx 1.15.9. I have tried setting cgi.fix_pathinfo to equal 0, to equal 1, and to just commenting it out, all to no avail. (Yes, I restart everything after making the changes.) I've come across multiple examples of people using 'rewrite' to make the links work on their particular website for whatever scripts they're using, but 'rewrite' looks like Greek to me. Here is the gist of the location section of my nginx.conf file:

Code
        location ~ \.php$ {
            include        fastcgi_params;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }

#This displays the website, but only the portal page, regardless of which link I click.
location / {
            try_files $uri $uri/ /index.php?$args; 
}

Thank you in advance!

P.S. -- I tried replacing the 'index.php' in the 'try_files' section with 'ubbthreads,php' and that still did not work.

Last edited by DLWebmaestro; 03/01/2019 9:38 PM.
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Using a home computer has it's own issues.
I have used xampp and wamp but never nginx.
But here is what it does for me.
You can't use a alias domain name if accessed outside of the pc local lan..
Thats what spider frendly urls attempts to do.(create a url from outside of your lan)
So it goes outside of your network and looks for it.
Even if you use a virtual path.once you click on the first link it is broken.
Unless you have registered a name with dns pointers to your pc.
Your site will use your public ip ,whatever that is unless you have a registered name with that ip.
And a home computer usually has a dynamic ip.
Also:
Note: The PATH_INFO environmental variable must be available for this feature to function properly.

So say you have a pc at local lan 192.168.0.20 you need to find your public ip like at "find my ip".
It will be unlike the ip range of your router
Use that as a port forward. in the cable modem.
Then you need to change the paths in ubb to match that IP..
as well as the alias url
So it will endup as http://##.##.##.###/forums/?????/html

I hope that was clear as mud.

Maybe somebody can explain it better than I can.

Last edited by Ruben; 03/03/2019 4:59 PM. Reason: Added Comment.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jul 2006
Posts: 116
Likes: 4
P
Member
Member
P Offline
Joined: Jul 2006
Posts: 116
Likes: 4
Originally Posted by DLWebmaestro
I'm sorry that I'm not sorry for resurrecting an old thread. ;-) My post intends to address a few things in this one, so I felt it was pertinent.

I recently started tinkering with nginx on my home computer; had been using Apache for eons. I cannot, for the life of me, get these "friendly" URLs working correctly.
I think this is what you are looking for:
https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/

Joined: Mar 2008
Posts: 326
D
Enthusiast
Enthusiast
D Offline
Joined: Mar 2008
Posts: 326
I have a domain pointing to my local machine, so that's not the issue. And my config files look just like those examples.
This is getting to be not worth the hassle. Is anyone running nginx able to use spider friendly, or do I just throw in the towel and try another board software?

Last edited by DLWebmaestro; 03/19/2019 5:31 PM.
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
As the developers of UBB.threads, we assume that you have a working web server, capable of hosting PHP scripts with the path_info variable readily available to the system; the configuration of your web server to get to that point is outside of the scope of support for these user to user forums. Any support provided by the userbase is at their discretion and is not provided by the vendor.

I can say that the Smarty templating engine is quite fickle when it comes to permissions; I'd use the permission checker in the CP to check your files, and manually ensure your sessions/ and templates/compile/ folders are chmodded 777 (full read/write).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Forum Privacy Policy
by ECNet - 02/26/2024 11:58 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 322 guests, and 160 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)