Ever come across an error like this?

Warning: Attempt to read property "post_status" on null in C:\xampp\htdocs\test\wp-admin\includes\template.php on line 2201

Warning: Attempt to read property "post_status" on null in C:\xampp\htdocs\test\wp-admin\includes\template.php on line 2207

Warning: Attempt to read property "ID" on null in C:\xampp\htdocs\test\wp-admin\includes\template.php on line 2211

Warning: Attempt to read property "post_status" on null in C:\xampp\htdocs\test\wp-admin\includes\template.php on line 2215

Warning: Attempt to read property "ID" on null in C:\xampp\htdocs\test\wp-admin\includes\template.php on line 2219

Warning: Attempt to read property "ID" on null in C:\xampp\htdocs\test\wp-admin\includes\template.php on line 2224

Warning: Attempt to read property "ID" on null in C:\xampp\htdocs\test\wp-admin\includes\template.php on line 2228

and more...

I was editing this blog of mine on localhost when this warning error came up.

The website is displaying without any problems at the front end. This only happens when I go to the appearance>customize to change anything.

I had installed the H5P plugin which gave me several issues so that was the first suspect. I uninstalled it. No changes. I uninstalled some other plugins but the same thing was still happening.

With WordPress Health Check & Troubleshooting plugin downloaded and activated, I disabled plugins and installed WordPress 2022 theme yet there was no change. In fact, it was really of no use going this route.

After trying several solutions I came across this WordPress support topic which addressed the issue.

What do these errors mean?

When the theme was installed, some of the demo links in the menu were deleted. After several hours of working, some of these links, still found on a menu that I don’t even use, decided to start acting up.

They appeared in red in the menus. I removed the menus that I did not use and the deleted pages that appeared red in the menus from the menus and the problem was solved.

At first, if you don’t find them in the menu, check the top of your menu, they might be in an inactive menu.

Check all menus one after the other to see which has the item in red.

.

Write A Comment