• liquid8

    (@liquid8)


    Hi,

    I am creating my own plugin. When I use the latest WP and Woocommerce the plugin works fine. But when I try to install it to an earlier copy of WP and Woocommerce to my customer’s site, I get this error:

    Cannot use object of type WP_Error as array in …..home/wp-content/plugins/woocommerce/classes/class-wc-order.php on line 257

    What kind of code should I be checking to find out what is causing this behaviour? the plugin’s code is already quite long so I am a bit puzzled where to start debugging this. Any ideas what could be causing this error?

  • The topic ‘Cannot use object of type WP_Error as array’ is closed to new replies.