Bring Your Business to Life › Support › Image Store › Upload error since last update
- AuthorPosts
- May 15, 2013 at 7:11 am #53092kilinkisParticipant
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
May 16, 2013 at 9:12 am #53104kilinkisParticipantNow, 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.
May 17, 2013 at 2:29 am #53114Xpark MediaKeymasterThis 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');
May 17, 2013 at 4:36 am #53118kilinkisParticipantthat fixed it 🙂
thanks!
August 28, 2013 at 10:55 am #54785lgeventphotographyParticipanthi i have the same problem can you tell me where abouts in the function.php i insert this code
August 28, 2013 at 11:18 pm #54789Xpark MediaKeymasterat the end of the file, if the file has ?> at the end, add it just before it
- AuthorPosts
- You must be logged in to reply to this topic.