Okay
  Public Ticket #1338027
JS error in registration form
Closed

Comments

  • saad alhokail started the conversation

    Hi,

    when i try to register as customer it redirect me to the same page[register form] without any error and not created a new account for me.after debuging via chrom console  i found a js error in the password validation .

    please help us asap.

  • [deleted] replied

    Hello,

    Thanks for your feedback, I have attached a patch for you, please upload it to app\design\frontend\Mgs\mgsblank\Magento_Customer\templates\form\ folder then refresh cache and try again

  • saad alhokail replied

    Hi,

    it works now,but i think you disable the live validation?

    also, we have a new error now after this change,i can't save customer data in backend and it show me this error:

    "Something went wrong while saving the customer."

    and system.log:

    [2017-10-18 19:39:49] main.CRITICAL: Exception message: Warning: A non-numeric value encountered in /home/www/bqqb/data/www/bqqb.com/vendor/magento/zendframework1/library/Zend/Locale/Math/PhpMath.php on line 94
    Trace: #0 /home/www/bqqb/data/www/bqqb.com/vendor/magento/zendframework1/library/Zend/Locale/Math/PhpMath.php(94): Magento\Framework\App\ErrorHandler->handler(2, 'A non-numeric v...', '/home/www/bqqb/...', 94, Array)
    #1 /home/www/bqqb/data/www/bqqb.com/vendor/magento/zendframework1/library/Zend/Locale/Format.php(385): Zend_Locale_Math_PhpMath::Sub('0', '', 0)
    #2 /home/www/bqqb/data/www/bqqb.com/vendor/magento/zendframework1/library/Zend/Locale/Format.php(662): Zend_Locale_Format::toNumber('', Array)
    #3 /home/www/bqqb/data/www/bqqb.com/vendor/magento/zendframework1/library/Zend/Filter/NormalizedToLocalized.php(106): Zend_Locale_Format::toFloat('', Array)
    #4 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Data/Form/Filter/Date.php(65): Zend_Filter_NormalizedToLocalized->filter('')
    #5 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php(196): Magento\Framework\Data\Form\Filter\Date->inputFilter('')
    #6 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-customer/Model/Metadata/Form/Date.php(20): Magento\Customer\Model\Metadata\Form\AbstractData->_applyInputFilter('')
    #7 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-customer/Model/Metadata/Form.php(242): Magento\Customer\Model\Metadata\Form\Date->extractValue(Object(Magento\Framework\App\Request\Http))
    #8 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php(74): Magento\Customer\Model\Metadata\Form->extractData(Object(Magento\Framework\App\Request\Http), 'customer')
    #9 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php(44): Magento\Customer\Controller\Adminhtml\Index\Save->_extractData('adminhtml_custo...', 'customer', Array, 'customer')
    #10 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php(186): Magento\Customer\Controller\Adminhtml\Index\Save->_extractCustomerData()
    #11 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/App/Action/Action.php(107): Magento\Customer\Controller\Adminhtml\Index\Save->execute()
    #12 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-backend/App/AbstractAction.php(229): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
    #13 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
    #14 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Controller\Adminhtml\Index\Save\Interceptor->___callParent('dispatch', Array)
    #15 /home/www/bqqb/data/www/bqqb.com/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Customer\Controller\Adminhtml\Index\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
    #16 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Customer\Controller\Adminhtml\Index\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
    #17 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Controller\Adminhtml\Index\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
    #18 /home/www/bqqb/data/www/bqqb.com/generated/code/Magento/Customer/Controller/Adminhtml/Index/Save/Interceptor.php(26): Magento\Customer\Controller\Adminhtml\Index\Save\Interceptor->___callPlugins('dispatch', Array, NULL)
    #19 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/App/FrontController.php(55): Magento\Customer\Controller\Adminhtml\Index\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
    #20 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
    #21 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
    #22 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
    #23 /home/www/bqqb/data/www/bqqb.com/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
    #24 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
    #25 /home/www/bqqb/data/www/bqqb.com/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
    #26 /home/www/bqqb/data/www/bqqb.com/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
    #27 {main} [] []

  • [deleted] replied

    Hello,

    Thanks for your feedback, can you please provide your site info ( site url, admin account and ssh account ) I will check for you

  •   saad alhokail replied privately
  •   saad alhokail replied privately
  • [deleted] replied

    Hello, 

    Sorry about this delay...

    I tried, but i didn't find error. This error isn't form my theme, please download  latest version of my theme on  Envato and reinstall. I will check again for you

    Best regards,

  • saad alhokail replied

    Hi,

    i believe is from your theme because i trid to install the last updated version into a stock magento 2.2 and it have the same issue,also i have used the quick start package that you provided in the last theme version and have the same issue even old issues like register form validation it returns again.

    stock magento 2.2 don't have these issues and it show up only when i install your theme.

    until now i can't use your theme,so we need a solution to this situation.

  • [deleted] replied

    Hello,

    We are checking on your site right now, we will try to update you asap when done.

    Best regards!

  • [deleted] replied

    Hi,

    Did you tried to test this issue on blank magento 2.2.0 ?

    Seem this is bug of php 7.1.

    Best regards

  • saad alhokail replied

    okay,so which version is stable and can work with your theme and php 7.1

  • [deleted] replied

    Hi, 

    You can install my theme on magento 2.1.This is stable version of magento

    Best regards!