Home › Forums › Jevelin Theme › PHP Fatal error: Uncaught Error: Cannot use object of type WP_Query as array
Home › Forums › Jevelin Theme › PHP Fatal error: Uncaught Error: Cannot use object of type WP_Query as array
We are getting the following error after updating our theme and plugins.
PHP Fatal error: Uncaught Error: Cannot use object of type WP_Query as array in wp-content/plugins/w3-total-cache/Util_Environment.php:1041
The error is coming from the W3 Total Cache plugin but is caused by the Jevelin page-blog.php theme file. That file uses a variable called $posts which is already a global variable and causing issues when the cache plugin tries to process. The fix is easy, just replace the variable named $posts with something more unique like $posts_blog or something else.
Can you please confirm if you are able to roll this fix into the next update of the theme?
Hi @Liventus,
I hope you are well today and thanks for posting here.
I could confirm the issue on my test site, therefore, I notified the theme developer about this so that it will be fixed.
The issue will be fixed ASAP.
Best regards,
Shufflehound team
The issue is resolved in the below latest version of theme so please update the theme as described here https://support.shufflehound.com/updating-theme/
Please login to access this file
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.