To post a new support question, click the Post New Topic button below.
Current Version: 5.2.5 | Sytist Manual | Common Issues | Feature Requests
Some Problems With Paypal And With Processing Photos While Uploading
Hi,
Since some days I have some problems with the PayPal checkout. The order did not get created but the payment went through.
In the error log I found this:
[21-Sep-2023 05:09:56 UTC] PHP Warning: Undefined variable $HTTP_HOST in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 18 [21-Sep-2023 05:09:56 UTC] PHP Warning: Undefined variable $db_user_array in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 21 [21-Sep-2023 11:15:23 UTC] PHP Warning: Undefined variable $HTTP_HOST in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 18 [21-Sep-2023 11:15:23 UTC] PHP Warning: Undefined variable $db_user_array in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 21 [22-Sep-2023 09:04:03 UTC] PHP Warning: Undefined variable $HTTP_HOST in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 18 [22-Sep-2023 09:04:03 UTC] PHP Warning: Undefined variable $db_user_array in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 21 [22-Sep-2023 13:54:02 UTC] PHP Warning: Undefined variable $HTTP_HOST in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 18 [22-Sep-2023 13:54:02 UTC] PHP Warning: Undefined variable $db_user_array in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 21 [23-Sep-2023 15:50:47 UTC] PHP Warning: Undefined variable $HTTP_HOST in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 18 [23-Sep-2023 15:50:47 UTC] PHP Warning: Undefined variable $db_user_array in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 21
The upload issue caused this error:
Stack trace: #0 /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/photo.process.functions.php(143): imagecopy() #1 /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/photo.process.functions.php(626): watermarkPhoto() #2 /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/process-ftp-upload.php(252): processPhoto() #3 {main} thrown in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/photo.process.functions.php on line 143 [15-Sep-2023 02:38:05 Europe/Brussels] PHP Fatal error: Uncaught TypeError: imagecopy(): Argument #1 ($dst_image) must be of type GdImage, bool given in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/photo.process.functions.php:143 Stack trace: #0 /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/photo.process.functions.php(143): imagecopy() #1 /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/photo.process.functions.php(626): watermarkPhoto() #2 /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-admin/process-ftp-upload.php(252): processPhoto() #3 {main}
The website is running on a Linux server with Plesk. PHP version is 8.1.2
Could you provide a hint what I have to change in order to get this solved?
Thanks in advance,
Andre
1) There is a bug in some iphones that is causing some PayPal checkout payments to not create the order (not submitting the checkout form). I may have created a workaround but it won't be available for a week or so.
You may be better off using the PayPal Standard Business option in the mean time.
2) The error line indicates an issue when trying to watermark the photo. Either you have changed the watermark and something is no right with it, or recently changed the PHP version and something not right with that.
My Email Address: info@picturespro.com
Hi Tim,
thanks for the advice.
I changed the PHP version and it seems that the watermark issue is solved. The last 4000 photos uploaded without issue.
About the PayPal checkout problem:
We do use the PayPal Standard business checkout. Just yesterday I had again this error coming up.
[29-Sep-2023 21:14:43 UTC] PHP Warning: Undefined variable $HTTP_HOST in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 18 [29-Sep-2023 21:14:43 UTC] PHP Warning: Undefined variable $db_user_array in /var/www/vhosts/webstore.pegasus-photo.com/httpdocs/sy-inc/store/payment/paypal-standard-return.php on line 21
It did create the order correctly and the payment has arrived on our PayPal account correctly.
I don't know if this error had any consequences - so fqr I did not notice any problem resulting from that.

Loading more pages