Quote Originally Posted by Semi-Crazy View Post
I've followed the instructions for unzipping and uploading the files for the shipping surcharge module and it shows up in the "Order Totals Modules" list.

Unfortunately when I click on it so the right hand side bar with the “Install” button should show up all I get is the partial list of the "Order Totals Modules" that shows above the shipping surcharge module. I see nothing of the list that should be below and no right hand side bar were the ”Install” button should be.

Image A
Click image for larger version. 

Name:	Screenshot 2022-03-06 134714_a.jpg 
Views:	201 
Size:	26.6 KB 
ID:	19918

Image B
Click image for larger version. 

Name:	Screenshot 2022-03-06 134758_b.jpg 
Views:	201 
Size:	26.8 KB 
ID:	19919

Here is the debug log file that I get with it. (I've replaced admin folder name and IP address with *)

[06-Mar-2022 19:35:54 UTC] PHP Fatal error: Uncaught Error: Call to a member function Execute() on null in /includes/modules/order_total/ot_shippingsurcharge.php:115
Stack trace:
#0 /*********/modules.php(218): ot_shippingsurcharge->keys()
#1 /*********/index.php(11): require('/nfs/home4/home...')
#2 {main}
thrown in /includes/modules/order_total/ot_shippingsurcharge.php on line 115

[06-Mar-2022 19:35:54 UTC] Request URI: /*********/index.php?cmd=modules&set=ordertotal&module=ot_shippingsurcharge, IP address: ***.**.**.**
--> PHP Fatal error: Uncaught Error: Call to a member function Execute() on null in /includes/modules/order_total/ot_shippingsurcharge.php:115
Stack trace:
#0 /*********/modules.php(218): ot_shippingsurcharge->keys()
#1 /*********/index.php(11): require('/nfs/home4/home...')
#2 {main}
thrown in /includes/modules/order_total/ot_shippingsurcharge.php on line 115.

Thanks for any help that anyone can provide. I'm just a beginner at this coding stuff.
in /includes/modules/order_total/ot_shippingsurcharge.php lines 114-119 SHOULD be deleted:

PHP Code:
if (!defined('MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_VALUE_THRESHOLD')) {
      
$db->Execute("insert into " TABLE_CONFIGURATION " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Value threshold for Shipping Surcharge', 'MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_VALUE_THRESHOLD', '0', 'Charge shipping surcharge for orders over this value.', '6', '4', now())");
      }
if (!
defined('MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_WEIGHT_THRESHOLD')) {
      
$db->Execute("insert into " TABLE_CONFIGURATION " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Weight threshold for Shipping Surcharge', 'MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_WEIGHT_THRESHOLD', '0', 'Charge shipping surcharge for orders over this weight.', '6', '4', now())");
      } 
alternatively one could comment them out.

@swguy is the plugin author. it needs fixing.