WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16099 closed defect (bug) (worksforme)

Not possible to add comment to attachment in Twenty Ten

Reported by: pavelevap Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Themes Keywords: reporter-feedback
Focuses: Cc:

Description

Using latest trunk, no plugin.

I inserted image into post with link to attachment page. Then tried to insert comment to this attachment, but I was only redirected to blank page (http://localhost/Wordpress/wp-comments-post.php) and comment was not created. Adding comments to posts etc works well.

Change History (6)

comment:1 SergeyBiryukov3 years ago

Can't reproduce on my install. Are there any notices with WP_DEBUG enabled?

comment:2 SergeyBiryukov3 years ago

  • Keywords reporter-feedback added

comment:3 pavelevap3 years ago

Strange, I am using latest trunk for WP and Twenty Ten, all plugins deactivated (no .htaccess - basic permalink structure).
When I am logged in then blank page appears (WP_DEBUG shows no error).
When I am logged out then "Not found" appears.

Clicking on http://localhost/Wordpress/?attachment_id=11682 when logged out:

Chrome:

Access log:

127.0.0.1 - - [05/Jan/2011:11:02:09 +0100] "GET /Wordpress/?attachment_id=11682 HTTP/1.1" 404 6037

127.0.0.1 - - [05/Jan/2011:11:02:10 +0100] "GET /favicon.ico HTTP/1.1" 404 1161

Error log:

[Wed Jan 05 11:02:10 2011] [error] [client 127.0.0.1] File does not exist: C:/WWW/favicon.ico

IE8:

Access log:

127.0.0.1 - - [05/Jan/2011:11:07:27 +0100] "POST /Wordpress/wp-cron.php?doing_wp_cron HTTP/1.0" 200 -

127.0.0.1 - - [05/Jan/2011:11:07:26 +0100] "GET /Wordpress/?attachment_id=11682 HTTP/1.1" 404 6037

And the same when logged in as admin (IE8):

Acces log:

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-content/themes/twentyten/style.css HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-includes/css/admin-bar.dev.css?ver=20101219 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-includes/js/l10n.dev.js?ver=20101110 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-includes/js/comment-reply.dev.js?ver=20090102 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-content/uploads/2010/06/cropped-Test_23.jpg HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/?attachment_id=11682 HTTP/1.1" 200 13983

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-includes/js/admin-bar.dev.js?ver=20101210 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-content/uploads/2010/12/Cibule_AUGUSTA1.jpg HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-content/uploads/2010/06/Test_22.jpg HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-content/themes/twentyten/images/wordpress.png HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:16:08 +0100] "GET /Wordpress/wp-includes/images/admin-bar-sprite.png?d=11122010 HTTP/1.1" 304 -

And after trying to insert comment to attachment (IE8):

Access log:

127.0.0.1 - - [05/Jan/2011:11:18:21 +0100] "POST /Wordpress/wp-comments-post.php HTTP/1.1" 200 -

And when trying to insert comment to post with this attachment (IE8):

127.0.0.1 - - [05/Jan/2011:11:23:42 +0100] "POST /Wordpress/wp-comments-post.php HTTP/1.1" 302 -

127.0.0.1 - - [05/Jan/2011:11:23:43 +0100] "GET /Wordpress/wp-content/themes/twentyten/style.css HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:43 +0100] "GET /Wordpress/wp-includes/css/admin-bar.dev.css?ver=20101219 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:43 +0100] "GET /Wordpress/wp-includes/js/l10n.dev.js?ver=20101110 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:43 +0100] "GET /Wordpress/wp-includes/js/comment-reply.dev.js?ver=20090102 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:43 +0100] "GET /Wordpress/wp-content/uploads/2010/06/cropped-Test_23.jpg HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:44 +0100] "GET /Wordpress/wp-content/uploads/2010/12/Cibule_AUGUSTA1-160x300.jpg HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:44 +0100] "GET /Wordpress/wp-content/uploads/2010/06/Test_22.jpg HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:44 +0100] "GET /Wordpress/wp-content/themes/twentyten/images/wordpress.png HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:43 +0100] "GET /Wordpress/?p=9028&cpage=1 HTTP/1.1" 200 19930

127.0.0.1 - - [05/Jan/2011:11:23:44 +0100] "GET /Wordpress/wp-includes/js/admin-bar.dev.js?ver=20101210 HTTP/1.1" 304 -

127.0.0.1 - - [05/Jan/2011:11:23:44 +0100] "GET /Wordpress/wp-includes/images/admin-bar-sprite.png?d=11122010 HTTP/1.1" 304 -

I am not sure what could be wrong? Main difference is probably in Apache code for wp-comments-post.php (200 when adding comment to attachment and 302 to post).

Using xampp, PHP 5.2.6, Apache/2.2.9. But it is my first problem with WordPress on this configuration (using more than one year without change). Thank you for your help...

comment:4 nacin3 years ago

The lowercase P in your directory is making me cringe. I would try to fix that. :-)

The access logs won't help much -- we need to know the PHP error log. Add define('WP_DEBUG', true); to wp-config.php. This should reveal the errors that are causing the blank page.

comment:5 pavelevap3 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Strange, after update to latest trunk this problem disappeared...

Sorry for bothering you, closing ticket...

comment:6 PeteMall3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.