Bonjour,
Depuis le 26/01 je rencontre un problème d'erreur 500 sur mon site https://theperfectstroke.fr que je ne comprends pas.
Il est advenu alors que j'étais en train d'écrire un article. J'ai eu une erreur JSON et puis plus rien : le site est passé en erreur 500 et depuis, impossible de m'y reconnecter (y compris dans l'admin)
En cherchant, je suis tombé sur cette page https://framagit.org/sdeb/web/-/wikis/wordPress_erreur_500 et j'ai essayé les solutions suivantes sans succès :
- renommer .htaccess et .htaccess.old dans www
- renommer plugins en plugins-old dans wp-content
- ajouter define('WP_SITEURL','http://exemple.fr'); et define('WP_HOME','http://exemple.fr'); dans wp-config.php
Je n'ai pas testé toutes les solutions proposées je ne comprends pas ce que je dois faire pour certaines et j'ai peur de faire plus de dégats qu'autre chose.
Quand je regarde les logs OVH, pour la section web, je constate que l'erreur 500 arrive bien le 26/01 à 18h29 :
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:02 +0100] "POST /wp-admin/admin-ajax.php HTTP/1.1" 500 - "https://theperfectstroke.fr/wp-admin/post.php?post=3329&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:03 +0100] "POST /wp-json/wp/v2/posts/3329/autosaves?_locale=user HTTP/1.1" 500 - "https://theperfectstroke.fr/wp-admin/post.php?post=3329&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:11 +0100] "POST /wp-json/wp/v2/posts/3329?_locale=user HTTP/1.1" 500 - "https://theperfectstroke.fr/wp-admin/post.php?post=3329&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:11 +0100] "POST /wp-admin/post.php?post=3329&action=edit&meta-box-loader=1&meta-box-loader-nonce=eef23ece12&_locale=user HTTP/1.1" 500 - "https://theperfectstroke.fr/wp-admin/post.php?post=3329&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:31 +0100] "HEAD /wp-content/uploads/2021/01/mc-dermott-iPro.gif HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:76.0) Gecko/20100101 Firefox/76.0"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:31 +0100] "HEAD /wp-content/uploads/2021/01/predator-revo-inside.jpg HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:76.0) Gecko/20100101 Firefox/76.0"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:33 +0100] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:76.0) Gecko/20100101 Firefox/76.0"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:33 +0100] "GET / HTTP/1.1" 500 - "https://theperfectstroke.fr/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:76.0) Gecko/20100101 Firefox/76.0"
> 5.49.65.168 theperfectstroke.fr - [26/Jan/2021:18:29:54 +0100] "POST /wp-admin/admin-ajax.php HTTP/1.1" 500 - "https://theperfectstroke.fr/wp-admin/post.php?post=3329&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
et tout le reste du log est identique, en erreur 500…
En désespoir de cause, j'ai aussi regardé dans l'admin OVH où je me suis aperçu que la version de PHP indiqué dans ovhconfig ne correspondait pas à celle de l'admin. Mon ovhconfig contenait les lignes suivantes :
> app.engine=php
> app.engine.version=7.4
> http.firewall=none
> environment=production
> container.image=stable64
J'ai corrigé ovhconfig qui pour mettre désormais les lignes suivantes :
> app.engine=php
> app.engine.version=7.3
> http.firewall=none
> environment=production
> container.image=stable
Mais cela n'a rien changé.
Je sais que ce sujet a été régulièrement traité (j'ai déjà longuement cherché mais sans trouver une solution) mais je suis franchement désespéré.
Au secours.
Quand je regarde les logs OVH, pour la section web,
1) il y a aussi une section "erreurs"
2) aurais-tu modifié ton .htaccess ?
3) est-ce que la base de données serait pleine ?
Bonjour,<br /><br />Merci de ton retour !<br /><br />1) dans la section erreur du log, je trouve les éléments suivants pour la journée du 26/01 :<br /><br /> > [Tue Jan 26 05:55:41 2021] [error] [client 34.220.154.59] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 14:15:39 2021] [error] [client 18.236.179.220] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 14:15:41 2021] [error] [client 18.236.179.220] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 14:15:46 2021] [error] [client 18.236.179.220] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 15:50:02 2021] [error] [client 5.157.43.215] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 15:50:04 2021] [error] [client 5.157.43.215] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 17:24:42 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated)., referer: https://theperfectstroke.fr/wp-admin/post.php?post=3329&action=edit<br /> > [Tue Jan 26 18:29:33 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:29:33 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated)., referer: https://theperfectstroke.fr/<br /> > [Tue Jan 26 18:32:10 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:32:14 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:33:25 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated)., referer: https://theperfectstroke.fr/conseils/<br /> > [Tue Jan 26 18:33:31 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:35:54 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:35:55 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:35:56 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:35:57 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:35:58 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:35:59 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:36:00 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:36:00 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:36:01 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:36:01 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:36:02 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:36:02 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:36:03 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:36 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:37 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:38 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:43 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:43 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:44 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:44 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:44 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:44 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:45 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:45 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:45 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:45 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:46 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:37:46 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:47:04 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:48:08 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:48:10 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:48:10 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:48:10 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 18:48:11 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:03:51 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:06:59 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:16:58 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:17:01 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:17:28 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:17:31 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:17:33 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 19:19:00 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 21:04:07 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 21:04:12 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 21:44:51 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 21:44:53 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 21:44:53 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 21:44:54 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /> > [Tue Jan 26 21:44:54 2021] [error] [client 5.49.65.168] [host theperfectstroke.fr] AH00687: Negotiation: discovered file(s) matching request: /homez.1020/theperr/www/index.html (None could be negotiated).<br /><br />2) Moi perso je ne l'avais même jamais ouvert jusqu'à hier ! Mais quand je l'édite, je vois des lignes ajoutées par un plugin W3 Total Cache (W3TC Browser Cache) ainsi que des lignes ésotériques pour moi.<br />> # BEGIN W3TC Browser Cache<br />> <br />> AddType text/css .css<br />> AddType text/x-component .htc<br />> AddType application/x-javascript .js<br />> AddType application/javascript .js2<br />> AddType text/javascript .js3<br />> AddType text/x-js .js4<br />> AddType video/asf .asf .asx .wax .wmv .wmx<br />> AddType video/avi .avi<br />> AddType image/bmp .bmp<br />> AddType application/java .class<br />> AddType video/divx .divx<br />> AddType application/msword .doc .docx<br />> AddType application/vnd.ms-fontobject .eot<br />> AddType application/x-msdownload .exe<br />> AddType image/gif .gif<br />> AddType application/x-gzip .gz .gzip<br />> AddType image/x-icon .ico<br />> AddType image/jpeg .jpg .jpeg .jpe<br />> AddType image/webp .webp<br />> AddType application/json .json<br />> AddType application/vnd.ms-access .mdb<br />> AddType audio/midi .mid .midi<br />> AddType video/quicktime .mov .qt<br />> AddType audio/mpeg .mp3 .m4a<br />> AddType video/mp4 .mp4 .m4v<br />> AddType video/mpeg .mpeg .mpg .mpe<br />> AddType video/webm .webm<br />> AddType application/vnd.ms-project .mpp<br />> AddType application/x-font-otf .otf<br />> AddType application/vnd.ms-opentype ._otf<br />> AddType application/vnd.oasis.opendocument.database .odb<br />> AddType application/vnd.oasis.opendocument.chart .odc<br />> AddType application/vnd.oasis.opendocument.formula .odf<br />> AddType application/vnd.oasis.opendocument.graphics .odg<br />> AddType application/vnd.oasis.opendocument.presentation .odp<br />> AddType application/vnd.oasis.opendocument.spreadsheet .ods<br />> AddType application/vnd.oasis.opendocument.text .odt<br />> AddType audio/ogg .ogg<br />> AddType application/pdf .pdf<br />> AddType image/png .png<br />> AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx<br />> AddType audio/x-realaudio .ra .ram<br />> AddType image/svg+xml .svg .svgz<br />> AddType application/x-shockwave-flash .swf<br />> AddType application/x-tar .tar<br />> AddType image/tiff .tif .tiff<br />> AddType application/x-font-ttf .ttf .ttc<br />> AddType application/vnd.ms-opentype ._ttf<br />> AddType audio/wav .wav<br />> AddType audio/wma .wma<br />> AddType application/vnd.ms-write .wri<br />> AddType application/font-woff .woff<br />> AddType application/font-woff2 .woff2<br />> AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw<br />> AddType application/zip .zip<br />> <br />> <br />> ExpiresActive On<br />> ExpiresByType text/css A31536000<br />> ExpiresByType text/x-component A31536000<br />> ExpiresByType application/x-javascript A31536000<br />> ExpiresByType application/javascript A31536000<br />> ExpiresByType text/javascript A31536000<br />> ExpiresByType text/x-js A31536000<br />> ExpiresByType video/asf A31536000<br />> ExpiresByType video/avi A31536000<br />> ExpiresByType image/bmp A31536000<br />> ExpiresByType application/java A31536000<br />> ExpiresByType video/divx A31536000<br />> ExpiresByType application/msword A31536000<br />> ExpiresByType application/vnd.ms-fontobject A31536000<br />> ExpiresByType application/x-msdownload A31536000<br />> ExpiresByType image/gif A31536000<br />> ExpiresByType application/x-gzip A31536000<br />> ExpiresByType image/x-icon A31536000<br />> ExpiresByType image/jpeg A31536000<br />> ExpiresByType image/webp A31536000<br />> ExpiresByType application/json A31536000<br />> ExpiresByType application/vnd.ms-access A31536000<br />> ExpiresByType audio/midi A31536000<br />> ExpiresByType video/quicktime A31536000<br />> ExpiresByType audio/mpeg A31536000<br />> ExpiresByType video/mp4 A31536000<br />> ExpiresByType video/mpeg A31536000<br />> ExpiresByType video/webm A31536000<br />> ExpiresByType application/vnd.ms-project A31536000<br />> ExpiresByType application/x-font-otf A31536000<br />> ExpiresByType application/vnd.ms-opentype A31536000<br />> ExpiresByType application/vnd.oasis.opendocument.database A31536000<br />> ExpiresByType application/vnd.oasis.opendocument.chart A31536000<br />> ExpiresByType application/vnd.oasis.opendocument.formula A31536000<br />> ExpiresByType application/vnd.oasis.opendocument.graphics A31536000<br />> ExpiresByType application/vnd.oasis.opendocument.presentation A31536000<br />> ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000<br />> ExpiresByType application/vnd.oasis.opendocument.text A31536000<br />> ExpiresByType audio/ogg A31536000<br />> ExpiresByType application/pdf A31536000<br />> ExpiresByType image/png A31536000<br />> ExpiresByType application/vnd.ms-powerpoint A31536000<br />> ExpiresByType audio/x-realaudio A31536000<br />> ExpiresByType image/svg+xml A31536000<br />> ExpiresByType application/x-shockwave-flash A31536000<br />> ExpiresByType application/x-tar A31536000<br />> ExpiresByType image/tiff A31536000<br />> ExpiresByType application/x-font-ttf A31536000<br />> ExpiresByType application/vnd.ms-opentype A31536000<br />> ExpiresByType audio/wav A31536000<br />> ExpiresByType audio/wma A31536000<br />> ExpiresByType application/vnd.ms-write A31536000<br />> ExpiresByType application/font-woff A31536000<br />> ExpiresByType application/font-woff2 A31536000<br />> ExpiresByType application/vnd.ms-excel A31536000<br />> ExpiresByType application/zip A31536000<br />> <br />> <br />> AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon application/json application/vnd.ms-access video/webm application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel<br />> <br />> # DEFLATE by extension<br />> AddOutputFilter DEFLATE js css htm html xml<br />> <br />> <br />> <br />> FileETag MTime Size<br />> <br />> Header unset Set-Cookie<br />> <br />> <br />> <br />> FileETag MTime Size<br />> <br />> <br />> FileETag MTime Size<br />> <br />> Header unset Set-Cookie<br />> <br />> <br />> <br />> <br />> Header unset Last-Modified<br />> <br />> <br />> <br />> Header set Referrer-Policy "no-referrer-when-downgrade"<br />> <br />> # END W3TC Browser Cache<br />> # BEGIN WordPress<br />> # Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées<br />> # dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.<br />> # Toute modification des directives situées entre ces marqueurs sera surchargée.<br />> <br />> RewriteEngine On<br />> RewriteBase /<br />> RewriteRule ^index\.php$ - [L]<br />> RewriteCond %{REQUEST_FILENAME} !-f<br />> RewriteCond %{REQUEST_FILENAME} !-d<br />> RewriteRule . /index.php [L]<br />> <br />> # END WordPress<br /><br /><br />3) Quand je regarde sur l'admin OVH, j'ai 23 Mo sur 200 d'occupé.<br /><br />Merci encore !
AH00687
Recherche sur le code d'erreur AH00687 :
Lu ailleurs:
https://community.ovhcloud.com/t/46773 un thème incompatible avec php 7
https://serverfault.com/questions/372733/apache-file-negotiation-failed un problème avec AddType, et justement BrowserCache vous en apporte une quantité...
Merci pour ton retour.
Concernant le thème, c'est l'auteur du thème qui m'a conseillé de passer en PHP 7.3 (j'étais sur PHP 7.0 avant) :-/
Cela étant dit, j'ai fait la bascule PHP il y a plus de 2 semaines sans constater quoi que ce soit jusque là.
Je ne sais plus quoi penser ^^
Pour le problème AddType, j'ai testé les deux solutions suivantes l'une après l'autre :
- virer toute la partie liée à W3TC
- ajouter la ligne AddType application/x-httpd-php .php (comme proposée dans la page que tu as linké)
Mais aucun changement ![]()
As-tu une suggestion ? J'avoue que j'ai largement atteint ma limite de compétence en la matière ![]()
Quoi qu'il en soit, merci encore pour ton aide.
As-tu une suggestion ?
Non.
Fini.
Mes compétences s'arrêtent ici... je passe la main
Merci quand même.
Quelqu'un aurait une idée ?
Je suis franchement désespéré…
2 idées qui me passent par la tête, peut-être très bêtes mais facile à mettre en oeuvre :
1) Restaurer un backup du site
2) Repasser en PHP 7.0
> 1) Restaurer un backup du site
C'est exactement ce que j'étais en train de faire quand j'ai lu ton message.
En fait, c'était un fichier Wordpress qui était endommagé (pourquoi, comment, mystère)
Après 35 000 manipulations et beaucoup de sueurs froides sans succès, ayant utilisé quasi toutes mes cartouches, j'ai finalement réinstallé Wordpress et bingo ! Cette fois-ci tout est revenu à la normale. Je ne saurais jamais ce qui s'est passé mais ça m'a permis de faire beaucoup de ménage dans les fichiers, les extensions, les configurations et autres joyeusetés ^^
Ouf, je respire mieux !
Merci à tous les deux Nico94 et Fritz2cat pour votre aide !
EDIT : Je me suis réjoui trop vite.
C'est un truc de malade. Je remets Wordpress, tout fonctionne pendant quelques minutes et ça se rebarre au bout de 4-5 minutes max, quoi que je fasse !
Quelqu'un a-t-il déjà eu un cas pareil ?
Réinstallation de Wordpress pour corriger un problème d'erreur 500. La réinstallation semble fonctionner, le site est de nouveau accessible (code 200) mais au bout de quelques instants, rebelotte : retour à l'erreur 500 !
Franchement ça me rends fou !
En désespoir de cause j'ai tenté la MAJ vers Wordpress 5.6 mais ça fait pareil : tout marche pendant quelques minutes et je tombe en erreur 500.
Je suis au bout du rouleau.
En désespoir de cause j'ai tenté la MAJ vers Wordpress 5.6 mais ça fait pareil : tout marche pendant quelques minutes et je tombe en erreur 500.
Je suis au bout du rouleau.
Site piraté ?
Comment ça se pourrait ? D'autant que j'ai toujours les accès FTP
Est-ce qu'il y a des jobs "cron" ?
Est-ce qu'il y a des plugins ou thèmes désaffectés ? Planquez les répertoires de tout ce qui n'est pas nécessaire.
Quand je dis "piraté" le contenu malveillant peut être hébergé dans des fichiers php qui ne font pas partie d'une mise à jour WP.
Dans certains cas une infection peut même polluer la database avec du code html exécutable.
Il ne faut pas nécessairement les codes FTP pour modifier un site. La preuve: les mises à jour WP n'ont pas besoin du ftp.
> Est-ce qu'il y a des jobs "cron" ?
De ce que je sais non. En tout cas, quand je vais dans l'admin OVH, Hebergement > monnomdedomaine > Tâches planifiées - Cron, c'est vide.
Où pourrais-je les voir ?
Est-ce qu'il y a des plugins ou thèmes désaffectés ? Planquez les répertoires de tout ce qui n'est pas nécessaire.
Là aussi, je n'avais que les thèmes de Wordpress en plus du mien. Mais sur la dernière tentative, j'ai même désactivé mon thème pour mettre twentyone à la place. J'ai aussi désactivé tous les plugins et je les remets un par un pour tenter de voir si c'est un plugin qui corromps l'install ou si c'est le thème (ou un mix des deux).
Sur mon dernier essai, le site a replanté après 30-35 minutes (c'est mieux que 5 minutes mais bon…)
Quand je dis "piraté" le contenu malveillant peut être hébergé dans des fichiers php qui ne font pas partie d'une mise à jour WP.
Comment puis-je détecter une activité "bizarre" ?
J'avoue que je me sens démuni.
Truc bien chelou : erreur 500 dès que j'active un plugin (quel que soit le plugin !)
On dirait que c'est l'activation elle-même qui plante tout (pourtant je viens de mettre la dernière version de Wordpress)
Alors, à priori il s'est passé quelque chose avec mon dossier plugins : chaque fois que je tentais de réinstaller un plugin, le site plantait, erreur 500, y compris s'ils provenaient d'une sauvegarde récente oO
J'ai du virer le dossier plugin et réinstaller tous les plugins un par un avec l'installeur de Wordpress et depuis, le site refonctionne parfaitement. J'en ai profité pour virer les plugins qui me semblaient les moins utiles et du coup, j'ai l'impression que mon site est plus rapide ^^
Une histoire de fou !
Je touche du bois en espérant que cette fois ça soit bon…