-
Hi, after i activated GP theme on my wordpress i get php warning on this page: http://mydomaine.tld/wp-admin/customize.php?theme=generatepress&return=http%3A%2F%2Fmydomaine.tld%2Fwp-admin%2Fthemes.php
<b>Notice</b>: Trying to get property 'post_status' of non-object in <b>/home/mydomaine.tld/wp-admin/includes/template.php</b> on line <b>2298</b><br /> <br /> <b>Notice</b>: Trying to get property 'post_status' of non-object in <b>/home/mydomaine.tld/wp-admin/includes/template.php</b> on line <b>2302</b><br />
I dont have it with regular wordpress theme such as Twenty Twenty Four.
WP Version: 6.6.1
Can you help me to understand what’s going on ?
-
Alvind
Hi there,
Did you have any other plugins activated on the site?
If so, it could be caused by one of them. You could try deactivating all the plugins, and if the issue is resolved, reactivate them one by one to identify which one is causing the problem.
-
Hey Alvind,
Thanks for your quick answer.There is no theme activated for now (installed yes but they are desactivated)
And as i said, with another theme like 20 24 i dont get these warning. So GP is involved. -
Alvind
It seems like it’s just a notice and can be ignored as it doesn’t affect the site’s functionality. Does the PHP notice only appear on the backend?
-
Yes and only on this page as far as i know.
A bit sad you are not more eager to investigate the issue though 😉
But you right about the fact it’s not a high priority 🙂
Have a good day
-
Hi there,
this will generally be related to something wrong in the database.
the most likely culprit is the Menu Items.Go to Appearance > Menus and edit all menus you have saved there.
Are there any “broken” menu items ? eg. items that no longer exist. If so delete them and save the menu.
- You must be logged in to reply to this topic.