Magento Expert Forum - Improve your Magento experience

Results 1 to 8 of 8

The first name cannot be empty., The last name cannot be empty., Invalid email addres

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default The first name cannot be empty., The last name cannot be empty., Invalid email addres

    Hello there,

    In checkout process when I select either "Checkout as a guest" and then fill out the proper form, clicking on the button to go to the next step generates error. This is what the exception is caught:

    {"error":-1,"message":"The first name cannot be empty., The last name cannot be empty., Invalid email address \"\"."}

    Can anyone please give me some solution for this issue? Why Magento is giving this error when all the fields are properly filled up?

    Best Regards,
    SteveAttachment 520Attachment 520

    View more threads in the same category:

    Attached Images Attached Images  

  2. #2
    Moderator shunavi's Avatar
    Join Date
    Mar 2013
    Posts
    124
    Thanks
    9
    Thanked 26 Times in 17 Posts

    Default

    Magento can't work wrong like this, did you install any other custom extension what effect on checkout process?

  3. #3
    Junior Member
    Join Date
    Jun 2014
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Hello Shunavi,

    thank you for reply.
    I tried to disable all extension except core, like everything with prefix Mage_ (Mage_Core, etc). So I think, that this could not do any installed extension drom my side.

    In var/log, there is no file displaying this error.

    Steve

  4. #4
    Moderator shunavi's Avatar
    Join Date
    Mar 2013
    Posts
    124
    Thanks
    9
    Thanked 26 Times in 17 Posts

    Default

    You need to check the error in var/report. Please tell me here if you see any report there

  5. The Following User Says Thank You to shunavi For This Useful Post:

    yoligrana (14-08-2014)

  6. #5
    Junior Member rocker's Avatar
    Join Date
    Mar 2013
    Posts
    105
    Thanks
    3
    Thanked 11 Times in 9 Posts

    Default

    do you install magento in your local computer or on web hosting? If you install on your local computer then many reasons can come from domain name so that let create a domain for it on your computer like myshop.com

  7. #6
    Junior Member
    Join Date
    Jun 2014
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Hello readers,

    I dont know why, but validation function not working for me in Magento.
    But I found out this:

    In:
    ..../app/code/core/Mage/Customer/Model/Customer.php

    I find and hash this (normally is without comment stars):
    /**
    * $errors = array();
    * if (!Zend_Validate::is( trim($this->getFirstname()) , 'NotEmpty')) {
    * $errors[] = Mage::helper('customer')->__('The first name cannot be empty.');
    * }
    *
    * if (!Zend_Validate::is( trim($this->getLastname()) , 'NotEmpty')) {
    * $errors[] = Mage::helper('customer')->__('The last name cannot be empty.');
    * }
    *
    * if (!Zend_Validate::is($this->getEmail(), 'EmailAddress')) {
    * $errors[] = Mage::helper('customer')->__('Invalid email address "%s".', $this->getEmail());
    * }
    *
    */

    After I comment this validation, then Checkout page is working fine. No pop-up sceen is displaying.
    And Requirements fields working too, like first name, last name, etc.
    So this is resuliton for me.

    Best Regards,
    Steve

  8. The Following User Says Thank You to stevecz For This Useful Post:

    yoligrana (14-08-2014)

  9. #7
    New member yoligrana's Avatar
    Join Date
    Jul 2014
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hello, I have exactly the same error, I hope someone can help me to find why the validation for these fields is not working!
    The "solution" stevecz commented before, means the fields will not be validated, is that a proper solution?

    Best Regards,
    Yolanda

  10. #8
    Junior Member ToBai's Avatar
    Join Date
    Sep 2014
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Solution provided by stevecz is not very good. There is no errors messages anymore -that is good, but there is no errors messages even if the errors are really there - it is bad.

    Such kind of problems usually appear with installation of some new extensions, themes or when some default magento files were edited. If it is possible you should load all magento files in a folder with magento, flush your cache and check if the problem remains.

    If nothing helps you can contact us at our support page - http://www.to-bai.com/support/. We would be glad to help you with an advice or we can provide you our paid custom work - http://www.to-bai.com/services/custom-work.html

    ------------------------------------------
    ToBai Magento Extensions. - only best coding practice developing our applications. Our extensions:

    ToBai Extended Navigation, ToBai Extended Brand.

Tags for this Thread

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
  •