Trying to get property 'ID' of non-object in wp-includes\class-wp-query.php on line 3965

Hello for over a week now I have been having issues with my payment system and I have been calling a lottttaa servicedesk people from different companies. Anyhow. I got a lot of errors but the last ones I am having are (and i left my website name (etc) out:

Notice: Trying to get property ‘ID’ of non-object in wp-includes\class-wp-query.php on line 3965

Notice: Trying to get property ‘post_title’ of non-object in wp-includes\class-wp-query.php on line 3967

Notice: Trying to get property ‘post_name’ of non-object in wp-includes\class-wp-query.php on line 3969

Any thoughts?

Kindly,
Mrs X

Hey Mrs X,

We haven’t received reports that our theme could cause that issue so something else could have caused that. Please try each solution below which usually solves common issues. Test if the issue persists after each step.

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.

  2. If you’re using a caching plugin, clear all caches then temporarily deactivate your caching plugin and other optimization plugins. Also, clear your browser’s cache.

  3. If you’re using a CDN, please clear the CDN’s cache and temporarily disable optimization services.

  4. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

  5. Switch to the parent theme.

  6. Enable debugging but prevent PHP errors from showing by following the guide by WordPress here: https://wordpress.org/support/article/debugging-in-wordpress/

Please just note that our focus here is to determine if our theme is causing the issue so it’s important that you do the steps above. If one of them solves the issue, please hire a third-party developer to fix the issue in your site as it’s certainly not our theme that is causing the issue.

If none of that helps, please give us WordPress Admin and FTP access in a Secure Note. We’ll perform the steps again to double check. I’d recommend you temporarily put your site in maintenance mode while we troubleshoot.

If that can’t be done in your live site, copy your live site to a staging server and give us staging WP Admin and FTP access.

Thanks.

I dont know how but the code has disappeared…

We’re glad that the issue is now resolved. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.