Ready to get started?Download WordPress


[resolved] [WP-e-commerce-google-product-feed] Fatal error on variation update (5 posts)

  1. Andrew Bartel
    Posted 2 years ago #


    After installing the google products feed from wp-ecommerce, when updating a product variation, say, after changing its featured image. I receive the following error:
    Fatal error: Cannot unset string offsets in /home/mysite/blah/blah/plugins/wp-e-commerce-google-product-feed/wpec-gpf-admin.php on line 277.

    Here's the function that's breaking:

    Changing line 17 to:
    if ( isset ( $current_data[$key] ) && is_array($current_data[$key]) )


    line 18 to $current_data[$key] = '';

    Results in no error.

    I'd prefer not to be hacking a plugin directly or even extending it and modifying the functionality obviously. Deactivating the plugin resolves the issue as well.

    Has anyone else experience this error and resolved it through settings?


  2. bcworkz
    Posted 2 years ago #

    The ability to unset an array string value has been depreciated in PHP 5. It used to generate a warning, but now a fatal error. You have no choice but to hack the plugin until it is made PHP 5 compatible.
    php.net (it's not a bug)

    (edited to get link working)

  3. Andrew Bartel
    Posted 2 years ago #

    Thanks for the info workz

  4. Andrew Bartel
    Posted 2 years ago #

    Marking as resolved

  5. outlet2013
    Posted 1 year ago #

    can i ask you to mail me this plug in at santimone.vito@gmail.com? i just wanna see it to perform the functions

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.