Panther.software Posted January 12, 2019 Share Posted January 12, 2019 Hello, after upgrading from 1.6 to 1.7 whenever I tried to edit product all I get is Exception Page: Quote (1/1) OutOfMemoryException Error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1073741832 bytes) in CategoryDataProvider.php line 206 1GB is allocated to this vHost so it's not possible that is too low, I tried with 2GB - same things. Categories count: 232 Please let me know if you can help me. Link to comment Share on other sites More sharing options...
PatriciaDC Posted April 15, 2019 Share Posted April 15, 2019 Hello, I am getting the same error, have you solved it? Thank you! Link to comment Share on other sites More sharing options...
cyssoo Posted May 3, 2019 Share Posted May 3, 2019 Hello, Edit file CategoryDataProvider.php and try to change getBreadCrumb method to this : /** * Construct the breadcrumb using the already constructed list of all categories. * * @param int $categoryId * @param string $delimiter * * @return string */ public function getBreadCrumb($categoryId, $delimiter = ' > ') { return false; $categories = $this->getParentNamesFromList($categoryId); $categories = array_reverse($categories, true); return implode($delimiter, $categories); } Link to comment Share on other sites More sharing options...
MyDesignAr Posted May 3, 2019 Share Posted May 3, 2019 11 hours ago, cyssoo said: Hello, Edit file CategoryDataProvider.php and try to change getBreadCrumb method to this : /** * Construct the breadcrumb using the already constructed list of all categories. * * @param int $categoryId * @param string $delimiter * * @return string */ public function getBreadCrumb($categoryId, $delimiter = ' > ') { return false; $categories = $this->getParentNamesFromList($categoryId); $categories = array_reverse($categories, true); return implode($delimiter, $categories); } Hi, i have the same error. i made this and i get a FatalThrowableError: DebugClassLoader->loadClass('PrestaShop\\PrestaShop\\Adapter\\Category\\CategoryDataProvider') Link to comment Share on other sites More sharing options...
cyssoo Posted May 4, 2019 Share Posted May 4, 2019 12 hours ago, MyDesignAr said: i get a FatalThrowableError Hello, would it be possible to know what version of Prestashop you use ? It worked for me on 1.7.5.1. Versions below 1.7.5.0 are unstable Link to comment Share on other sites More sharing options...
MyDesignAr Posted May 4, 2019 Share Posted May 4, 2019 12 hours ago, cyssoo said: Hello, would it be possible to know what version of Prestashop you use ? It worked for me on 1.7.5.1. Versions below 1.7.5.0 are unstable i'm using 1.7.5.2 Link to comment Share on other sites More sharing options...
MyDesignAr Posted May 4, 2019 Share Posted May 4, 2019 i have this into the LOG: CRITICAL19:43:11 php Parse error: syntax error, unexpected '$categories' (T_VARIABLE) Link to comment Share on other sites More sharing options...
cyssoo Posted May 7, 2019 Share Posted May 7, 2019 On 5/5/2019 at 12:45 AM, MyDesignAr said: Parse error Seems that problem is different. Worked for me on PS 1.7.5.0 up to 1.7.5.2 (tried today) Link to comment Share on other sites More sharing options...
MyDesignAr Posted May 21, 2020 Share Posted May 21, 2020 This works for me in prestashop 1.7.6.5 On 5/3/2019 at 8:02 AM, cyssoo said: Hello, Edit file CategoryDataProvider.php and try to change getBreadCrumb method to this : /** * Construct the breadcrumb using the already constructed list of all categories. * * @param int $categoryId * @param string $delimiter * * @return string */ public function getBreadCrumb($categoryId, $delimiter = ' > ') { return false; $categories = $this->getParentNamesFromList($categoryId); $categories = array_reverse($categories, true); return implode($delimiter, $categories); } Link to comment Share on other sites More sharing options...
mauro.c Posted October 30, 2020 Share Posted October 30, 2020 On 5/3/2019 at 1:02 PM, cyssoo said: Hello, this worked for me tto in PS 1.7.5.0 Many thank to cyssoo for this solution. /** * Construct the breadcrumb using the already constructed list of all categories. * * @param int $categoryId * @param string $delimiter * * @return string */ public function getBreadCrumb($categoryId, $delimiter = ' > ') { return false; $categories = $this->getParentNamesFromList($categoryId); $categories = array_reverse($categories, true); return implode($delimiter, $categories); } Link to comment Share on other sites More sharing options...
Hugh1975 Posted January 8, 2021 Share Posted January 8, 2021 I have the same error. I applied the correction here but it did not work. Do I have to do something after modifying the code? I have about 600 categories. Do I have to delete the categories and create them again after modifying the code? Any more ideas? Prestashop versione 1.7.6.5 Cuando activo el modo de depuración, obtengo esto cuando intento modificar un producto (1/1) OutOfMemoryException Error: memoria insuficiente (asignada 703070208) (intentado asignar 20480 bytes) en FormDataExtractor.php línea 55 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