Re: Edit Orders v4.0 Support Thread - blank screen after order change
Quote:
Originally Posted by
lat9
What's the site's setting for Configuration :: Logging :: Report All Errors (Admin)? If it's set to 'No', try setting it to 'IgnoreDups' and see if a log's generated.
Yep, that caught it. I installed the newsletter discount plugin, and that's where the problem is. Apparently it's looking to see whether this customer should have a price discount because of being a newsletter subscriber.
[26-Apr-2022 14:07:51 UTC] Request URI: /Zentest-CHAR-jasPe/index.php?cmd=edit_orders&page=1&oID=9989&action=update_order, IP address: 67.44.192.73
--> PHP Fatal error: Uncaught Error: Call to undefined function mailchimp_check() in /home/newnatur/zentest/includes/modules/order_total/ot_newsletter_discount.php:209
Stack trace:
#0 /home/newnatur/zentest/includes/modules/order_total/ot_newsletter_discount.php(44): ot_newsletter_discount->is_subscriber()
#1 /home/newnatur/zentest/includes/classes/order_total.php(65): ot_newsletter_discount->process()
#2 /home/newnatur/zentest/Zentest-CHAR-jasPe/includes/functions/extra_functions/edit_orders_functions.php(1431): order_total->process()
#3 /home/newnatur/zentest/Zentest-CHAR-jasPe/includes/modules/edit_orders/eo_update_order_action_processing.php(453): eo_update_database_order_totals(9989)
#4 /home/newnatur/zentest/Zentest-CHAR-jasPe/edit_orders.php(84): require('/home/newnatur/...')
#5 /home/newnatur/zentest/Zentest-CHAR-jasPe/index.php(11): require('/home/newnatur/...')
#6 {main}
thrown in /home/newnatur/zentest/includes/modules/order_total/ot_newsletter_discount.php on line 209.
Re: Edit Orders v4.0 Support Thread - blank screen after order change
Quote:
Originally Posted by
HeleneWallis
Yep, that caught it. I installed the newsletter discount plugin, and that's where the problem is. Apparently it's looking to see whether this customer should have a price discount because of being a newsletter subscriber.
[26-Apr-2022 14:07:51 UTC] Request URI: /Zentest-CHAR-jasPe/index.php?cmd=edit_orders&page=1&oID=9989&action=update_order, IP address: 67.44.192.73
--> PHP Fatal error: Uncaught Error: Call to undefined function mailchimp_check() in /home/newnatur/zentest/includes/modules/order_total/ot_newsletter_discount.php:209
Stack trace:
#0 /home/newnatur/zentest/includes/modules/order_total/ot_newsletter_discount.php(44): ot_newsletter_discount->is_subscriber()
#1 /home/newnatur/zentest/includes/classes/order_total.php(65): ot_newsletter_discount->process()
#2 /home/newnatur/zentest/Zentest-CHAR-jasPe/includes/functions/extra_functions/edit_orders_functions.php(1431): order_total->process()
#3 /home/newnatur/zentest/Zentest-CHAR-jasPe/includes/modules/edit_orders/eo_update_order_action_processing.php(453): eo_update_database_order_totals(9989)
#4 /home/newnatur/zentest/Zentest-CHAR-jasPe/edit_orders.php(84): require('/home/newnatur/...')
#5 /home/newnatur/zentest/Zentest-CHAR-jasPe/index.php(11): require('/home/newnatur/...')
#6 {main}
thrown in /home/newnatur/zentest/includes/modules/order_total/ot_newsletter_discount.php on line 209.
You'll need to check with the author of that order-total to get a correction.
Re: Edit Orders v4.0 Support Thread - blank screen after order change
Re: Edit Orders v4.0 Support Thread - blank screen after order change
I've just submitted EO v4.6.2 for the Zen Cart moderators' review; I'll post back here when it's available for download.
This version contains changes associated with the following GitHub issues:
#212: Tax not added to order for some configuration settings.
#213: eo_add_product_to_order, correcting strict MySQL fatal error when calculations are 'auto'.
#214: Using zen_cfg_read_only as the update function for EO's current version.
Re: Edit Orders v4.0 Support Thread - blank screen after order change
Quote:
Originally Posted by
lat9
I've just submitted EO v4.6.2 for the Zen Cart moderators' review; I'll post back here when it's available for download.
This version contains changes associated with the following GitHub issues:
#212: Tax not added to order for some configuration settings.
#213: eo_add_product_to_order, correcting strict MySQL fatal error when calculations are 'auto'.
#214: Using zen_cfg_read_only as the update function for EO's current version.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1513
Re: Edit Orders v4.0 Support Thread - blank screen after order change
Good morning!
Long-time user, first time poster! I am working on my upgrade to v158 and installed this plugin this morning.
Code:
if (function_exists ('zen_get_tax_locations')) {
trigger_error ('Pre-existing zen_get_tax_locations function detected.', E_USER_ERROR);
exit ();
} else {
function zen_get_tax_locations($store_country = -1, $store_zone = -1) {
global $order;
if (STORE_PRODUCT_TAX_BASIS == 'Store') {
$GLOBALS['customer_country_id'] = STORE_COUNTRY;
$GLOBALS['customer_zone_id'] = STORE_ZONE;
} else {
$_SESSION['customer_id'] = $order->customer['id'];
I am getting a fatal error since zen_get_tax_locations exists, at least in v158.
Does anyone have any thoughts for fixing the issue?
-JC
Re: Edit Orders v4.0 Support Thread - blank screen after order change
zen_get_tax_locations is in includes>functions>functions_taxes.php.
I would compare the zen_get_tax_locations in functions_taxes.php with the version in your code. If they are doing the same thing, remove the two lines
Code:
trigger_error ('Pre-existing zen_get_tax_locations function detected.', E_USER_ERROR);
exit ();
from your code.
If they are doing different things. The correct solution would be to write an observer to perform the content of your function, the notifier to use is 'ZEN_GET_TAX_LOCATIONS'. You can find information on writing an observer in the docs. You can then remove the whole section from your code.