Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7058 closed defect (bug) (fixed)

incorrect links on edit.php post page

Reported by: robanna's profile robanna Owned by:
Milestone: 2.6.1 Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:

Description

As reported by shadowfoxza:
...when I'm on my Post Management page (/blog/wp-admin/edit.php) I can't go to the second page of my post list ... when I hover over the "next" button, the links appears as http:///?paged=2 instead of /blog/wp-admin/edit.php?paged=2 as it should.

if I hover over the [2] button I get http:///?paged=2 and for the [3] its http:///?paged=3 ... and so on ...

Original post http://wordpress.org/support/topic/177317?replies=12#post-769476

I also have the same problem so I've moved it over here thinking it's a bug.

WP 2.5.1
IIS
I use a custom Permalink Structure (but I've tried the default structure with the same result).

Attachments (1)

7058.diff (585 bytes) - added by ryan 16 years ago.
Use ORIG_PATH_INFO if PATH_INFO is not available

Download all attachments as: .zip

Change History (12)

#1 @ryan
16 years ago

Probably yet another case where IIS doesn't set REQUEST_URI properly.

Install and activate the Dump Environment plugin. Visit edit.php and view the page source. A bunch of debug stuff will be at the bottom of the page source. Cut-and-paste the SERVER section to this ticket or just attach the entire page source.

#2 @robanna
16 years ago

Ryan, Thanks for helping on this.
Here it is:

SERVER

Array
(

[ALLUSERSPROFILE] => C:
Documents and Settings
All Users.WINNT
[CI_HOLOS_CLI] => C:
Program Files
Best Software
Open Olap
[CommonProgramFiles] => C:
Program Files
Common Files
[COMPUTERNAME] => WEBBOY
[ComSpec] => C:
WINNT
system32
cmd.exe
[CONTENT_LENGTH] => 0
[GATEWAY_INTERFACE] => CGI/1.1
[HTTPS] => off
[HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
[HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
[HTTP_CONNECTION] => keep-alive
[HTTP_HOST] => www.apexprd.org
[HTTP_REFERER] => http://www.apexprd.org/wp-admin/edit.php
[HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
[HTTP_COOKIE] => kitchenSink=1; PHPSESSID=482b59a4449f5e0bbbe2750db6185237; wordpress_test_cookie=WP+Cookie+check; wordpress_41bfb427fd54bab0d99f0b3ae07be508=admin%7C1212212451%7C0e8cd04ed11014b7e5c552983d585eb6; utma=80497607.2534292934835619000.1212040051.1212040051.1212116518.2; utmc=80497607; utmz=80497607.1212040051.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
[HTTP_ACCEPT_ENCODING] => gzip,deflate
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_KEEP_ALIVE] => 300
[INSTANCE_ID] => 5
[LOCAL_ADDR] => 10.1.0.10
[NUMBER_OF_PROCESSORS] => 4
[Os2LibPath] => C:
WINNT
system32
os2
dll;
[OS] => Windows_NT
[Path] => C:
Inetpub
Perl
bin
;C:
WINNT
system32;C:
WINNT;C:
WINNT
System32
Wbem;m:
MicroFocus
Deploy;C:
Program Files
Microsoft SQL Server
BINN;C:
Program Files
Microsoft SQL Server
80
Tools
Binn
;M:
Fundware
MicroFocus
Deploy;C:
Program Files
MySQL
MySQL Server 5.0
bin
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
[PAYMENTECH_HOME] => M:
VSI
misc
Paymentech
[PAYMENTECH_LOGDIR] => M:
VSI
misc
Paymentech
logs
[PROCESSOR_ARCHITECTURE] => x86
[PROCESSOR_IDENTIFIER] => x86 Family 15 Model 4 Stepping 3, GenuineIntel
[PROCESSOR_LEVEL] => 15
[PROCESSOR_REVISION] => 0403
[ProgramFiles] => C:
Program Files
[QUERY_STRING] => paged=2
[REMOTE_ADDR] => 67.190.163.86
[REMOTE_HOST] => 67.190.163.86
[REQUEST_METHOD] => GET
[SCRIPT_NAME] => /wp-admin/edit.php
[SERVER_NAME] => www.apexprd.org
[SERVER_PORT] => 80
[SERVER_PORT_SECURE] => 0
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_SOFTWARE] => Microsoft-IIS/5.0
[SystemDrive] => C:
[SystemRoot] => C:
WINNT
[TEMP] => C:
WINNT
TEMP
[TMP] => C:
WINNT
TEMP
[USERPROFILE] => C:
Documents and Settings
Default User.WINNT
[windir] => C:
WINNT
[SCRIPT_FILENAME] => C:
Inetpub
wwwroot
blog
wp-admin
edit.php
[ORIG_PATH_INFO] => /wp-admin/edit.php
[ORIG_PATH_TRANSLATED] => C:
Inetpub
wwwroot
blog
wp-admin
edit.php
[PHP_SELF] => /wp-admin/edit.php
[REQUEST_TIME] => 1212154010
[argv] => Array

(

[0] => paged=2

)

[argc] => 1
[REQUEST_URI] => ?paged=2

)

#3 @robanna
16 years ago

I just upgraded to 2.6 and it looks to be fix in that release.

#4 @ryan
16 years ago

  • Milestone changed from 2.7 to 2.6
  • Resolution set to fixed
  • Status changed from new to closed

#5 @akthebeast
16 years ago

Our upgrade to 2.6 did not fix the issue--we're still seeing it on several WordPress blogs we're hosting. Here's the SERVER section of the dump from the one we upgraded to 2.6:

</pre><h2>SERVER</h2><pre>Array
(

[ALLUSERSPROFILE] => C:
Documents and Settings
All Users
[APP_POOL_ID] => movtype
[ClusterLog] => C:
WINDOWS
Cluster
cluster.log
[CommonProgramFiles] => C:
Program Files
Common Files
[COMPUTERNAME] => DIECI
[ComSpec] => C:
WINDOWS
system32
cmd.exe
[FP_NO_HOST_CHECK] => NO
[NUMBER_OF_PROCESSORS] => 4
[OS] => Windows_NT
[Path] => C:
Program Files
Support Tools
;C:
Perl
site
bin;C:
Perl
bin;D:
resourcekit
;C:
Perl
bin
;C:
WINDOWS
system32;C:
WINDOWS;C:
WINDOWS
System32
Wbem;C:
Program Files
Dell
OpenManage
Array Manager;D:
PHP;
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.VBS
[PHPRC] => D:
PHP
[PROCESSOR_ARCHITECTURE] => x86
[PROCESSOR_IDENTIFIER] => x86 Family 15 Model 4 Stepping 1, GenuineIntel
[PROCESSOR_LEVEL] => 15
[PROCESSOR_REVISION] => 0401
[ProgramFiles] => C:
Program Files
[SystemDrive] => C:
[SystemRoot] => C:
WINDOWS
[TEMP] => C:
WINDOWS
TEMP
[TMP] => C:
WINDOWS
TEMP
[USERPROFILE] => C:
Documents and Settings
Default User
[windir] => C:
WINDOWS
[HTTP_CONNECTION] => keep-alive
[HTTP_KEEP_ALIVE] => 300
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_ACCEPT_ENCODING] => gzip,deflate
[HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
[HTTP_COOKIE] => wordpress_140f5e80d3c0516ec973fbf286348d42=admin%7C1216835011%7C231545b59cc49003d0930084af238487; wordpress_test_cookie=WP+Cookie+check; wordpress_140f5e80d3c0516ec973fbf286348d42=admin%7C1216834929%7C11f3733b6f7497725b247ff5167b06dd; wordpress_logged_in_140f5e80d3c0516ec973fbf286348d42=admin%7C1216835011%7Cb9454b4891144ea4d39b14b868f9f404; utmz=191055342.1212501227.68.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); utma=191055342.1793188471.1179336630.1213812372.1214423012.74
[HTTP_HOST] => blogs.oet.udel.edu
[HTTP_IF_MODIFIED_SINCE] => Mon, 21 Jul 2008 17:52:22 GMT
[HTTP_REFERER] => http://blogs.oet.udel.edu/educ639sum07/wp-admin/plugins.php?activate=true
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
[AUTH_TYPE] =>
[AUTH_PASSWORD] =>
[AUTH_USER] =>
[CERT_COOKIE] =>
[CERT_FLAGS] =>
[CERT_ISSUER] =>
[CERT_SERIALNUMBER] =>
[CERT_SUBJECT] =>
[CONTENT_LENGTH] => 0
[CONTENT_TYPE] =>
[GATEWAY_INTERFACE] => CGI/1.1
[HTTPS] => off
[HTTPS_KEYSIZE] =>
[HTTPS_SECRETKEYSIZE] =>
[HTTPS_SERVER_ISSUER] =>
[HTTPS_SERVER_SUBJECT] =>
[INSTANCE_ID] => 2105993279
[LOCAL_ADDR] => 128.175.22.20
[LOGON_USER] =>
[PATH_TRANSLATED] => D:
webs
blogs
educ639sum07
wp-admin
edit.php
[QUERY_STRING] =>
[REMOTE_ADDR] => 128.175.22.250
[REMOTE_HOST] => 128.175.22.250
[REMOTE_USER] =>
[REQUEST_METHOD] => GET
[SCRIPT_NAME] => /educ639sum07/wp-admin/edit.php
[SERVER_NAME] => blogs.oet.udel.edu
[SERVER_PORT] => 80
[SERVER_PORT_SECURE] => 0
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_SOFTWARE] => Microsoft-IIS/6.0
[UNMAPPED_REMOTE_USER] =>
[ORIG_PATH_INFO] => /educ639sum07/wp-admin/edit.php
[PHP_SELF] => /educ639sum07/wp-admin/edit.php
[REQUEST_TIME] => 1216662942

)

Thanks for any help you can provide.

#6 @akthebeast
16 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

@ryan
16 years ago

Use ORIG_PATH_INFO if PATH_INFO is not available

#7 @ryan
16 years ago

Try that patch out.

#8 @ryan
16 years ago

  • Milestone changed from 2.6 to 2.6.1

#9 @glrss
16 years ago

For me the patch fixes the edit.php page, as well as navigation on comments pages. Thanks Ryan!

#10 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [8470]) Use ORIG_PATH_INFO if PATH_INFO is not available. fixes #7058 for trunk

#11 @ryan
16 years ago

(In [8471]) Use ORIG_PATH_INFO if PATH_INFO is not available. fixes #7058 for 2.6

Note: See TracTickets for help on using tickets.