#15237 closed defect (bug) (invalid)
Settings -> Permalinks blank on PHP 5.3.2
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Permalinks | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
I've setup a brand new wordpress with a fresh db for testing this.
To replicate this, install WordPress in an environment with PHP 5.3.2:
# run through the standard installation
# login
# click Settings -> Permalinks
# Observe the bleak, white, cold content area looking back at you
Works fine in this scenario when I revert to PHP Version 4.4.9.
I tried enabling debug mode, then in php.ini setting display_errors = On and ERROR_REPORTING = E_ALL but still couldn't view any output on the page in question.
I'm attaching the phpinfo for the broken setup to this bug.
Attachments (2)
Change History (21)
#3
@
15 years ago
Wow, fast response! If you want any more info about my system let me know. I did a quick search on 'permalinks' in Trac but didn't spot an existing ticket on this issue.
#4
@
15 years ago
I would love to narrow this down -- it looks like it's the ob_get_clean(), or something? I'll have to ask some PHP friends.
Also, more information at #15038. We can probably consolidate these but this is tough to diagnose so I'm unsure.
I'm running 5.3.1, but I'll try to get a test environment going that can reproduce.
#5
follow-up:
↓ 7
@
15 years ago
For me Settings > Permalinks is fine on my local 5.3.2 install (both WP trunk and 3.0.1)
#7
in reply to:
↑ 5
;
follow-up:
↓ 8
@
14 years ago
Replying to duck_:
For me Settings > Permalinks is fine on my local 5.3.2 install (both WP trunk and 3.0.1)
Probably should've hit 'reply' instead of making a new post.
duck_: Any chance you could post your phpinfo as an attachment?
Thanks
#9
in reply to:
↑ 8
@
14 years ago
Replying to duck_:
Sorry was my fault, saw your original request but completely forgot. Uploading now.
Thanks! The main differences I can see are that your version uses Suhosin and the ubuntu packaged version of PHP. Maybe one of those vendors has patched something which doesn't cause this problem to occur?
It's possible I'm off the track though - there are a number of other differences too, I've got curl, we have different settings for url_fopen. I guess we need to try ruling some of these out?
#10
follow-up:
↓ 12
@
14 years ago
Still haven't a clue on this. Not in #15038 either. Might need to see an affected server and actually dig in.
#13
in reply to:
↑ 12
@
14 years ago
Replying to EdwardIII:
Replying to nacin:
Still haven't a clue on this. Not in #15038 either. Might need to see an affected server and actually dig in.
I can't give you root but how about a user account where the problem is happening?
That'd be great -- can you email me at my username at wordpress.org? MarkJaquith and I are going to take a look.
#15
@
14 years ago
Not sure if this is will help, but I had this issue with php 5.3.2 on CentOS 5.5 and Apache 2.2. In the end I recompiled php disabling the pdo drivers for mysql. Once that was done, everything worked fine.
I do not know why this happened, but this was the change that worked for me. YMMV.
#16
follow-up:
↓ 17
@
14 years ago
- Keywords changed from permalinks, blank to permalinks blank
If you're running PHP as CGI you won't have access to the apache PHP API so apache_get_modules() will fail. On top of this, if you're using Apache 2.2+ mod_rewrite is statically compiled so it won't show up in phpinfo(8) either.
I had this issue and after recompiling PHP and removing the 'Compiled as CGI option' I was able to view the permalinks page again.
#17
in reply to:
↑ 16
@
14 years ago
Replying to ollieread:
If you're running PHP as CGI you won't have access to the apache PHP API so apache_get_modules() will fail.
This seems to be a fairly common configuration (e.g. cPanel defaults). Should there be a WordPress configuration option to force-enable permalinks in cases where apache_get_modules seems to be returning erroneous results?
Forgot to add, this is for the latest release of WordPress Version 3.0.1 installed from http://wordpress.org/latest.tar.gz