Home › Forums › WC Vendors Pro Support › Vendors getting error when trying to upload pictures
NOTICE: We've Moved to a Ticket System for Support
As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system. This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.
For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.
If you are a WC Vendors Pro customer please open a support ticket here. If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.
The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.
Thank you to all of our customers!
- This topic has 38 replies, 5 voices, and was last updated 8 years ago by Glenn Carlson.
-
AuthorPosts
-
February 28, 2016 at 6:42 pm #25150Glenn CarlsonParticipant
Hi Ben and Jamie,
I had a couple vendors reach out to me recently to tell me they’ve had errors when uploading pictures. I confirmed they were will within the size constraints and were not unusual file types. Attached is a screenshot of the error they are getting. Can you think of a reason why this is happening?I have had zero issues loading pictures on the backend as an admin. I just tried with my test vendor account and got the same error.
February 28, 2016 at 10:11 pm #25157WC Vendors SupportParticipantHi Glenn,
I don’t see any attachment on your forum post, could you please re-send the screenshot?
Ben
February 29, 2016 at 12:30 am #25178Glenn CarlsonParticipantWhoops, didn’t attach for some reason. Let’s try again.
February 29, 2016 at 2:29 am #25182Philip BurtonParticipantI’ve had a similar error a couple of times when it logged me out without me realising or being told I’d been logged out.
February 29, 2016 at 1:46 pm #25223WC Vendors SupportParticipantThe error in which is showing is a general WordPress error. It’s really a poor error message since it doesnt tell you what the *actual* problem is. It could be a theme or a plugin conflicting, it could be as @pousis mentioned of being logged out by mistake and loading a cached page, it could be a webserver setting, it could be a general wordpress problem, it could be a permissions problem. If you can isolate it to something specific, we can do our homework on it, but the bigger problem is it’s not WC Vendors Pro that is showing you the error, it’s WordPress. All we do is provide *access* to the vendor to use the uploader. It’s WordPress’ job to make sure the uploader actually works. Sorry to be so vague on this, it’s just such a vague issue in general that when it pops up it’s hard to debug. Just have to get the error to be repeatedly reproducible and start tracking it down from there.
February 29, 2016 at 5:26 pm #25249WC Vendors SupportParticipantI doubt it’s logging them out, it’s moreso checking if their login has expired, and thus doing the redirection.
If you want to have fun:
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' ); function keep_me_logged_in_for_1_year( $expirein ) { return 31556926; // 1 year in seconds }
and then it wont bug them for a full 12 months 🙂
February 29, 2016 at 5:38 pm #25252Glenn CarlsonParticipantIt is actually logging them out from what I can tell. Is there a way I can show you? I can setup an online meeting real quick.
After it says there is an error, I close the image uploader window and try to go back to the dashboard. It goes back to the login screen and makes me sign back in.
February 29, 2016 at 5:40 pm #25253WC Vendors SupportParticipantI’m on dialup Internet while at my mother in laws house till Friday morning. Yes, dialup Internet. 🙂 It takes me 2 minutes to load wcvendors.com let alone try a meeting. 😉 Not even enough bandwidth for the sound of a bird chirping.
February 29, 2016 at 5:43 pm #25254Glenn CarlsonParticipantHa! That’s probably a blessing in disguise! Can you take a look into this when you get back? I can upload pictures just fine in the backend.
March 5, 2016 at 7:09 pm #25750WC Vendors SupportParticipant..and I’m back home now. Admin username/pass and vendor username/pass plus your website URL as a private reply, I’ll check out what I can. Please include an exact step by step of what exactly to do to replicate this problem. If I can’t replicate it……..
March 6, 2016 at 2:50 pm #25786WC Vendors SupportParticipantTried to debug it for the last hour. Reinstalled your WordPress, fixed all your broken WooCommerce pages (4 of them) and fixed your WC Vendors Dashboard pages (You had the free configured as the Pro) but none of that helped. Tried with Storefront theme, same problem. I’ll have Jamie check this out and see if he has an idea on this one. We don’t provide anything in our code that logs people out, that’s all handled by WordPress. The big question is why are they being logged out…..
March 8, 2016 at 11:27 am #25995Glenn CarlsonParticipantHi Ben, do you know if Jamie has had a chance to look into this?
Is it ok if I reactivate my plugins?
Also, what four errors did you find on woocommerce pages?
March 8, 2016 at 2:26 pm #26022WC Vendors SupportParticipantSure, you can reactivate your plugins.
I sent Jamie another message to check it out. I expect he’ll do it today.
The WooCommerce page issues you had, while unrelated, is you had the my-account slug as my-account-2, cart-2, checkout-2, and then the cart and checkout pages were child pages of the my account page which is just really weird. So, I reset them all back to the way they should be. 🙂
March 8, 2016 at 8:45 pm #26082Karen ThomasParticipantI know Ben would have tried deactivating your plug ins, but just letting u know that I had the same error when I had a picture avatar plug in. It wouldn’t let anyone upload pics and gave the same error.
March 9, 2016 at 11:28 am #26169Glenn CarlsonParticipantBen, I have a test account as well and am still having the same issue. I created a brand new test account this morning and tried again. Same issue. I had my wife login and try her account. Same issue.
You were able to create a test account and upload a picture on the front end? Almost everything is unplugged right now and believe it or not, I have done very little modifications to existing code. I have not had any user role editors or other marketplace plugins. I don’t know what else to do. It is still logging people out.
March 9, 2016 at 11:32 am #26172WC Vendors SupportParticipantYou have a NEW test account? Or some old account that existed already? Create a NEW account. 🙂
http://www.lendmeyourgear.com/product/test-product-ben-wcv/ — Created using the Pro Dashboard last night.
March 9, 2016 at 11:34 am #26174Glenn CarlsonParticipantBrand new test account, just created 30 minutes ago. Same issue.
March 9, 2016 at 12:25 pm #26179WC Vendors SupportParticipanthttp://www.lendmeyourgear.com/product/another-new-product/
I just created another product on your site, it still works fine for me. Something’s up with your WordPress install if you’re still having issues. At this point, I’d suggest contacting your webhosting company to see if something is wrong with your server config, or start asking WordPress why someone would get logged out when using the media uploader. Remember — the media uploader is part of WordPress, not WC Vendors.
Or, wipe the database and start from scratch and see if that helps, but that’s a pretty drastic approach as a last resort. Something in there is messed up, the big question is what.
March 10, 2016 at 1:46 pm #26359Glenn CarlsonParticipantBen, I have no clue how you were able to upload a picture in the front end. I’m baffled. I had Bluehost check my server configs out and nothing seemed out of whack. We even tried some of the common “fixes” found in WP support over the years. Changed my PHP version, rolled back WP, etc. Nothing. I just set up a new vendor and it’s still dead. Nobody is able to upload pictures. It’s’ still logging people out. So weird. I can load pictures all day long on the back end.
March 10, 2016 at 3:27 pm #26380Glenn CarlsonParticipantDid not work for me.
March 10, 2016 at 4:41 pm #26393Glenn CarlsonParticipantBen, do you see anything in this piece of code that would create the error? This is from the media.new.php file.
if ( $_POST ) {
if ( isset($_POST[‘html-upload’]) && !empty($_FILES) ) {
check_admin_referer(‘media-form’);
// Upload File button was clicked
$upload_id = media_handle_upload( ‘async-upload’, $post_id );
if ( is_wp_error( $upload_id ) ) {
wp_die( $upload_id );
}
}
wp_redirect( admin_url( ‘upload.php’ ) );
exit;March 10, 2016 at 4:45 pm #26398WC Vendors SupportParticipantAll that code does is check if there’s a file to upload. Nothing more nothing less.
March 10, 2016 at 4:51 pm #26400Glenn CarlsonParticipantIf you couldn’t tell, I am knee deep in PHP land. 🙂 I am not a software guy by trade, but I have actually learned a lot reading through the code. Now if I could just find out why this error exists. Seems it is actually a common error and there have been multiple causes throughout the years.
March 10, 2016 at 5:39 pm #26408Glenn CarlsonParticipantDoes it make sense to reinstall WCPro at this point? How about a WP reinstall?
I was on the phone with Bluehost twice today and they found nothing on the server side that would indicate this. I reached out to the theme developer as well as the WP support community.
March 11, 2016 at 12:43 pm #26463Glenn CarlsonParticipantI setup a subdomain, but am not able to get anywhere once inside the PRO dashboard. I click add product and nothing happens. I deactivated my license key from my main site and assigned it to this one. Still nothing. I can’t add products. I went through the settings and made sure all capabilities were proper as well.
March 11, 2016 at 1:11 pm #26467WC Vendors SupportParticipantHi Glenn,
You should not deactivate your license key on your main site. Keep it active. On a dev site such as your new subdomain, you can install and activate Pro, but don’t activate the license key. It’ll give you a warning message, but you can safely ignore it. Activation only tells us what sites are legit to provide support to, and provides you with plugin updates. The entire actual plugin still works 100%.
If it does not work on your new subdomain — Congrats! You’ve debugged the problem. The problem is Bluehost. Most likely they are doing something that is destroying your temporary session files. Since Bluehost sucks donkey balls, I’d strongly advise switching webhosting companies to pretty much anywhere else.
As a gentle reminder — WC Vendors offers webhosting. It’s $249 per year, paid up front. Most hosting companies put a few THOUSAND websites on one server. We have no more than 20 on ours. If you are happy with WCVendors.com’s uptime and speed, that’s the speed you’d get, too, since it’s the same exact enterprise webserver. I can even help transfer your site over by moving the databases and all the files and your DNS records and such.
We’ve moved a few of our other WC Vendors customers over to our servers from Bluehost before. BlueHost modifies the WordPress core with all these additional checks and forces them on you. We literally have to go in and wipe them out line by line in your config files, removing the additional PHP files they force inject, and then your site works on a new webhosting platform. Why does BlueHost do this? I don’t know. But they do, it’s weird, and it’s a nightmare mess.
March 11, 2016 at 1:13 pm #26468Glenn CarlsonParticipantBen, I can’t even get to the area to add an image at all. When I get inside the dashboard and click “add product”, nothing happens.
March 11, 2016 at 1:23 pm #26470Glenn CarlsonParticipantMarch 11, 2016 at 5:51 pm #26482WC Vendors SupportParticipantYour permalinks werent set. 😉 wp-admin > Settings > Permalinks. I set them, saved, and the dashboard works. So does the uploader:
http://www.dev.lendmeyourgear.com/shop-page/uncategorized/test/
March 11, 2016 at 6:44 pm #26485Glenn CarlsonParticipantDamn Permalinks! They always get me!
So essentially, my wordpress install is broken? Is it possible to save my website settings and reinstall a clean WP version? Is it possible for a plugin to permanently break a site even if you uninstall it?
March 11, 2016 at 7:33 pm #26489Glenn CarlsonParticipantIt works. I was able to upload! Apologies, but I don’t follow you on the second part about building my website on the dev…… platform. Does this mean I have to start over??? It’s not possible to reinstall a clean version of WP on my regular site?
March 11, 2016 at 7:36 pm #26490WC Vendors SupportParticipantSure, you can do that too. You’d want to wipe the database by emptying it entirely first, of course, as the database holds the data, and the /www/ holds your files. Feel free to nuke away! Since your site is brand new with no customers and no orders, it would probably be the best route.
March 13, 2016 at 7:12 am #26564Karen ThomasParticipantI’m getting error messages when uploading pics but I’ll start a new thread in case it’s different…
March 20, 2016 at 8:12 pm #27429Glenn CarlsonParticipantHi Ben, since my problem is fixed, I went in to kill my dev.domain….. PRO activation and reactivate it on my main site. I deactivated the dev site just fine and then input my license key info into my new site and saved changes. “settings saved”. However, it still says license deactivated.
Is there a lag time or is there an issue with my activation? I saw no place in my account to reset my activation.
March 20, 2016 at 8:36 pm #27430WC Vendors SupportParticipantHi Glenn,
I saw you fixed it, by fixing the SSL issues. Glad you got that sorted out!
To reset your license key — if it is currently activated and you cant get to the site to deactivate it — go to http://www.wcvendors.com/my-account/ and click the Delete button. If it says 0 of 1 activations, you are ready to activate it on your main site.
If the key is entered on your main site, and it’s just not activating, delete the key/email text, and save. Then re-enter the key/email and save again, that’ll do it. 🙂
Cheers
March 20, 2016 at 10:27 pm #27432Glenn CarlsonParticipantGot it! Thanks!
March 23, 2016 at 5:19 am #27678LingParticipantGlenngsxr,
Can you please tell me what you did to fix it?
I’m having the same problem.
Thanks.
March 23, 2016 at 11:12 am #27745Glenn CarlsonParticipantI had a bit of help and would be glad to connect the two of you actually. In essence, if you are running an eCommerce website, you are likely using SSL somewhere. My site had parts where it was SSL and parts where it wasn’t. This was causing some confusion and the website would not let users upload images since it was moving back and forth between a secure environment and an insecure environment. We plugged in the “SSL Insecure Content Fixer” and began by using that plugin to help us make more of the website secure. I would start there. If you are still having issues, please send me a private message and I will connect you to the guy who helped me.
-
AuthorPosts
- The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.