Boubou83 Posted October 20, 2016 Share Posted October 20, 2016 Bonjour, J'ai des erreurs sur mon site. Pouvez-vous m'aiguiller svp ? 1) Toutes les pages présentent une erreur 404 ==> Not FoundThe requested URL /12-raquettes was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Ex : https://www.generationbad.com/12-raquettes 2) Lorsque j'accède au back office, j'ai un affichage bizarre (voir pièce jointe). 3) Lorsque je me connecte au BO, une erreur s'affiche (500), et dans le error_log du dossier admin, on peut voir l'erreur : PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /home/xxx/public_html/classes/db/DbPDO.php on line 91. Pourtant, j'ai bien 256M de memory_limit.Du coup impossible pour moi de me connecter au BO pour mettre en maintenance le site. Merci beaucoup pour votre aide. Link to comment Share on other sites More sharing options...
doekia Posted October 20, 2016 Share Posted October 20, 2016 Augmente encore le memory_limit - jusque 1.5G cela peut-être normal selon ton catalogue. Si ça persiste alors le problème est ailleurs. Peut-être une inconsistance dans ton arbre de categories (boucle infinies) Quelle version exacte de Prestashop ? Link to comment Share on other sites More sharing options...
Boubou83 Posted October 20, 2016 Author Share Posted October 20, 2016 La version est 1.6.0.9. Link to comment Share on other sites More sharing options...
doekia Posted October 20, 2016 Share Posted October 20, 2016 (edited) Scrute ta tables catégories avec ce type de requête: select c.id_category as id, _cl.id_shop, group_concat(_cl.name order by _c.nleft separator '/') as tree, c.level_depth, c.id_parent from `ps_category` `c` inner join `ps_category_shop` cs on cs.id_category = c.id_category inner join `ps_category` `_c` on c.`nleft` between `_c`.`nleft` and `_c`.`nright` left join `ps_category_lang` `_cl` on `_cl`.`id_category` = `_c`.`id_category` and `_cl`.id_shop = cs.id_shop and `_cl`.`id_lang` = 1 where 1 and c.id_category > 0 and _c.id_category > 0 and cs.id_shop = 1 group by `c`.`id_category`, `_cl`.`id_shop` order by `c`.`nleft` Si il y a là une inconsistance, elle devrait te sauter aux yeux, (genre level_depth 255, ou parent inapproprié) Edited October 20, 2016 by doekia (see edit history) Link to comment Share on other sites More sharing options...
Boubou83 Posted October 20, 2016 Author Share Posted October 20, 2016 J'ai désactivé la réécriture des URL dans Préférences -> SEO & URLS. Il se trouve que le site fonctionne de nouveau. Dans le htaccess il y a : #If rewrite mod isn't enabledErrorDocument 404 /index.php?controller=404 Du coup je ne vois pas trop... Link to comment Share on other sites More sharing options...
doekia Posted October 20, 2016 Share Posted October 20, 2016 Ton hébergement n'a pas le module rewrite activé ? https://www.generationbad.com/index.php?id_category=12&controller=category s'affiche en tout cas Link to comment Share on other sites More sharing options...
Boubou83 Posted October 20, 2016 Author Share Posted October 20, 2016 Oui aucun changement de ce point de vue. Il a toujours le module rewrite activé. Oui cela s'affiche mais sans réécrire l'URL. C'est dans prestashop, si j'active l'URL rewrite, j'ai l'erreur 404. Link to comment Share on other sites More sharing options...
doekia Posted October 20, 2016 Share Posted October 20, 2016 PM moi pour regarder de plus plrès 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