Well here it goes, these are the warnings/errors I am currently seeing with the Recover Cart Module
Errors
[code][25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 [internal function]: zen_debug_error_handler()
#1 /var/www/alt1.adminbars.com/public_html/admin/recover_cart_sales.php(397): strtotime()
#2 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 397.
[25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/domain.com/public_html/admin/recover_cart_sales.php(505): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined variable $ib in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 505.
[25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/domain.com/public_html/admin/recover_cart_sales.php(510): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined array key "page" in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 510.
[25-Nov-2022 15:07:13 America/Chicago] Request URI: /admin/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/domain.com/public_html/admin/recover_cart_sales.php(577): zen_debug_error_handler()
#1 /var/www/domain.com/public_html/admin/index.php(11): require('...')
--> PHP Warning: Undefined array key "message" in /var/www/domain.com/public_html/admin/recover_cart_sales.php on line 577. [/code}
Using the link supplied by the Software Guy, I look in the docs and made changes that seem to work however I am not sure they are actually correct.
Line 577
Was:
Code:
td><?php echo zen_draw_textarea_field('message', 'soft', '100%', '15', $_POST['message']); ?></td>
Changed to:
Code:
<td><?php echo zen_draw_textarea_field('message', 'soft', '100%', '15', (!empty($_POST['message']))) ?></td>
Line 510
Was:
Code:
'products_type']), "page=" . $_GET['page'] . "&product_type=" . $products->fields['products_type'] . "&cPath=" . zen_get_product_path((int)$basket->fields[
Changed to:
Code:
'products_type']), "page=" . (!empty($_GET['page'])). "&product_type=" . $products->fields['products_type'] . "&cPath=" . zen_get_product_path((int)$basket->fields[
Line 505 Undefined variable $ib I found nothing on this type of error in the docs, I did look at other sources and tried to guess a fix but had no luck. The same is true for the warning on line 397 PHP Deprecated: strtotime().
If anyone can help with those 2 it would be much appreciated.
Bookmarks