Haloperidol / ljxp

Automatically exported from code.google.com/p/ljxp
0 stars 0 forks source link

wp-lj-comments.php gives 404 status code, breaking the comment count images #177

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure LJXP's footer to use the [comments_count] substitution string.
2. Make a crossposted post.
3. Load the crossposted post from LiveJournal.

On LJ, you should see a little image giving the comment count. Instead, you see 
a broken image icon. This happens because Wordpress is returning a 404 HTTP 
status code, although it is also returning the image data, in Chrome at least, 
the browser interprets this as broken.

This is with Wordpress 4.1.1 and LJXP 2.3.3.

The fix for this is to replace 
require_once('../../../wp-blog-header.php');
with
require_once('../../../wp-load.php');
in the source for wp-lj-comments.php. Apparently, wp-blog-header is for 
Wordpress internal files.

Original issue reported on code.google.com by paul.wri...@googlemail.com on 20 Apr 2015 at 9:19

GoogleCodeExporter commented 8 years ago
See 
http://stackoverflow.com/questions/17043946/including-custom-php-page-to-wordpre
ss-without-being-404-error for someone with the same problem.

Original comment by paul.wri...@googlemail.com on 20 Apr 2015 at 9:20