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!
March 26, 2017 at 3:58 pm #59998
When I go to WcVendors > Payments and select Now then ‘Save Payments changes’ I get a HTTP 500 error on this URL: https://thebookcoverdesigner.com/wp-admin/options.php
The thebookcoverdesigner.com page isn’t working
thebookcoverdesigner.com is currently unable to handle this request.
HTTP ERROR 500
From the PHP logs:
[26-Mar-2017 19:56:08 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpdb::prepare(), 1 passed in /home/c87studi/public_html/thebookcoverdesigner.com/wp-content/plugins/wc-vendors/classes/class-commission.php on line 202 and exactly 2 expected in /home/c87studi/public_html/thebookcoverdesigner.com/wp-includes/wp-db.php:1291
#0 /home/c87studi/public_html/thebookcoverdesigner.com/wp-content/plugins/wc-vendors/classes/class-commission.php(202): wpdb->prepare(‘SELECT id, vend…’)
#1 /home/c87studi/public_html/thebookcoverdesigner.com/wp-content/plugins/wc-vendors/classes/gateways/PayPal_Masspay/class-paypal-masspay.php(51): WCV_Commission::get_all_due()
#2 /home/c87studi/public_html/thebookcoverdesigner.com/wp-content/plugins/wc-vendors/classes/gateways/PayPal_Masspay/class-paypal-masspay.php(26): WCV_Mass_Pay->get_users()
#3 /home/c87studi/public_html/thebookcoverdesigner.com/wp-content/plugins/wc-vendors/classes/class-cron.php(84): WCV_Mass_Pay->do_payments()
#4 /home/c87studi/public_html/thebookcoverdesign in /home/c87studi/public_html/thebookcoverdesigner.com/wp-includes/wp-db.php on line 1291March 27, 2017 at 12:55 am #60018
Could you please confirm with PayPal that you have masspay capability for your PayPal account?
Scheduled & Now payments require PayPal Adaptive + masspay; instant payments only Adaptive payments (parallel).March 27, 2017 at 4:34 am #60025
I have masspay. I can access it from the Tools section of my account. Also, I’ve been using this feature successfully for years until now.March 28, 2017 at 6:38 am #60136
I can’t pay my vendors until this is fixed, so it’s kind of urgent. Can I pay Ben or Jamie to look into it for me?
CharlieMarch 28, 2017 at 5:41 pm #60176
I will notify them of your issue- but they will want to know:
1. have you tried any debugging steps (deactivating all plugins except WooCommerce & WC Vendors, then test)?
2. Is there anything at all that you have recently changed OR updated?
3. Have you confirmed with PayPal that you do, indeed, still have masspay capability?March 28, 2017 at 5:46 pm #60177
I was informed that you have modified your payment system to use chained payments?
Please undo this, and use WC Vendors and PayPal Adaptive payments (parallel & masspay) without your modifications – no chained payments.March 29, 2017 at 5:58 am #60240
I don’t think I’m using chained payments. What makes you think that? I have adaptive payments enabled for the checkout.
I’ll ring PayPal to check but I’m almost certain I still have it. As I say, I can see it in my account and I’ve been using it successfully for years.March 29, 2017 at 6:24 am #60245
I just confirmed with PayPal that masspay is still enabled on my account.March 29, 2017 at 6:34 am #60246
I have noticed that for my PayPal app the checkbox for Parallel Payments isn’t ticked, but this has never caused an issue before. Would it make a difference?March 29, 2017 at 7:05 am #60251
Werent you using that chained payments code? If no, sorry, I thought you were.
If Parallel Payments is not ticked, you can not pay vendors with instant pay. Instant pay = parallel pay. Schedule pay = Mass pay.
Remember, PayPal approves ALL ACCOUNTS MANUALLY so what you ask for isnt waht you get sometimes and they can change anything any time. You know, it’s…….paypal…..March 29, 2017 at 7:08 am #60254
At the end of every week I set the payment schedule to Now and process them that way. So it’s like scheduled payments but manual (nothing seems to ever happen if I set it to weekly or whatever).March 29, 2017 at 7:11 am #60256
“Now” is technically just the scheduler, being run, well, “now”. So with that, you should not need Parallel Payments, only Mass Payments.
The 500 error is saying missing arguments. You have commissions currently due? Do the vendors needing to be paid have valid paypal emails? Are any new and have never been paid?March 29, 2017 at 7:16 am #60257
Yes I have commissions currently due. At least one of the vendors is new and has never been paid. Should I mark any new vendors as paid and try to only pay vendors I know have valid emails?March 29, 2017 at 7:20 am #60259
That sounds like a complete mess if you wanted to do that. It would be much easier to try and fix the issue instead. 🙂 Probably take less time, too.
I see we’re missing an admin login to your site, though……. Could you private reply as well as the username/email/or-userid of the new vendor so I can also check their account and settings out?
And, if I click “Pay now” and it works, you’re happy with that, I wont do a damn thing until you confirm otherwise because I’m not trying to spend your money. 😉 I’m not sure if it’s us, or you yet, but we’ll get there.March 29, 2017 at 7:25 am #60261
User ids of new vendors with comms due: mhod (11410), Nellista (209), Andrei B (11404), Winter Bayne (10200).March 29, 2017 at 7:25 am #60262
The commissions showing as due are correct so if you can get it work I have no problem with that.March 29, 2017 at 8:37 am #60269
Everything looks perfect on your side. I’ll have to ping Jamie and see if he has any idea. Please keep my login active so he may use it.March 29, 2017 at 8:58 am #60270
Sure thing, thanks for looking.March 29, 2017 at 12:04 pm #60289
Has this always happened or only just started? What has changed since the last set of commissions were paid out?
The section of code that is having an issue hasn’t been modified since we launched.
Can I attempt to debug this payout issue on your site? I will need to add some debugging code to try and work out what is creating the error.
jamie.March 29, 2017 at 12:38 pm #60290
As far as I’m aware, nothing has changed since the last payout (which would have been last Sunday). Around the 20th of March I started experiencing an issue whereby orders were not processing correctly (stock not reducing, emails to vendors not going out) that is still ongoing. See thread: https://www.wcvendors.com/help/topic/orders-not-processing-properly/
Not sure if these two issues are related.
You can add some debugging code, sure.March 29, 2017 at 9:08 pm #60337
So no plugin updates? No hosting updates? Have you contacted siteground to see if they have made any changes? Seeing as you have too many plugins to disable and start testing orders on the live site. Are you able to get a staging site setup that I can work on debugging this? With orders not working correctly and inconsistently it’s hard to know where to start with this. I would also need live access to your error logs so that I can start to debug this.
Jamie.March 29, 2017 at 9:44 pm #60340
I’ve made a change to the commission class and was wondering if I can attempt to process. The change shouldn’t be required unless some kind of PHP strictness has been turned on.
Can we go ahead and try and process the commission?
Jamie.March 30, 2017 at 5:56 am #60368
Yes you can go ahead and try.March 30, 2017 at 6:04 am #60371
I just checked my emails and last night this came through:
‘Hello! A payment was just triggered to mass pay all vendors their due commission. Payment status: error. Payment message: No vendors found to pay. Maybe they haven’t set a PayPal address?.’March 30, 2017 at 8:48 am #60382
@DYMOCKPOET yes, it would be very helpful if you’d check to ensure that your vendors have entered their PayPal addresses.March 30, 2017 at 9:54 am #60386
Looks like a mass payment just went through?March 30, 2017 at 9:54 am #60387
My code change fixed your commissions, they have all been paid. This fix will be in the next version of WC Vendors so don’t worry about my changes being lost when you do your next update.
Regarding changes I wonder if that version of PHP you’re running which is relatively new has got a strict setting turned on to make these errors happen.
Jamie.March 30, 2017 at 10:05 am #60388
Wow! PHP 7.1.2 already. They sure are pushing updates very fast. Fast updates == problems so just be cautious with PHP updates. If you can have them set you at 7.0 and just ignore it that’d be lovely 🙂
- The forum ‘WC Vendors Free Support’ is closed to new topics and replies.