To post a new support question, click the Post New Topic button below.
Current Version: 4.9.3 | Sytist Manual | Common  Issues | Feature Requests

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Some Problems With Paypal And With Processing Photos While Uploading

A
17 posts
Mon Sep 25, 23 10:35 AM CST

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


16,278 posts (admin)
Mon Sep 25, 23 11:27 AM CST

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.

Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
17 posts
Sat Sep 30, 23 1:36 AM CST

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.

3 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 269 times
Category: Payment Options
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close