Jump to content

Recommended Posts

  Bonjour,

  Je suis en train de créer une boutique en ligne, en local, avec la dernière version de Prestashop (mise à jour depuis l' ancienne cette semaine) .

  Je suis en local sous Wamp (version 2.4) .

  Tout fonctionnait correctement, à part une lenteur déjà importante sous Wamp, mais plus prononcée depuis la mise à jour de la nouvelle version de Prestashop (la navigation restant encore possible) .

 

  La boutique était presque fini, j' en étais à supprimer ou configurer les modules du front office pour donner l' apparence voulue, et d' un seul coup, je me suis retrouvé avec une erreur 500 sur toutes les pages de Prestashop.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Je reboot wamp, mon pc, rien n' y fait, je ne comprends pas vraiment ce qui a pu se passer. Je n' ai ce problème qu' avec Prestashop, avec un dotclear qui tourne ou mysqldumper je n' ai pas ce problème.

 

  J' ai activé le rapport d' erreur comme indiqué ici , mais rien d' autre apparait sur la page.

 

  Je lis sur le tuto que je viens de citer :

 

 

Sachez que cette méthode vous permet d’afficher des informations supplémentaires mais ne vous donnera pas d’informations si le problème est lié à PHP.

 

  Donc peut etre que c' est un problème lié à php, mais pourquoi cela apparait d' un seul coup, et que sur Prestashop ?

 

  Voici les logs à l' heure de mon problème :

 

- mysql :

2014-09-06 16:34:50 5084 [Note] Plugin 'FEDERATED' is disabled.
2014-09-06 16:34:50 5084 [Note] InnoDB: The InnoDB memory heap is disabled
2014-09-06 16:34:50 5084 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-09-06 16:34:50 5084 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-09-06 16:34:50 5084 [Note] InnoDB: Not using CPU crc32 instructions
2014-09-06 16:34:50 5084 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-09-06 16:34:50 5084 [Note] InnoDB: Completed initialization of buffer pool
2014-09-06 16:34:50 5084 [Note] InnoDB: Highest supported file format is Barracuda.
2014-09-06 16:34:55 5084 [Note] InnoDB: 128 rollback segment(s) are active.
2014-09-06 16:34:55 5084 [Note] InnoDB: Waiting for purge to start
2014-09-06 16:34:55 5084 [Note] InnoDB: 5.6.12 started; log sequence number 50170993
2014-09-06 16:34:56 5084 [Note] Server hostname (bind-address): '*'; port: 3306
2014-09-06 16:34:56 5084 [Note] IPv6 is available.
2014-09-06 16:34:56 5084 [Note]   - '::' resolves to '::';
2014-09-06 16:34:56 5084 [Note] Server socket created on IP: '::'.
2014-09-06 16:34:57 5084 [Note] Event Scheduler: Loaded 0 events
2014-09-06 16:34:57 5084 [Note] wampmysqld: ready for connections.
Version: '5.6.12-log'  socket: ''  port: 3306  MySQL Community Server (GPL)
2014-09-06 17:09:16 5084 [Note] wampmysqld: Normal shutdown

  Apache, c' est déjà plus intéressant, mais je ne vois pas comment je peux améliorer mon problème :

[Sat Sep 06 16:35:24.685255 2014] [core:alert] [pid 4156:tid 1648] [client ::1:49271] C:/wamp/www/prestashop/prestashop/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Sep 06 16:36:40.856753 2014] [core:alert] [pid 4156:tid 1648] [client ::1:49286] C:/wamp/www/prestashop/prestashop/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Sep 06 16:37:02.227208 2014] [core:alert] [pid 4156:tid 1628] [client ::1:49315] C:/wamp/www/prestashop/prestashop/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Sep 06 16:37:17.539670 2014] [core:alert] [pid 4156:tid 1648] [client ::1:49346] C:/wamp/www/prestashop/prestashop/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Sep 06 16:43:52.445371 2014] [:error] [pid 4156:tid 1628] [client ::1:49368] PHP Fatal error:  Maximum execution time of 300 seconds exceeded in C:\\wamp\\www\\dump\\msd1.24.4\\inc\\mysql.php on line 408, referer: http://localhost/dump/msd1.24.4/filemanagement.php?action=dump&kind=0
[Sat Sep 06 16:43:52.445371 2014] [:error] [pid 4156:tid 1628] [client ::1:49368] PHP Stack trace:, referer: http://localhost/dump/msd1.24.4/filemanagement.php?action=dump&kind=0
[Sat Sep 06 16:43:52.445371 2014] [:error] [pid 4156:tid 1628] [client ::1:49368] PHP   1. {main}() C:\\wamp\\www\\dump\\msd1.24.4\\dump.php:0, referer: http://localhost/dump/msd1.24.4/filemanagement.php?action=dump&kind=0
[Sat Sep 06 16:43:52.445371 2014] [:error] [pid 4156:tid 1628] [client ::1:49368] PHP   2. getDBInfos() C:\\wamp\\www\\dump\\msd1.24.4\\dump.php:119, referer: http://localhost/dump/msd1.24.4/filemanagement.php?action=dump&kind=0
[Sat Sep 06 16:47:40.227273 2014] [core:alert] [pid 4156:tid 1628] [client ::1:49639] C:/wamp/www/prestashop/prestashop/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Sep 06 16:47:56.524539 2014] [core:alert] [pid 4156:tid 1628] [client ::1:49645] C:/wamp/www/prestashop/prestashop/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

  Mon htaccess de Prestashop puiqu' on en parle dans le log du dessus :



  Par contre, pas de logs php dans wamp, j' ai beau le chercher, et quand je vais dans la rubrique dédiée, et que je clique dessus, on me dit que le fichier n' existe pas, on me propose de le créer, ce que je fais.

 

  Voila, je suis bien embété moi ! Et je ne vois pas du tout ce qui a pu se passer.

 

  Merci d' avance pour votre aide, bonne journée.

 

  Edit : je me souviens juste avant d' avoir mis à jour un module, un seul était à updater, mais je ne me souviens plus lequel, cela ressemble un peu à ce problème

