I've just upgraded a Magento site from 1.5.x to 1.9.3.5. Now, all my customer-related forms are failing form validation. For example, I can fully fill out my one-page-checkout Billing Address form, but I get the following error message:
Please enter the first name. Please enter the last name. Please enter the street. Please enter the city. Please enter the telephone number. Please enter the zip/postal code. Please enter the country. I've added a bunch of log statements to the core Magento code so I can see what the hell is going on. I've ruled out the common form_key issue-- it's passing that validation test-- and everything seems to work until saveBilling() in Onepage.php. I can see that the POST request to the server contains the address information, but I can't see much beyond that as the Magento function documentation is terrible and dumping the $address object to log results in a 10,000+ line dump that I have no hope of successfully searching through.
I know it's failing on line ~325 in Onepage.php, specifically these lines of code:
// validate billing address if (($validateRes = $address->validate()) !== true) { return array('error' => 1, 'message' => $validateRes); } It is always returning the error message. Help!