• Resolved Kajuna

    (@kajuna)


    I get this error when trying to update an existing post. The post gets updated anyway, but I have to refresh the page and I’m not sure if there are side effects to this.

    Warning: array_shift() expects parameter 1 to be array, object given in /XXXX/public_html/wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Utilities.php on line 271

    Fatal error: Cannot use object of type WP_Error as array in /XXXX/public_html/wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Utilities.php on line 276

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    yes I have seen this, in my own version of the plugin I had put in a:

    if ( $terms && ( ! is_wp_error( $terms ) ) ) {

    before the array_shift.

    Please note there is no support on these forums, please raise issues on:
    https://github.com/hyyan/woo-poly-integration/issues

    Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    Also note that this only happens when you create variations based on a product level attribute which has not been set up as a term under Products, Attributes, AND additionally a default variation is set based on this attribute.

    This is not too commonly done because such product level attributes are not translatable.

    Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    In this case as I already had a local fix, I’ve raised the issue and committed the fix here:
    https://github.com/hyyan/woo-poly-integration/issues/419
    Please raise any further discussion on it there.

    Thread Starter Kajuna

    (@kajuna)

    Awesome, thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Crash when submitting post: Warning: array_shift() expects parameter 1 to be arr’ is closed to new replies.