Upload error since last update

HomeSupportImage StoreUpload error since last update

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53092
    kilinkis
    Participant

    I getting this error when uploading images since I updated to 3.2.8

    Fatal error:  Call to undefined function get_current_screen() in …/wp-content/plugins/wp-e-commerce/wpsc-admin/includes/product-functions.php on line 23

    every thing was working fine before

    #53104
    kilinkis
    Participant

    Now, after updating to 3.2.9, it does show any errors when uploading but it still fails.

    It shows the images list (with no thumbs), and when I try to edit one of them, it says the images doesn’t exist.

    #53114
    Xpark Media
    Keymaster

    This is an issue with the e-commerce plugin it loads on all custom post types and it shouldn’t; specially when other plugin are making ajax calls. We have recently helped a customer with this issue.

    Add this code in the functions.php file of your theme  or create a plugin.

    function ims_fix_issue_wp_ecommerce( $filepath ){
      remove_filter('wp_insert_post_data','wpsc_pre_update', 99, 2 );
      remove_action( 'save_post', 'wpsc_admin_submit_product', 10, 2 );
      return $filepath;
    } add_action( 'ims_before_read_image', 'ims_fix_issue_wp_ecommerce');
    
    #53118
    kilinkis
    Participant

    that fixed it 🙂

    thanks!

    #54785
    lgeventphotography
    Participant

    hi i have the same problem can you tell me where abouts in the function.php i insert this code

    #54789
    Xpark Media
    Keymaster

    @lgeventphotography,

    at the end of the file, if the file has ?> at the end, add it just before it

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.