Home Forums WC Vendors Pro Support Vendor getting error when uploading images

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 50 posts - 1 through 50 (of 56 total)
  • Author
    Posts
  • #26565
    Karen Thomas
    Participant

    Hiya,

    One of my Vendors (S J Crafting Creations) is getting an image upload error:

    I’ve tried on my own Vendor account and a few others and don’t get the same issue. I’ve also tried on S J Crafting Creations account via User Switching and didn’t get the error.

    I know it’s just a standard wp error message so doesn’t give us much to go on sorry.

    It only started happening after yesterday and the upgrade by the way.

    Thanks,

    Karen

    #26568
    WC Vendors Support
    Participant

    Download your /wc-vendors-pro/ folder and save it to your hard drive. Then, upload v1.2.2 over it. Test. Does the problem go away?

    #26580
    WC Vendors Support
    Participant

    Those are all Buddypress errors and widget errors.

    Rather than use the error_log, let’s do this: add to your wp-config.php replacing the current WP_DEBUG false line:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    and then watch /wp-content/debug.log for errors in there. It will show you a lot more information that way, so we can help you to resolve the error if we can.

    #26582
    P017
    Participant

    Hi Ben, According to my tech person, the code you shared is how we generated the log and the lines are from the debug_log.The WP_Debug_Display was set to False however because otherwise it shows up on the site’s front page.
    If they are Buddypress and widget errors, is the solution to deactivate Buddypress? Also, on a side note, I added Buddypress to my site only recently but these errors have been showing up prior to that. Thank you!

    #26584
    WC Vendors Support
    Participant

    define( 'WP_DEBUG_DISPLAY', false ); not true, sorry about that. 🙂

    The BuddyPress errors are nothing to worry about, you can ignore them. The Widget errors are something the widget author will want to fix, but should not have any impact on the site whatsoever either.

    #26594
    P017
    Participant

    Hi Ben,
    I am also going to be switching themes to Buddyboss today but I guess that may not really have any impact on this issue. The vendor tried to upload images again and the log showed identical to the previous errors and nothing more. Please do let me know if anything else comes to mind that could be producing this error or if we can add any code to log errors elsewhere. Thank you!
    Priya

    #26595
    WC Vendors Support
    Participant

    Conscious Crafties works just fine now, it was an issue with the vendor not being logged in.

    Priya, after the vendor gets the error, go to /my-account/ — does it show the vendor as logged in, or not logged in?

    #26600
    P017
    Participant

    Hi Ben, so sorry, but could you tell me how I can check if the vendor is logged in?
    Thank you!
    Priya

    #26602
    WC Vendors Support
    Participant

    Sure, go to http://www.yourdomain.com/my-account/

    If it shows the login/register form, you arent logged in.

    #26677
    Joseph
    Participant

    Hi Ben, I have been having the exact same issue at http://www.bollolane.co.uk. In fact since I added WC Vendors Pro I’ve had a few technical issues. I emailed one of your team and they told me to contact via here. I have tried all the suggestions I could find on the forums (deactivating plugins etc) and no luck.

    Would you be able to help? Thanks in advance!!!

    #26694
    P017
    Participant

    Hi Ben, Thank you for your suggestion yesterday. Two vendors that were having the problem both said they they logged in to their accounts, went to the dashboard to add products/ upload images and got the image upload error. When they went back to the My Account page, they were shown as logged out/asked to Login. That does seem to be the problem. How do I address it? Any advice is greatly appreciated and thank you for diagnosing it!
    Priya

    #26698
    WC Vendors Support
    Participant

    Hi Priya,

    We’ve had a small number of reports of this (4 in total) and it seems to be sporatic between vendors. Most vendors work fine, a few dont. The common theme seems to be that if they visit /my-account/ after, they are logged out. The big question is — What is WordPress doing that is logging out members? We don’t have a solution for this, and no way to debug it since we cant even replicate it ourselves. Nothing shows up in the debug logs, or error logs, the user is simply not logged in anymore, and when they upload a file, they are logged out each time. Something in WordPress core is my best guess, or an issue with the database. As we hear more about this and can replicate this, we’ll see if there’s anything we can do for it.

    #28127
    Karen Thomas
    Participant

    Hi Ben,

    Just happened to me again when testing on my own vendor account. I hadn’t visited My Account after log in though. but when I refreshed the Vendor Dashboard after getting the image upload error it then took me to My Account page to log back in.

    After logging back in it allows me to upload an image.

    So bizarre!

    Thanks,

    Karen

    #28138
    WC Vendors Support
    Participant

    WE’ve been able to narrow down that issue happening when you are loading mixed SSL content on your site. Force everything to https for the dashboard page, or force it all to http. WordPress uses different login identifiers for http & https, so if you get that exact issue, it’s mixed content on your site.

    #28140
    Karen Thomas
    Participant

    You very kindly helped me get my website secure with SSL. Doesn’t that mean all my pages are https? Or am I being think as usual 😉

    #28141
    WC Vendors Support
    Participant

    It does, but within reason. If there’s still mixed content by http:// hard coded requests, it’s missing something and would need to be corrected. There’s a few wordpress https plugins that do this, such as WordPress HTTPS and more.

    #28197
    P017
    Participant

    Hi Ben, hope you are having a wonderful weekend! I have an update on the image upload error- all new vendors on my site are now seeing this error in addition to some old ones and I am uploading the images for them. I see that I still have mixed http/https content on my site. I do have a SSL certificate – is there a particular plugin the you recommend for forcing https on all pages? And I hope I understood correctly from what you wrote above 🙂
    Thank you!
    Priya

    #28202
    WC Vendors Support
    Participant

    @glenngsxr had this fixed on his site, but hasnt said yet exactly what the fix was. Something to do with SSL settings somewhere…….

    #28211
    P017
    Participant

    Hi Ben, I set all the pages on my site to be forced through https (and no added plugin) and the problem seems to be resolved. The vendors that were seeing the issue are now able to upload images. Thank you so much for identifying the issue!!
    Priya

    #28213
    WC Vendors Support
    Participant

    Thanks Priya. Did you use a plugin for this or just .htaccess rewrite rules?

    #28214
    P017
    Participant

    Hi Ben, just an .htaccess redirect + in the WordPress general settings, the site homepage url wasn’t set to https. I didn’t use any other plugin.
    Priya

    #29678
    Karen Thomas
    Participant

    Hi there,

    Lots of Vendors are complaining about this error now, it’s like an evil germ that’s spreading!
    How do I set up an .htaccess redirect? Won’t I need to know which links aren’t SSL? Am I best using a the WordPress HTTPS plug in and will that find any non SSL links on my site? Really don’t want to add another plug in if I can help it.

    Many thanks,

    Karen

    #29680
    WC Vendors Support
    Participant

    You ignored me on Skype just now, so fine, I’ll answer you here. 😉 😉 Since other members have fixed it via .htaccess rewrite rules, my guess, is the rule that was in place for your force SSL check was faulty. So, I’ve changed your .htaccess rule to say:

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.consciouscrafties.com/$1 [R=301,L]
    

    And we’ll see how that works.

    I couldnt login as an admin to your site, the password was changed. So, if you can also check in wp-admin > Settings > General make sure your site URLs do have https in them not http.

    #29683
    Karen Thomas
    Participant

    Oh gosh sorry I missed u on Skype as it’s 3am and everything is on silent.
    Thank you so much for this! 😀 I’ve checked in wp-admin > Settings > General and both wordpress and site address contain https 🙂

    I’ll skype u now with new password….

    Thanks again,

    Karen

    #29777
    P017
    Participant

    Hi Ben,
    I have the One Social theme and WC Vendors Pro 1.2.4 -going to update to the latest pro version today but got distracted by the image upload error striking again. The .htacess redirect for https looks fine, WP general setting say https:// but 2 vendors got the error today. They found they had been logged out and went back and one of them was able to upload once they logged in again. My hosting just suggested to get a plugin that allows a user to stay logged in for longer times as a solution. I’d love to hear what you think. Thanks!
    Priya

    #29779
    WC Vendors Support
    Participant

    Your hosting company is wrong, that won’t do anything.

    Try adding this code to your root directories .htaccess file:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    Then test and report back!

    #29794
    P017
    Participant

    Thanks, I will add it and see if anyone reports errors.
    Priya

    #31130
    P017
    Participant

    Hello, this is an update with the image upload issues. I added the code to my.htaccess but I have 2 vendors that continue to show the image upload errors. So, I was wondering if there were any new leads as to where the error is coming from?
    I have One Social + WC Vendors Pro 1.2.5, latest WordPress and Woocommerce and SSL on all pages.
    Thank you!
    Priya

    #31137
    WC Vendors Support
    Participant

    No new leads at all, everyone who has had this error has been a problem with their https wordpress configuration. Once you solve that, and it’s different on every webhosting server, you win the Internet!

    #31138
    Jamie
    Keymaster

    Hello,

    If you are using any plugins that mess around with your media then this would be the issue. I have added extra code that should stop this in version 1.3.0 which we are readying for release.

    cheers,

    Jamie.

    #31141
    P017
    Participant

    @ben @digitalchild I don’t know if this helps or is even connected, but I had a vendor who couldn’t upload images this morning (who in the past has been able to) and i deactivated the User Switching plugin. He is now able to upload images. Hopefully, that’s a piece of the puzzle 🙂
    Thanks!

    #31146
    WC Vendors Support
    Participant

    That would be rather odd — Every marketplace I login to I install User Switching on. Never had an issue with it.. 🙂

    #32945
    Karen Thomas
    Participant

    Hi, just to update several Vendors are still getting the issue (I’ve updated to Version 1.3.1 several days ago).

    The issue has been reported by about 5 vendors. Most just get the error message above (an error occurred in the upload) when attempting to upload an image.

    However 1 vendor reported getting the error above after attempting to upload an image, then being taken to the my account log in page, logging back in, then going back to her product page, attempted to upload the picture then was taken to the log in page again and again in a constant loop. She’s not a happy camper.

    So it’s certainly something to do with it logging them out.

    Ben added the code to my root directories .htaccess file and @DigitalChild added extra code in version 1.3, so any ideas of what could be going on?

    1 of my Vendors has actually left due to this problem as they were so frustrated 🙁

    Thanks,

    Karen

    #32965
    P017
    Participant

    Hi Karen @consciouscrafties,
    My tech person manually changed every http:// link of my website in the database to https://
    because even after adding the code in the .htaccess file, vendors were still seeing the image upload error. I also added a plugin Really Simple SSL Pro that is supposed to dynamically change every http to https if your website has mixed content (http and https). I am not sure if the plugin was helpful but changing the http manually seems to have helped and no-one has reported image upload error since (i don’t want to say it too loudly and jinx it 🙂 and I don’t know if they are resigned to it!)
    My hosting service also recommend the plugin Velvet Blue though I didn’t try it.
    Good luck!
    Priya

    #33344
    Karen Thomas
    Participant

    Thanks so much @OUTT 🙂 I’ve found a website that identifies any non secure links too:
    https://www.whynopadlock.com

    I had some links for my affiliate advertising that were insecure that may have been causing the issue so fingers and toes crossed!

    (sorry for delay I’ve been away for a few days – thanks so much for your help both on here and BuddyBoss!)

    Karen

    #34235
    P017
    Participant

    An update of the image upload errors- a few of my vendors continue to see this even though we’ve now made sure that only https:// is applied throughout the site (or whatever the tech way of saying that is). I have the latest WC Vendors 1.9 and Vendors Pro 1.3.1 as well as Buddyboss One Social theme’s latest version. I’ve pared down the number of plugins we use- Woocommerce, WC Vendors + Pro, Wordfence, User Switching, Jetpack, Buddypress, Stats Counter, Regenerate Thumbnails, WPBakery Visual Composer, Slider Revolution, Yoast and WP Smush.
    I don’t see the error on the admin side and can’t replicate it. If you have any new pointers as to what else I can fix, I would greatly appreciate it!
    Thanks!

    #34237
    WC Vendors Support
    Participant

    Priya — If your vendors are still having issues uploading, and your entire site is SSL, install the plugin “Really Simple SSL”. Activate it, then a notice will pop up at the top of your wp-admin side asking you to turn it on. Do it. Your problems should be solved.

    The problem is in whatever is currently forcing your SSL, isnt doing it right. This plugin will fix that. It’s fixed every site so far that has had that problem and it’s a really simple install.

    Cheers

    #34238
    P017
    Participant

    Hi Ben, I actually had the Really Simple Ssl plugin, both the lite and Pro versions, and deactivated it today because the vendors were still seeing errors with the plugin active. I was trying to decrease the number of plugins but I can turn it back on. I guess that may mean that it’s not SSL-related? Thanks!

    #34240
    WC Vendors Support
    Participant

    If after the vendors get an error, they go to /my-account/ it will ask them to login — If it does, then it’s an SSL issue and Really Simple SSL should fix it. If they go to /my-account/ after they get an error, and they ARE still logged in, then it’s not a SSL issue.

    Try to get your vendors to give you steps to replicate the issue. Ask them their operating system, web browser (and its version number). Try to get me something I can test and replicate, and see if you can replicate it yourself with a test vendor account. If you can get it to replicate as an error, we can figure it out easy. But with no real data other than the occasional vendor saying it doesnt work and no details, it’s a needle and a haystack………..

    #34268
    P017
    Participant

    Hi Ben, I want to tentatively say that plugins that monitor spam may be a factor. I deactivated one such plugin yesterday and then had the vendor try uploading to his account plus a new test account. Both times he didn’t see any errors – he was able to immediately upload images without any issues and he’s been seeing the error for months now.
    Thanks, will keep the thread updated!

    #34271
    Karen Thomas
    Participant

    Thanks Priya,

    What spam plug ins do you have as there might be a common theme with us all.
    I have Akismet, bbPress Notify (No-Spam) and WangGuard

    Thanks,
    Karen

    #34272
    P017
    Participant

    Hi Karen,
    I’ve a different one that someone recommended to me before I turned my website into a marketplace- it’s called Clean Talk and I’ve had it for about a year. It works really well at catching comment and registration spam and of course, I am not sure if that is the culprit, but I did turn it off and so far so good! 🙂 Just realized I haven’t responded to your earlier email, will do so.- Priya

    #34326
    Matthew
    Participant

    Hey Ben,
    I too had this issue. I was only using SSL on checkout pages. I think it has something to do with the SSL. I went to settings -> general and changed web address to https:// and it works now. But here is the issue now and this is why i didn’t use https for entire site. I sell digital downloads on my site and now when my customers go to download their files it is forbidden. Have any suggestions?
    Thanks
    Matt

    #34328
    Matthew
    Participant

    FYI – I figured out issue with the download problem. The files are saved with the http:// in the database. So I had to go in and replace all the http:// with https:// in the database. Site is entirely https now and downloads and uploads are working.

    #34591
    P017
    Participant

    Sorry in advance for the long post!I am not sure if I am posting sensitive/private information, so I am marking it private.

    The image upload errors continue and now I am down to just 13 plugins as I try to find the problem. I have Woocommerce, WCVendors +Pro, Buddypress, Buddypress reorder tabs, Stat plugin, User Switching, WP Bakery Visual composer, Rev Slider, Yoast + the Marketplace plugin with One Social theme. I have the Really simple SSL lite +pro and all links ate https://

    I disabled Jetpack today and had one vendor that was suddenly and immediately able to upload. She’d been seeing a HTTP error on image upload. After turning Jetpack off, she’s now able to upload images. I now have Jetpack turned off.
    I have now also disabled Wordfence and am waiting on other vendor to report- he is reporting the more garden variety of image upload error- Unable to upload file, please try again later. I read that jetpack and word fence may conflict because of some overlap and if that was causing the problem, well, they are both deactivated now.

    Hosting has said all file permissions etc. look fine and there is no problem at their end. There is no common OS or browser to report. The vendors with the errors currently are all outside the US.
    I have enabled the WP debug log and one section from a day ago shows the following- I have reported the One Social part to Buddyboss and they said they will have a fix in their next update.
    Wondering about the WC Vendor part towards the end? It looks unrelated to the image upload issue but is it something I need to fix or am I missing something? Appreciate it if you could let me know.

    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: thumb_class in /home2/……/public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 29
    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: post_content in /home2/……./public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 40
    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: thumb_class in /home2/……./public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 29
    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: post_content in /home2/……../public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 40
    [10-Jun-2016 04:30:32 UTC] PHP Notice: Undefined index: shipping_policy in /home2/……../public_html/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-shipping.php on line 81
    [10-Jun-2016 04:30:32 UTC] PHP Notice: Undefined index: return_policy in /home2/……../public_html/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-shipping.php on line 82

    And today’s log is filled with this repeating- is Buddypress doing something wrong? This particular user does see image upload error.
    [11-Jun-2016 22:47:31 UTC] PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home2/……/public_html/wp-includes/functions.php on line 3897
    [11-Jun-2016 22:47:31 UTC] PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home2/……/public_html/wp-includes/functions.php on line 3897

    Any suggestions greatly appreciated! Thank you

    #34604
    WC Vendors Support
    Participant
    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: thumb_class in /home2/……/public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 29
    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: post_content in /home2/……./public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 40
    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: thumb_class in /home2/……./public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 29
    [10-Jun-2016 04:27:18 UTC] PHP Notice: Undefined variable: post_content in /home2/……../public_html/wp-content/themes/onesocial/template-parts/content-blog.php on line 40
    [10-Jun-2016 04:30:32 UTC] PHP Notice: Undefined index: shipping_policy in /home2/……../public_html/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-shipping.php on line 81
    [10-Jun-2016 04:30:32 UTC] PHP Notice: Undefined index: return_policy in /home2/……../public_html/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-shipping.php on line 82

    They are just PHP notices, nothing that would affect your site.

    [11-Jun-2016 22:47:31 UTC] PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home2/……/public_html/wp-includes/functions.php on line 3897
    [11-Jun-2016 22:47:31 UTC] PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home2/……/public_html/wp-includes/functions.php on line 3897

    Those are also notices, not errors, and would be from your theme or your buddypress addon plugins (not BuddyPress itself). I’d bet it’s from Social marketplace, which I believe just had an update that fixes that notice. But again, it’s not an error or a problem anyway even as is.

    #40338
    Joao de Gois
    Participant

    Hi Ben

    I’m getting an error when test vendors want to upload a picture file . it says ‘you don’t have permissions to attach files to this post’ this error only occurs when logged in as a vendor but NOT as an admin user. It was working before.

    If it helps I did have WC Vendors BP and BP installed but have since uninstalled and removed these plugins as they didn’t seem to add any value to my site.

    Please point me to the correct place under settings that could be affecting this, as I’ve checked and can’t find it. I need my site to go live for testing with the vendors later this week before we go live. http://www.livefairs.com

    thanks
    Joao

    #40373
    Anna
    Member

    Joao,
    Did you check some of the issues mentioned in this thread- such as your site ssl?

    #40426
    Joao de Gois
    Participant

    Hi Anna

    Thanks for your quick reply. Yes I did see that SSL could be the problem. Currently the site is hosted via Hostgator without SSL included and based on that I’ll be moving the site to another SP that offers SSL. I’ll let you know if it solved the problem.

    On another note, How do I disable the dashboard from showing Commission, Orders etc. on the Dashboard sub-menu, it only needs to show Recent Products added. I only use WC Vendors to allow vendors to input their stock on the portal. The selling and communication with the buyer is entirely up to the vendors. I also need for the whole list of categories options to show without having to scroll down, when adding stock items.

    Thanks
    Joao

    #40453
    Anna
    Member

    Joao,
    The SSL may or may not be the issue with the uploads. I just did not know if you had read through and tried any of the above mentioned fixes. The issue with the SSL they discussed had to do with the SSL not being properly forces across the site.
    If you continue to expereince issues once your SSL is installed, please let me know and we can look into this further.

    I believe you are referring to the information that shows up on the first page of the vendor dashboard? If so, then you would need to edit a template. How to edit wc vendors pro templates: https://www.wcvendors.com/kb/changing-vendor-templates/
    Please move this template (overview.php) : plugins/wc-vendors-pro/templates/dashboard/reports/overview.php
    to your child theme with this path: themes/YOUR-THEME-OR-CHILD-THEME/wc-vendors/dashboard/reports/overview.php

    And you would need to remove the information that you do not want to be seen in the dashboard tab.

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