Notice: Trying to get property 'post_type' of non-object in
This is for ZIBALIFESTYLECO.COM. I wasn't getting an error and now I am. Nothing new was added to the website.
-
Hi Jessica,
Thank you for reaching out to us.
We have recently received similar reports, and it has already been escalated to our senior support team. I will get back to you as soon as I receive an update.
In the meantime, please add the following directives in wp-config.php to hide the warning:
ini_set('log_errors','On');
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);If you don't have access to update the wp-config.php file, you can also use a plugin to hide error reporting.
https://wordpress.org/plugins/debug/
Sorry for the inconvenience.
Best regards,
Ariel H.0 -
Hi Jessica,
We've released an update to resolve this issue. Please update, and feel free to reach out if you have any further questions. If you added the above directives in your wp-config.php file, you could remove them or leave them in place—they simply suppress PHP warnings and won’t affect your site.

Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
2 comments