johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.58k stars 207 forks source link

AJAX errors in console regarding null post #843

Closed Utsav-Ladani closed 8 months ago

Utsav-Ladani commented 8 months ago

Description

Why?

Solution

johnbillion commented 8 months ago

Thanks for the report. If is_singular() is true but get_post() returns null then something is going wrong on your site. Do you know what the ajax request is doing where that error was triggered?

Utsav-Ladani commented 8 months ago

Thanks @johnbillion for quick response. It was due to another plugin (BuddyPress).