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

Home Forums Jevelin Theme PHP Fatal error: Uncaught Error: Cannot use object of type WP_Query as array

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Liventus
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form