• When I activate a newly installed WPEC on a working test website using WP 3.8.1 I get the following messages whenever I access any part of the site (front- and back-end):

    Warning: Invalid argument supplied for foreach() in /var/www/vhosts/#########/subdomains/test/httpdocs/wordpress/wp-content/plugins/wp-e-commerce/wpsc-includes/shipping.helper.php on line 510

    Fatal error: Call to a member function get_shipping_method() on a non-object in /var/www/vhosts/#########/subdomains/test/httpdocs/wordpress/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 278

    The only way to resolve this is to delete the directory.

    A previous version of WPEC (3.7.8) is working on the identical prod site, but is causing some problems when editing products sine WP was upgraded to 3.8.1.

    Since a simple install failed I tried to clean up the site, including removing all files and database tables related to WPEC. I get the same result.

    https://www.ads-software.com/plugins/wp-e-commerce/

Viewing 5 replies - 16 through 20 (of 20 total)
  • I think the problem is just the activation code. It activates. I thought the session had to expire but apparently not as I was able to go in with another browser and things were fine and if I went back to wp-admin in the original browser, ditto.

    Thanks lcwakeman ??
    I was already in code changing core files but then found this post it saved alot of time ??

    So easy peasy steps:

    1. Take backup both database and files
    2. Update wordpress
    3. Update plugins
    4. If you get this error close your browser open it again

    I got the thing to finally activet, I am now having issues with the database migration.

    I am getting an error on a call to wpdb->prepare, 2nd argument is missing. in \wp-content\plugins\wp-e-commerce\wpsc-admin\includes\updating-functions.php line 424. The statement form the sorce is:

    $product[‘order’] = $wpdb->get_var( $wpdb->prepare( “
    SELECT order FROM ” . WPSC_TABLE_PRODUCT_ORDER . “
    WHERE product_id = %d
    ” ) , $product[‘id’] );

    and should be :

    $product[‘order’] = $wpdb->get_var( $wpdb->prepare( “
    SELECT order FROM ” . WPSC_TABLE_PRODUCT_ORDER . “
    WHERE product_id = %d
    ” , $product[‘id’] ));

    Making that change, the update works correctly.

    The only problem now is that the featured image is not set.

    Thread Starter eransegev

    (@eransegev)

    Has any of you been able to overcome the thickbox problem? with WP 3.8.1?

    This has been an epic upgrade, so I have keeping backups after each successful milestone, i.e. I can repeat steps if needed.

    FIrst, I did make the change as documented above.

    I am in the process of writing a script to add product iomages to teh media library (almost done) and then I will add the thumbnail metadata to the products.

    Hope this works.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘WordPress 3.8.1 crash on activation of WPEC’ is closed to new replies.