Hello all,
Warning messages occur after install the PayPal Checkout Integration, OC v3.0.3.8
Notice: Undefined index: in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
Notice: Trying to access array offset on value of type null in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
how to solve the problem? thanks.
Warning messages occur after install the PayPal Checkout Integration, OC v3.0.3.8
Notice: Undefined index: in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
Notice: Trying to access array offset on value of type null in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
how to solve the problem? thanks.
What is your PHP version?yeayang wrote: ↑Tue Nov 21, 2023 10:13 amHello all,
Warning messages occur after install the PayPal Checkout Integration, OC v3.0.3.8
Notice: Undefined index: in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
Notice: Trying to access array offset on value of type null in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
how to solve the problem? thanks.
Mike
cue4cheap not cheap quality
Hello Mike,Cue4cheap wrote: ↑Tue Nov 21, 2023 12:34 pmWhat is your PHP version?yeayang wrote: ↑Tue Nov 21, 2023 10:13 amHello all,
Warning messages occur after install the PayPal Checkout Integration, OC v3.0.3.8
Notice: Undefined index: in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
Notice: Trying to access array offset on value of type null in
.../catalog/controller/extension/module/paypal_smart_button.php on line 33
how to solve the problem? thanks.
Mike
thanks for your reply, my PHP version is PHP 7.4
There is no catalog/controller/extension/module/paypal_smart_button.php file in that version. Maybe you have some old files or settings left over from a previous version or it's from a different extension.
thank you for answering.ADD Creative wrote: ↑Tue Nov 21, 2023 6:51 pmThere is no catalog/controller/extension/module/paypal_smart_button.php file in that version. Maybe you have some old files or settings left over from a previous version or it's from a different extension.
I've deleted this paypal_smart_button.php file directly, and the shop seems work normal now.
is this a workable solution?
thanks.
The file on it's own wouldn't cause the issue. Check your Design -> Layouts. Maybe the PayPal Smart Button was still being used in a layout. You may have to put the file back to see it.
warning messages exist again after I put the file back, is there other solutions not to show the warning messages?ADD Creative wrote: ↑Tue Nov 21, 2023 7:37 pmThe file on it's own wouldn't cause the issue. Check your Design -> Layouts. Maybe the PayPal Smart Button was still being used in a layout. You may have to put the file back to see it.
Contact the extension developer.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Where do you see the error? After you put the file back did you check all you layouts in Design -> Layouts to check the PayPal Smart Button was still being used?yeayang wrote: ↑Tue Nov 21, 2023 9:30 pmwarning messages exist again after I put the file back, is there other solutions not to show the warning messages?ADD Creative wrote: ↑Tue Nov 21, 2023 7:37 pmThe file on it's own wouldn't cause the issue. Check your Design -> Layouts. Maybe the PayPal Smart Button was still being used in a layout. You may have to put the file back to see it.
If you have checked the layouts and are sure you have all the latest files, then it is probably fine to delete the file. After you do check both the PHP and OpenCart error logs for any related errors.
thanks for replying.ADD Creative wrote: ↑Wed Nov 22, 2023 1:26 amWhere do you see the error? After you put the file back did you check all you layouts in Design -> Layouts to check the PayPal Smart Button was still being used?yeayang wrote: ↑Tue Nov 21, 2023 9:30 pmwarning messages exist again after I put the file back, is there other solutions not to show the warning messages?ADD Creative wrote: ↑Tue Nov 21, 2023 7:37 pmThe file on it's own wouldn't cause the issue. Check your Design -> Layouts. Maybe the PayPal Smart Button was still being used in a layout. You may have to put the file back to see it.
If you have checked the layouts and are sure you have all the latest files, then it is probably fine to delete the file. After you do check both the PHP and OpenCart error logs for any related errors.
error info shows on the top of website.
sorry I don't know how to 'check the PayPal Smart Button was still being used' how should I know whether it is being used or not?
the website seems work normally after I delete this file, but just a bit worry that I don't know if this will affect anywhere else of the site.
thanks!
In you admin goto Design -> Layouts. Then click the edit button for a layout. Then check if the for the PayPal Smart Button in any of the 4 module positions. Do this for all the layouts.
Or you can search the code column in the database table oc_layout_module for paypal_smart_button.
Removing the file without removing the module from the layouts will likely cause a error on PHP 8.1 and above.
If you are seeing error on the top of your website and it's a live store, you need to switch of displaying of errors (this has to be done with 3 different settings).
Or you can search the code column in the database table oc_layout_module for paypal_smart_button.
Removing the file without removing the module from the layouts will likely cause a error on PHP 8.1 and above.
If you are seeing error on the top of your website and it's a live store, you need to switch of displaying of errors (this has to be done with 3 different settings).
dear, how to switch off displaying errors?ADD Creative wrote: ↑Wed Nov 22, 2023 5:40 pmIn you admin goto Design -> Layouts. Then click the edit button for a layout. Then check if the for the PayPal Smart Button in any of the 4 module positions. Do this for all the layouts.
Or you can search the code column in the database table oc_layout_module for paypal_smart_button.
Removing the file without removing the module from the layouts will likely cause a error on PHP 8.1 and above.
If you are seeing error on the top of your website and it's a live store, you need to switch of displaying of errors (this has to be done with 3 different settings).
If it's a production site make sure make sure display errors in set to off in all 3 places it needs to be. Your PHP settings, in system/config/default.php and in the settings.
1. In your PHP settings make sure display_errors is set to Off. Use phpinfo() to check. It should be off by default, but there are lots of rubbish hosts out there.
2. In system/config/default.php set error_display to false (2.2.x and above).
3. In your OpenCart Setting on the server tab set Display Errors to No.
You then need to check both your PHP and OpenCart error logs for the errors.
1. In your PHP settings make sure display_errors is set to Off. Use phpinfo() to check. It should be off by default, but there are lots of rubbish hosts out there.
2. In system/config/default.php set error_display to false (2.2.x and above).
3. In your OpenCart Setting on the server tab set Display Errors to No.
You then need to check both your PHP and OpenCart error logs for the errors.
Who is online
Users browsing this forum: No registered users and 39 guests