[wp-trac] [WordPress Trac] #41788: PHP Fatal error: Call to a member function has_cap() on a non-object in wp-includes/comment.php

WordPress Trac noreply at wordpress.org
Mon Sep 4 11:54:20 UTC 2017


#41788: PHP Fatal error: Call to a member function has_cap() on a non-object in wp-
includes/comment.php
-------------------------------+------------------------------
 Reporter:  kirbyde            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Comments           |     Version:  4.8.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => reporter-feedback


Comment:

 Thanks for your report, @kirbyde, and welcome to WordPress Trac.

 This is from the `wp_allow_comment()` function. Can you let us know under
 what condition this situation can occur? Do you have a plugin or theme on
 your site which customises the way comments are submitted?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41788#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list