ZC: v1.5.7b
PHP: 7.4.15
Mods:
- edit_orders-4.5.5
- catalog_invoice
- ip_blocker-2.2.0
- sales_report-3.4.0
- quantity_discounts
In logs this appeared when I logged in with my test-account:
I took the advice from DrByte from post #2 in A non-numeric value encountered in shopping_cart.php and adjusted it to the line.Code:[23-Feb-2021 12:58:07 Europe] Request URI: /index.php?main_page=login, IP address: *.*.*.* #1 zen_set_field_length() called at [/data/sites/web/your_site/www/includes/templates/template_default/templates/tpl_modules_create_account.php:142] #2 require(/data/sites/web/your_site/www/includes/templates/template_default/templates/tpl_modules_create_account.php) called at [/data/sites/web/your_site/www/includes/templates/template_default/templates/tpl_login_default.php:90] #3 require(/data/sites/web/your_site/www/includes/templates/template_default/templates/tpl_login_default.php) called at [/data/sites/web/your_site/www/includes/templates/responsive_classic/common/tpl_main_page.php:178] #4 require(/data/sites/web/your_site/www/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/data/sites/web/your_site/www/index.php:94] --> PHP Warning: A non-numeric value encountered in /data/sites/web/your_site/www/includes/functions/functions_general.php on line 746.
Location of the adjustment in includes/functions/functions_general.php.
When I try to log in as a customer, on the login page in the new account field:PHP Code:
$length = 'size="' . ($field_length + 1) . '" maxlength="' . $field_length . '"'; //Line 746
// To find out what goes wrong
if (!is_numeric($length)) { var_dump($length); die(); } //Only this line added
break;
}
return $length;
First Name:string(24) "size="33" maxlength="32""
I couldn't a solution. Than I change the varchar in the database from 32 to 34 for the column "customer_firstname"
Result: both number went up: size and maxlength.
Is ip_blocker-2.2.0 maybe to blame? That's the last add-on.
Bookmarks