PHP_SELF not showing full path on server
-
Hello.
I am doing a migration from a “cloud server” to another. After that I begun having trouble accessing the default post type (Post): an “Invalid post type” message was shown.
Besides that, some plugin configuration pages returned the “You have no permissions” message, even though I am admin.
I have done it all to try to fix it, turning of plugins, themes, checking the database for inconsistencies, etc. Finally I discovered that the server was not returning the full path for the
$_SERVER['PHP_SELF']
server variable.So it seems there are some permission checking using PHP_SELF and some regex that fail since there is no full path with a wp-admin on it, for instance
wp-includes/vars.php:26
. I believe this “faulty” PHP_SELF is the problem.I have never seen this behaviour neither could I find anything about it. The PHP manual says these server vars depend on the server, but I could not find anyone havind the same problem.
I am in contact with the hosting company to see if it gets fixed, but I wonder if is there anything I can do.
Or maybe I am completely mistaken and this PHP_SELF inconsistency has nothing to do with the permission and post type issues.
Any lights?
- The topic ‘PHP_SELF not showing full path on server’ is closed to new replies.