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)