huduyudesign Posted November 14, 2014 Share Posted November 14, 2014 Hoping someone can help. Cart has suddenly started throwing errors when customer tries to do Guest Check Out or even when you try to create account. There are 12 errors company is required. vat_number is required. address (2) is required. other is required. phone is required. dni is required. The company field is required. The vat_number field is required. The address (2) field is required. The other field is required. The phone field is required. The dni field is required. url is adogstore.com PrestaShop™ 1.5.4.1 Have not made any changes in files since launch in 2013. Only recent difference is hosting provider did update or moved servers few weeks back which shut down site for a bit. Any help would be appreciated, been searching files but cannot find answer. Link to comment Share on other sites More sharing options...
tuk66 Posted November 14, 2014 Share Posted November 14, 2014 Do you have patched Address.php file or used any module which can cause it? Normally company, vat_number, .... fields are not required 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_manufacturer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId'), 'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128), 'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'size' => 128), 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), 'city' => array('type' => self::TYPE_STRING, 'validate' => 'isCityName', 'required' => true, 'size' => 64), 'other' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage', 'size' => 300), 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'phone_mobile' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isDniLite', 'size' => 16), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), ), Link to comment Share on other sites More sharing options...
huduyudesign Posted November 14, 2014 Author Share Posted November 14, 2014 I don't recall ever editing or patching address.php. As for modules, have been looking at them but not figuring anything out. Vat module is not installed. The errors that are showing up are for fields set to not required if that helps. Link to comment Share on other sites More sharing options...
tuk66 Posted November 14, 2014 Share Posted November 14, 2014 I'm just thinking why PrestaShop validate the new address that way. When there is no required = true option in 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), Link to comment Share on other sites More sharing options...
huduyudesign Posted November 14, 2014 Author Share Posted November 14, 2014 appreciate your trying to help. I'm stumped though. Do not know how to fix. Link to comment Share on other sites More sharing options...
Recommended Posts