Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23216, comment 69


Ignore:
Timestamp:
05/20/2013 06:38:49 AM (12 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23216, comment 69

    initial v1  
    11I have the debug log enabled and have been using trunk while testing a plugin of mine in development. It creates posts during an ajax action, and I've found that my debug log is filling up with the following errors:
    2 
     2{{{
    33[20-May-2013 01:41:07 UTC] PHP Notice:  Trying to get property of non-object in /wp-includes/capabilities.php on line 1070
    44[20-May-2013 01:41:07 UTC] PHP Notice:  Trying to get property of non-object in /wp-includes/capabilities.php on line 1074
     
    88[20-May-2013 01:41:07 UTC] PHP Notice:  Trying to get property of non-object in /wp-includes/capabilities.php on line 1080
    99[20-May-2013 01:41:07 UTC] PHP Notice:  Trying to get property of non-object in /wp-includes/capabilities.php on line 1080
    10 
     10}}}
    1111I put some debug things (debug_backtrace() written to the log) in place to see what was happening and traced it back to the new heartbeat ajax action. For some reason the actual post ID is never getting sent.
    1212