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

Affected version
2.1.2

DragonByte Tech

Well-known member
Code:
[LIST]
[*]XF\PrintableException: Error logging payment to payment provider: Please enter a value using 255 characters or fewer.
[*]src/XF/Mvc/Entity/Entity.php:1154
[*]Generated by: Unknown account
[*]Jun 12, 2019 at 4:46 AM
[/LIST]
Code:
#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}
Code:
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.
 

XF Bug Bot

XenForo bug fixer bot
Staff member
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.
 
Top