Message : * Front to the WordPress application. This file doesn't do anything, but load
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Message : * Front to the WordPress application. This file doesn't do anything, but load

by
YvesR15
Created on 2020-05-28 12:14:30 (edited on 2024-09-04 13:02:08) in Hébergements Web

Bonjour,
j'ai migré mon site marianneoptique.com de Siteground a OVH le transfert est ok mais lorsque j’accède a mon site j'ai le message suivant :
" /**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php'; "

Y aurait-il un problème avec le fichier .htaccess qui contient des paramètres Siteground :

" SetEnv PHPRC /home/marian45/public_html/php.ini
# HTTPS forced by SG-Optimizer

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# END HTTPS


8 Replies ( Latest reply on 2020-05-28 15:29:04 by
kyodev
)

> <?php


tu as un grave défaut d'interprétation du php...

en **Ftp**, quel est le contenu de ton fichier `.ovhconfig`?


tu peux renommer ce .htaccess pour commencer, aussi

Tout d'abord merci pour ta rapide réponse, c'est vrai je n'ai pas de notion PHP,
peux-tu me dire ou se trouve .ovhconfig ?

c'est un fichier de configuration, pas php
au dessus du répertoire racine, généralement `www`

Voici une capture écran de mon FTP

Je viens de voir ce message c'est peut-être une piste ?

Contenu du fichier ovhconfig :
; pour plus d'informations sur ce fichier:
; http://www.ovh.com/fr/g1175.format_du_point_ovhconfig

app.engine=php
app.engine.version=7.0

http.firewall=none
environment=production

container.image=stable

Problème résolu !
j'ai modifié le fichier wp-config.php le nom de la base est user n'étaient les bons

Grand merci pour votre aide

le ovhconfig ok, sauf php 7.0 périmé
on est à php7.4 aujourd"hui, 7.3 chez Ovh

tu peux supprimer ce index.html.ovh.old, ça évitera des erreurs dans les logs
c'est dû au module 1clic, donc tu as un wordpress ancien, malpropre et mal installé