Results 1 to 2 of 2
  1. #1
    Join Date
    May 2014
    Posts
    68
    Plugin Contributions
    0

    Default Undefined constant MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY

    PHP 7.3.2 / Zen Cart Version 1.5.6a (with files from GitHub)

    Potential payment module error in future PHP version.

    HTML Code:
    [26-Feb-2019 16:51:18 UTC] Request URI: /zc156/adm/orders.php?page=1&oID=12503&action=edit, IP address: ::1
    #1  authorizenet_aim->__construct() called at [C:\wamp64\www\zc156\adm\orders.php:423]
    --> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY - assumed 'MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY'
    (this will throw an Error in a future version of PHP) in C:\wamp64\www\zc156\includes\modules\payment\authorizenet_aim.php on line 134.

    [admin]/orders.php line 423

    Code:
          if ($action == 'edit' && $order_exists) {
            $order = new order($oID);
            $zco_notifier->notify('NOTIFY_ADMIN_ORDERS_EDIT_BEGIN', $oID, $order);
            if ($order->info['payment_module_code']) {
              if (file_exists(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php')) {
                require(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php');
                require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_module_code'] . '.php');
                $module = new $order->info['payment_module_code'];
    //        echo $module->admin_notification($oID);
              }
    includes/modules/payment/authorizenet_aim.php line 134

    Code:
        // set the currency for the gateway (others will be converted to this one before submission)
        $this->gateway_currency = MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY;
    It's not effect anything now, but it may possibly lead to bigger problem in near future.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,627
    Plugin Contributions
    123

    Default Re: Undefined constant MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY

    This means you need to uninstall and reinstall the AIM payment module.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v156 Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_AIM_CURRENCY
    By RixStix in forum Upgrading to 1.5.x
    Replies: 15
    Last Post: 4 Dec 2023, 05:56 PM
  2. Undefined constant text
    By TheOracle in forum Bug Reports
    Replies: 6
    Last Post: 11 May 2007, 04:19 AM
  3. Undefined Notice: Use of undefined constant
    By TheOracle in forum Bug Reports
    Replies: 0
    Last Post: 6 May 2007, 06:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR