[Résolu] Erreur  » Warning: Use of undefined constant ‘WP_ALLOW_MULTISITE’ «  (Créer un compte)

  • WordPress :6.0.2
  • Statut : résolu
  • Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par EmGes, le il y a 1 année.
3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #2420131
    EmGes
    Participant
    Initié WordPress
    2 contributions

    Bonjour,

    Ma configuration WP actuelle

    • Version de PHP/MySQL : PHP 7.4.30 / MySQL 10.5.17
    • Thème utilisé : Highstarter
    • Extensions en place : toutes désactivées
    • Nom de l’hébergeur : Ionos
    • Adresse du site : antoninleymarie.com

    Problème(s) rencontré(s) :

    J’essaie de créer un multisite WordPress en suivant ce guide .

    Pour la première étape, « Compléter la ligne de code dans le fichier WordPress wp-config.php », j’ai ajouté ceci au fichier wp-config.php :


    define( ‘WP_ALLOW_MULTISITE’, true );
    /* That's all, stop editing! Happy publishing. */

    Puis je l’ai chargé avec cyberduck.

     

    Mais maitenant, les lignes suivantes s’affiches en haut du back-end, et le nouvel élément « Installation réseau » n’apparaît pas dans le menu « outil » comme ça devrait être le cas :

    <p class= »p1″><b>Warning</b>: Use of undefined constant ‘WP_ALLOW_MULTISITE’ – assumed ‘‘WP_ALLOW_MULTISITE’’ (this will throw an Error in a future version of PHP) in <b>/homepages/11/d927528279/htdocs/app928506859/wp-config.php</b> on line <b>100</b></p>
    <p class= »p1″><b>Warning</b>: Cannot modify header information – headers already sent by (output started at /homepages/11/d927528279/htdocs/app928506859/wp-config.php:100) in <b>/homepages/11/d927528279/htdocs/app928506859/wp-admin/includes/misc.php</b> on line <b>1381</b></p>
    <p class= »p1″><b>Warning</b>: Cannot modify header information – headers already sent by (output started at /homepages/11/d927528279/htdocs/app928506859/wp-config.php:100) in <b>/homepages/11/d927528279/htdocs/app928506859/wp-includes/functions.php</b> on line <b>6878</b></p>
    <p class= »p1″><b>Warning</b>: Cannot modify header information – headers already sent by (output started at /homepages/11/d927528279/htdocs/app928506859/wp-config.php:100) in <b>/homepages/11/d927528279/htdocs/app928506859/wp-admin/admin-header.php</b> on line <b>9</b></p>
    <p class= »p1″><b>Warning</b>: Cannot modify header information – headers already sent by (output started at /homepages/11/d927528279/htdocs/app928506859/wp-config.php:100) in <b>/homepages/11/d927528279/htdocs/app928506859/wp-includes/option.php</b> on line <b>1112</b></p>
    <p class= »p4″><b>Warning</b>: Cannot modify header information – headers already sent by (output started at /homepages/11/d927528279/htdocs/app928506859/wp-config.php:100) in <b>/homepages/11/d927528279/htdocs/app928506859/wp-includes/option.php</b> on line <b>1113</b></p>

    Est-ce que vous avez une idée ?

    Merci d’avance pour votre aide !

    • Ce sujet a été modifié le il y a 1 année par EmGes.
    • Ce sujet a été modifié le il y a 1 année par EmGes.
    #2420138
    mathieu42
    Participant
    Maître WordPress
    1989 contributions

    vous n’avez pas mis les bons guillemets, le code à utiliser est le suivant

    define( 'WP_ALLOW_MULTISITE', true );

    vous pouvez trouver la documentation officielle là :

    .https://fr.wordpress.org/support/article/create-a-network/

    #2420139
    EmGes
    Participant
    Initié WordPress
    2 contributions

    C’est exact, merci beaucoup !

3 sujets de 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.