[wp-hackers] wp-comments-post.php & file upload problem

Viper007Bond viper at viper007bond.com
Tue Feb 26 11:57:49 GMT 2008


Sounds like an old, poorly coded them.

Make sure to check the /default/ theme for the latest standards and
practices.

On 2/26/08, Mark Cunningham <mark.cunningham at gmail.com> wrote:
>
> On 25/02/2008, Beth Cleaver <cleavere at bellsouth.net> wrote:
> >  My problem*:  I can't comment on mccainblogs.com; I get the dreaded
> >  blank screen stuck on wp-comments-post.php, no redirect to the original
> >  post, and no comment gets posted.  I've seen this issue in the WP
> forums
> >  and elsewhere around the internets, but I can't find a solution that
> >  applies even closely enough to help me figure it out.
>
>
> I don't know if this is the same thing I found on my blog (wp-2.3.3)
> but I found, occasionally, people would try to submit a comment and
> would get a blank screen. Tracked it down to the comment form in my
> theme. In my "comments.php", I had, right down the bottom of the form
> this line:
>
> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
>
> For some reason "$id" would be empty sometimes, particularly for
> non-logged in users. I replaced it with this:
>
> <input type="hidden" name="comment_post_ID" value="<?php echo $post->ID;
> ?>" />
>
> And the problem seemed to go away.
>
>
> --
> http://thedeadone.net
> http://irishgamingwiki.com
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


More information about the wp-hackers mailing list