PHP Notice: Trying to get property ‘public’ of non-object

I am working on a dev site for a client, and I’m getting 3 PHP errors/warnings with a new installation of WordPress. I was trying to use the Divi Theme, but it wouldn’t load some of the pre-made layouts it comes with. So I checked the log and found these errors.

Now, a little background. I imported content from a Drupal site using a Drupal-Wordpress conversion plugin. I didn’t encounter any errors during the import, but it’s the only thing I did once I created the new WordPress site before I noticed these errors.

This Drupal-Wordpress conversion may have nothing to do with it, but mentioned it in case it did.

Here are the three errors I’m getting.

PHP Notice: Trying to get property ‘public’ of non-object in /home/carmattd/public_html/wp-includes/canonical.php on line 133
And also the debug.log under /wp-content

PHP Warning: Cannot modify header information – headers already sent by (output started at /home/carmattd/public_html/wp-includes/functions.php:5167) in /home/carmattd/public_html/wp-admin/admin-header.php on line 9

PHP Notice: map_meta_cap was called incorrectly. The post type wp-types-group is not registered, so it may not be reliable to check the capability “edit_post” against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.) in /home/carmattd/public_html/wp-includes/functions.php on line 5167

Keep in mind, no plugins are active, and it doesn’t matter which theme I use. The errors are still showing in the debug. I mention this because when googling the errors, it seems some people were getting these issues from bad or outdated plugins/themes.

Any insight to these issues would be helpful.

  • This topic was modified 1 day, 1 hour ago by Josh.

Source link