Edited by ungars (see edit history)
Link to comment
Share on other sites

  Bonjour, merci de ta réponse.

  Comme je l' avais indiqué dans mon premier post, j' ai tenté déjà cette opération, mais je n' ai rien d' autre que mon message d' erreur 500

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

  Il est marqué aussi que si c' était un problème php, on ne pouvait pas le détécter de cette manière.

 

  Je ne sais pas ce qui a posé ce problème d' un seul coup, je soupçonne un problème avec un module, j' étais en train de les mettre à jour et en rajouter, mais je ne me souviens plus desquels. Entre temps j' ai réinstallé Prestashop deux fois, dont une fois sur Wamp, mis à jour les modules, mais je n' ai pas eu ce message d' erreur.

 

  Dans les logs d' apache (voir mon premier post) il me parle d' un problème avec mon fichier htaccess, ce qui pourrait correspondre avec une erreur 500, mais pourquoi avant je n' ai pas été embété ?

  Bonne soirée, et merci pour ton aide.

 

  Edit : C' était bien un problème avec mon fichier htaccess. J' ai remplacé celui de mon site qui posait problème par celui d' une installation fraiche, et c' est reparti.

  Mais j' aimerai savoir pourquoi il y a eu un problème. Voici le htaccess malade :

 ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on
RewriteRule . - [E=REWRITEBASE:/prestashop/prestashop/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff

#If rewrite mod isn't enabled
ErrorDocument 404 /prestashop/prestashop/index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# start ~ module watermark section
Options +FollowSymLinks
RewriteEngine On

RewriteRule [0-9/]+/[0-9]+\.jpg$ - [F]
# end ~ module watermark section


  Et voici celui que j' ai remis, et qui fonctionne :

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on
RewriteRule . - [E=REWRITEBASE:/prestashop/prestashop/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff

#If rewrite mod isn't enabled
ErrorDocument 404 /prestashop/prestashop/index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

  On voit qu' il manque des choses, sur le fichier malade...

  Qu' a t' il bien pu se passer ? Pourquoi le htaccess s' est modifié ?

 

  Merci, bonne soirée / journée.

Edited by ungars (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...