Sgarbo Posted December 2, 2020 Share Posted December 2, 2020 Hello! as the title suggests, I have a problem that I cannot solve in any way. Many have problems with the reset but usually the problem I found in the forum is related to the link (not present in the mail or with a too short expiration). In my case the problem is elsewhere but I can't find it ... In short, the email is sent correctly. The link is there and it works. You get to the page where you can enter the new password. I insert it and ... nothing. It is as if the password were not changed in the database. It always remained the old one. I don't know if it has anything to do with it (I don't think so): I tried to activate debug mode before clicking on the "confirm" button to change the password. The only error detected is this (but I get this error even when I open any category): ContextErrorException Notice: Undefined offset: 0 in ProductPresenter.php line 565 public function addAttributesSpecificReferences(array $product, array $presentedProduct) { $presentedProduct['specific_references'] = array_slice($product['attributes'], 0)[0]; //this attributes should not be displayed in FO unset( $presentedProduct['specific_references']['id_attribute'], $presentedProduct['specific_references']['id_attribute_group'], $presentedProduct['specific_references']['name'], $presentedProduct['specific_references']['group'], $presentedProduct['specific_references']['reference'] ); //if the attribute's references doesn't exist then get the product's references or unset it foreach ($presentedProduct['specific_references'] as $key => $value) { if (empty($value)) { $translatedKey = $this->getTranslatedKey($key); unset($presentedProduct['specific_references'][$key]); if (!empty($product[$key])) { $presentedProduct['specific_references'][$translatedKey] = $product[$key]; } } } if (empty($presentedProduct['specific_references'])) { unset($presentedProduct['specific_references']); } return $presentedProduct; } Cosa posso fare?? 🤕 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now