PHP notice on media screen

  • 27/05/2013

After disabling everything, plugins, themes, re-installing WordPress, there was still an PHP notice being dump in the Media Library screen /wp-admin/upload.php

Trying to get property of non-object on /wordpress/wp-includes/capabilities.php
map_meta_cap() /wordpress/wp-includes/capabilities.php:926

Well, it’s a documented bug and even has a cute GIF:

The ticket refers to Comments of a non-existant Custom Post Type. If the CPT is deactivated, Comments attached to it will dump the notice. I experienced the same with attachments. Activating the CPT back “solves” the issue.

Leave a reply

This entry was posted in Debugging on .