-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[php8.1 M2.4.5-p1 CE] ValueError: bcsub(): Argument #1 ($num1) is not well-formed in #36883
Comments
Hi @jayantakr1. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Dash. Thank you for working on this issue.
|
Hi @jayantakr1 , Verified the issue in 2.4-develop instance,But we are not able to reproduce the issue. Preconditions: Steps to reproduce: Customer saved successfully with out issue. Thanks. |
Hi @engcom-November. Thank you for working on this issue.
|
Hi @jayantakr1 , We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this. Thanks. |
I may have a clue how to reproduce, it is to setup the store-view with another locale than US. I'm using Korean and I get the same result as @jayantakr1 , because this function in Customer/Model/Metadata/Form/AbstractData.php
returns the format "yy. M. d." which is used later on with the filter, and it is messing up with the function bcsub |
I am getting this error as well Adobe Commerce ver. 2.4.5 Steps to re-produce [2023-09-22T15:09:28.747977+00:00] report.CRITICAL: ValueError: bcsub(): Argument #1 ($num1) is not well-formed in /chroot/local/HIDDEN/HIDDEN.com/current/vendor/magento/zendframework1/library/Zend/Locale/Math.php:259 |
We have the same issue but we have this because we use a specific date notation on our other languages and have this in the template. This causes an issue with DOBs in the template that uses the en_us locale |
Preconditions and environment
[2023-02-17T20:16:33.436118+00:00] main.CRITICAL: ValueError: bcsub(): Argument #1 ($num1) is not well-formed in /var/www/html/vendor/magento/zendframework1/library/Zend/Locale/Math.php:259
Stack trace:
#0 /var/www/html/vendor/magento/zendframework1/library/Zend/Locale/Math.php(259): bcsub('2021-08-23 00:0...', '2021-08-23 00:0...', 0)
#1 /var/www/html/vendor/magento/zendframework1/library/Zend/Locale/Format.php(385): Zend_Locale_Math::Sub('2021-08-23 00:0...', '2021-08-23 00:0...', 0)
#2 /var/www/html/vendor/magento/zendframework1/library/Zend/Locale/Format.php(662): Zend_Locale_Format::toNumber('2021-08-23 00:0...', Array)
#3 /var/www/html/vendor/magento/zendframework1/library/Zend/Filter/NormalizedToLocalized.php(106): Zend_Locale_Format::toFloat('2021-08-23 00:0...', Array)
#4 /var/www/html/vendor/magento/framework/Data/Form/Filter/Date.php(69): Zend_Filter_NormalizedToLocalized->filter('2021-08-23 00:0...')
#5 /var/www/html/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php(197): Magento\Framework\Data\Form\Filter\Date->inputFilter('2021-08-23 00:0...')
#6 /var/www/html/vendor/magento/module-customer/Model/Metadata/Form/Date.php(20): Magento\Customer\Model\Metadata\Form\AbstractData->_applyInputFilter('2021-08-23 00:0...')
#7 /var/www/html/vendor/magento/module-customer/Model/Metadata/Form.php(244): Magento\Customer\Model\Metadata\Form\Date->extractValue(Object(Magento\Framework\App\Request\Http))
#8 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\Metadata\Form->extractData(Object(Magento\Framework\App\Request\Http), 'customer')
#9 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\Metadata\Form\Interceptor->___callParent('extractData', Array)
#10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\Metadata\Form\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http), 'customer')
#11 /var/www/html/generated/code/Magento/Customer/Model/Metadata/Form/Interceptor.php(41): Magento\Customer\Model\Metadata\Form\Interceptor->___callPlugins('extractData', Array, Array)
#12 /var/www/html/vendor/magento/module-customer/Controller/Adminhtml/Index/Validate.php(42): Magento\Customer\Model\Metadata\Form\Interceptor->extractData(Object(Magento\Framework\App\Request\Http), 'customer')
#13 /var/www/html/vendor/magento/module-customer/Controller/Adminhtml/Index/Validate.php(88): Magento\Customer\Controller\Adminhtml\Index\Validate->_validateCustomer(Object(Magento\Framework\DataObject))
#14 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Controller\Adminhtml\Index\Validate->execute()
#15 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->___callParent('execute', Array)
#16 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->Magento\Framework\Interception{closure}()
#17 /var/www/html/generated/code/Magento/Customer/Controller/Adminhtml/Index/Validate/Interceptor.php(23): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->___callPlugins('execute', Array, Array)
#18 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->execute()
#19 /var/www/html/vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#20 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#21 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->___callParent('dispatch', Array)
#22 /var/www/html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#25 /var/www/html/generated/code/Magento/Customer/Controller/Adminhtml/Index/Validate/Interceptor.php(32): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->___callPlugins('dispatch', Array, Array)
#26 /var/www/html/vendor/magento/framework/App/FrontController.php(245): Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#27 /var/www/html/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse(Object(Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor), Object(Magento\Framework\App\Request\Http))
#28 /var/www/html/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Magento\Customer\Controller\Adminhtml\Index\Validate\Interceptor))
#29 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#30 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#31 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#32 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#33 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#34 /var/www/html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#35 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
Steps to reproduce
Expected result
It's should be success.
Actual result
customer not save
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: