I've recently updated to v1.54 from v1.51 and things appear to be functioning well, however, every once in a while I am getting a DEBUG log file with the following message:
PHP Warning: strstr(): Empty delimiter in /usr/www/xxx/xxx/xxx/catalog/includes/functions/functions_lookups.php on line 712
Can anyone point me in a direction as to what might be causing this? The site is NOT down for maintenance when this error occurs. We use PayPal Express and Transaction Express for payment modules. The Transaction express module was provided to me directly from Transaction Express and is not available in the ZenCart plugin section here. I also have Local Sales Taxes plugin installed because we are in NY and are required to charge sales tax based on county.
Line 712 is in this section of code (I've put 712 in bold):
Code:* * stop regular behavior based on customer/store settings * Used to disable various activities if store is in an operating mode that should prevent those activities */ function zen_run_normal() { $zc_run = false; switch (true) { case (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])): // down for maintenance not for ADMIN $zc_run = true; break; case (DOWN_FOR_MAINTENANCE == 'true'): // down for maintenance $zc_run = false; break; case (STORE_STATUS >= 1): // showcase no prices $zc_run = false; break; case (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == ''): // customer must be logged in to browse $zc_run = false; break; case (CUSTOMERS_APPROVAL == '2' and $_SESSION['customer_id'] == ''): // show room only // customer may browse but no prices $zc_run = false; break; case (CUSTOMERS_APPROVAL == '3'): // show room only $zc_run = false; break; case (CUSTOMERS_APPROVAL_AUTHORIZATION != '0' and $_SESSION['customer_id'] == ''): // customer must be logged in to browse $zc_run = false; break; case (CUSTOMERS_APPROVAL_AUTHORIZATION != '0' and $_SESSION['customers_authorization'] > '0'): // customer must be logged in to browse $zc_run = false; break; default: // proceed normally $zc_run = true; break; } return $zc_run; }


Reply With Quote

