Fixed Error logging payment to payment provider: Please enter a value using 255 characters or fewer.

DragonByte Tech

Well-known member
Affected version
[*]XF\PrintableException: Error logging payment to payment provider: Please enter a value using 255 characters or fewer.
[*]Generated by: Unknown account
[*]Jun 12, 2019 at 4:46 AM

#0 src/XF/Repository/Payment.php(90): XF\Mvc\Entity\Entity->save()
#1 src/XF/Payment/AbstractProvider.php(203): XF\Repository\Payment->logCallback('<>...', 'paypal', '<>...', 'error', 'Connection to P...', Array, '')
#2 payment_callback.php(69): XF\Payment\AbstractProvider->log(Object(XF\Payment\CallbackState))
#3 {main}

array(4) {
  ["url"] => string(40) "/payment_callback.php?_xfProvider=paypal"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["_xfProvider"] => string(6) "paypal"
  ["_POST"] => array(35) {
    ["mc_gross"] => string(5) "34.95"
    ["protection_eligibility"] => string(10) "Ineligible"
    ["payer_id"] => string(13) "<>"
    ["tax"] => string(4) "0.00"
    ["payment_date"] => string(25) "<>"
    ["payment_status"] => string(9) "Completed"
    ["charset"] => string(12) "windows-1252"
    ["first_name"] => string(6) "<>"
    ["mc_fee"] => string(4) "1.66"
    ["notify_version"] => string(3) "3.9"
    ["custom"] => string(32) "<>"
    ["payer_status"] => string(8) "verified"
    ["business"] => string(28) "<>"
    ["quantity"] => string(1) "1"
    ["verify_sign"] => string(56) "<>"
    ["payer_email"] => string(15) "<>"
    ["txn_id"] => string(17) "<>"
    ["payment_type"] => string(7) "instant"
    ["payer_business_name"] => string(11) "<>"
    ["last_name"] => string(6) "<>"
    ["receiver_email"] => string(28) "<>"
    ["payment_fee"] => string(4) "1.66"
    ["shipping_discount"] => string(4) "0.00"
    ["receiver_id"] => string(13) "<>"
    ["insurance_amount"] => string(4) "0.00"
    ["txn_type"] => string(10) "web_accept"
    ["item_name"] => string(32) "eCommerce order #<> (<>)"
    ["discount"] => string(4) "0.00"
    ["mc_currency"] => string(3) "USD"
    ["item_number"] => string(0) ""
    ["residence_country"] => string(2) "<>"
    ["shipping_method"] => string(7) "Default"
    ["transaction_subject"] => string(0) ""
    ["payment_gross"] => string(5) "34.95"
    ["ipn_track_id"] => string(13) "<>"

EDIT: The order did process successfully, but it would appear as if some form of PayPal connection error failed to log because of the 255 character limit.
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.3).

Change log:
Force payment provider log messages to their max length.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
The exactly same error is appearing when using the spam cleaner for some users.. I don't know what's the cause, and nothing gets logged in the error log as well!
This is still happening for me. How did it work in the past, and now it does not? I have many users purchasing upgrades, but it doesnt log them in the payment log, it doesnt include them on the "Active Upgrade" page, and it doesnt restore their banner.

I went to paypal and created a callback url, but it seems more like a xenforo setting, than a Paypal one.
If you require support, you will need to log in to your customer account, add your forum user name, then post in the relevant forum.
Top Bottom