Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPN Unable to record errors to SQL if error exceeds Varchar 255 limit #507

Open
tysonstrange opened this issue Apr 11, 2022 · 0 comments
Open

Comments

@tysonstrange
Copy link

tysonstrange commented Apr 11, 2022

The line on Paypal IPN.php file tries to log the error to znote_paypal in the event "something is wrong", however it fails to do so because the varchar(255) limit.

Column should be TEXT or something else that supports a longer string in the event it's required to log.

mysql_insert("INSERT INTO `znote_paypal` VALUES ('0', '$txn_id', 'ERROR: Invalid data. $postdata', '0', '0', '0')");
Eg
ALTER TABLE znote_paypal MODIFY email TEXT;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant