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.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 38 posts - 1 through 38 (of 38 total)
  • Author
    Posts
  • #25150
    Glenn Carlson
    Participant

    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.

    #25157
    WC Vendors Support
    Participant

    Hi Glenn,

    I don’t see any attachment on your forum post, could you please re-send the screenshot?

    Ben

    #25178
    Glenn Carlson
    Participant

    Whoops, didn’t attach for some reason. Let’s try again.

    #25182
    Philip Burton
    Participant

    I’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.

    #25223
    WC Vendors Support
    Participant

    The 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.

    #25249
    WC Vendors Support
    Participant

    I 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 🙂

    #25252
    Glenn Carlson
    Participant

    It 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.

    #25253
    WC Vendors Support
    Participant

    I’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.

    #25254
    Glenn Carlson
    Participant

    Ha! 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.

    #25750
    WC Vendors Support
    Participant

    ..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……..

    #25786
    WC Vendors Support
    Participant

    Tried 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…..

    #25995
    Glenn Carlson
    Participant

    Hi 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?

    #26022
    WC Vendors Support
    Participant

    Sure, 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. 🙂

    #26082
    Karen Thomas
    Participant

    I 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.

    #26169
    Glenn Carlson
    Participant

    Ben, 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.

    #26172
    WC Vendors Support
    Participant

    You 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.

    #26174
    Glenn Carlson
    Participant

    Brand new test account, just created 30 minutes ago. Same issue.

    #26179
    WC Vendors Support
    Participant

    http://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.

    #26359
    Glenn Carlson
    Participant

    Ben, 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.

    #26380
    Glenn Carlson
    Participant

    Did not work for me.

    #26393
    Glenn Carlson
    Participant

    Ben, 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;

    #26398
    WC Vendors Support
    Participant

    All that code does is check if there’s a file to upload. Nothing more nothing less.

    #26400
    Glenn Carlson
    Participant

    If 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.

    #26408
    Glenn Carlson
    Participant

    Does 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.

    #26463
    Glenn Carlson
    Participant

    I 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.

    #26467
    WC Vendors Support
    Participant

    Hi 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.

    #26468
    Glenn Carlson
    Participant

    Ben, 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.

    #26470
    Glenn Carlson
    Participant

    use my test vendor again.

    dev.lendmeyourgear.com

    [email protected]
    Gixxer62

    #26482
    WC Vendors Support
    Participant

    Your 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/

    #26485
    Glenn Carlson
    Participant

    Damn 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?

    #26489
    Glenn Carlson
    Participant

    It 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?

    #26490
    WC Vendors Support
    Participant

    Sure, 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.

    #26564
    Karen Thomas
    Participant

    I’m getting error messages when uploading pics but I’ll start a new thread in case it’s different…

    #27429
    Glenn Carlson
    Participant

    Hi 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.

    #27430
    WC Vendors Support
    Participant

    Hi 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

    #27432
    Glenn Carlson
    Participant

    Got it! Thanks!

    #27678
    Ling
    Participant

    Glenngsxr,

    Can you please tell me what you did to fix it?

    I’m having the same problem.

    Thanks.

    #27745
    Glenn Carlson
    Participant

    @FGS

    I 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.

Viewing 38 posts - 1 through 38 (of 38 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.