Support » Installation » Nach Umstellung auf PHP 8.0 weisse Website

  • Gelöst bremen07

    (@bremen07)


    Hallo!
    Ich habe die diversen Fragen und Antworten bereits durchgelesen, aber ich finde keine Lösung für die betroffene Seite. Ich habe schon einige andere Seiten auf php 8 umgestellt – keine Probleme.

    Aber bei dieser: nichts funktioniert. Mein Host: Strato (wer hätte es gedacht).

    Ich habe bereits das Theme gewechselt (2x), die PugIns alle deaktiviert und nach und nach aktiveirt (sind nicht viele), natürlich alles upgedatet.

    Nun bin ich ratlos.

    Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]

Ansicht von 13 Antworten - 1 bis 13 (von insgesamt 13)
  • Schon mal in den Logfiles nachgesehen, ob man dort Hinweise findet?

    Poste bitte auch den Inhalt der wp-config.php.

    Die Zeilen mit den Datenbank-Zugangsdaten und nachfolgenden Sicherheitsschlüsseln kannst du aus der Antwort komplett löschen. Wir möchten niemanden einladen, deine Datenbank zu ändern.

    Thread-Starter bremen07

    (@bremen07)

    Danke für den Tipp. Gerade läuft noch ein Backup. Aber gleich eine Frage. Ich habe vorhin zu meinem Thema einen Screenshot vom Zustand der Website hochladen wollen. Dieser kann nicht an. Was mache ich falsch? Geht png nicht?

    Thread-Starter bremen07

    (@bremen07)

    <?php
    /**
    
    The base configuration for WordPress
    *
    The wp-config.php creation script uses this file during the
    installation. You don’t have to use the web site, you can
    copy this file to „wp-config.php“ and fill in the values.
    *
    This file contains the following configurations:
    *
    * MySQL settings
    * Secret keys
    * Database table prefix
    * ABSPATH
    *
    @link https://codex.wordpress.org/Editing_wp-config.php
    *
    @package WordPress
    */
    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‚DB_NAME‘, ‚‘);
    
    /** MySQL database username */
    define(‚DB_USER‘, ‚…‘);
    
    /** MySQL database password */
    define(‚DB_PASSWORD‘, ‚…‘);
    
    /** MySQL hostname */
    define(‚DB_HOST‘, ‚rdbms.strato.de‘);
    
    /** Database Charset to use in creating database tables. */
    define(‚DB_CHARSET‘, ‚utf8‘);
    
    /** The Database Collate type. Don’t change this if in doubt. */
    define(‚DB_COLLATE‘, “);
    
    /**#@+
    
    Authentication Unique Keys and Salts.
    *
    Change these to different unique phrases!
    You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    @since 2.6.0
    / define(‚AUTH_KEY‘, ‚‘); 
    define(‚SECURE_AUTH_KEY‘, ‚′);
    define(‚LOGGED_IN_KEY‘, ‚‘); 
    define(‚NONCE_KEY‘, ‚‘);
    define(‚AUTH_SALT‘, ‚‘);
    define(‚SECURE_AUTH_SALT‘, ‚‘);
    define(‚LOGGED_IN_SALT‘, ‚‘); 
    define(‚NONCE_SALT‘, ‚‘);
    /*#@-/
    /**
    
    WordPress Database Table prefix.
    *
    You can have multiple installations in one database if you give each
    a unique prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = ‚wp_‘;
    /**
    
    For developers: WordPress debugging mode.
    *
    Change this to true to enable the display of notices during development.
    It is strongly recommended that plugin and theme developers use WP_DEBUG
    in their development environments.
    *
    For information on other constants that can be used for debugging,
    visit the Codex.
    *
    @link https://codex.wordpress.org/Debugging_in_WordPress
    */
    define(‚WP_DEBUG‘, false);
    /* That’s all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined(‚ABSPATH‘) )
    define(‚ABSPATH‘, dirname(FILE) . ‚/‘);
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‚wp-settings.php‘);
    
    define( ‚WP_ALLOW_MULTISITE‘, true );
    
    define (‚FS_METHOD‘, ‚direct‘);
    
    define( „WP_AUTO_UPDATE_CORE“, minor );
    
    define(‚WP_MEMORY_LIMIT‘, ‚200M‘);
    • Diese Antwort wurde geändert vor 1 Jahr, 2 Monaten von Hans-Gerd Gerhards. Grund: Bitte den Code immer als "Code" formatieren
    Thread-Starter bremen07

    (@bremen07)

    Habe auf PHP 8 umgestellt. Dann war die Site nicht aufrufbar, dann habe ich wieder auf 7.4 zurückgestellt.

    Hier kommt das debug.log:

    [21-Feb-2023 17:11:56 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:11:56 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:05 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:05 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:07 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:07 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:08 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:08 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:50 UTC] PHP Fatal error: Uncaught Error: Undefined constant "minor" in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php:96
    Stack trace: 0 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-load.php(50): require_once() 1 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-cron.php(46): require_once('…') 2 {main} thrown in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:50 UTC] PHP Fatal error: Uncaught Error: Undefined constant "minor" in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php:96
    Stack trace: 0 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-load.php(50): require_once() 1 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-blog-header.php(13): require_once('…') 2 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/index.php(17): require('…') 3 {main} thrown in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:55 UTC] PHP Fatal error: Uncaught Error: Undefined constant "minor" in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php:96
    Stack trace: 0 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-load.php(50): require_once() 1 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-admin/admin-ajax.php(22): require_once('…') 2 {main} thrown in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:13:05 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:13:05 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    Thread-Starter bremen07

    (@bremen07)

    Bei der Zeile 96 der wp-config steht:

    define( „WP_AUTO_UPDATE_CORE“, minor );

    Hat das mit den Anführungszeichen zu tun?

    Hallo,
    ich habe die SALT-Keys und den Eintrag DB_NAME entfernt. Dabei ist allerdings die Formatierung ein wenig verloren gegangen. Bitte solche Dinge immer als Code (Code-Block) formatieren.

    Die letzten vier Einträge gehören da nicht hin:

    define( 'WP_ALLOW_MULTISITE', true );
    define ('FS_METHOD', 'direct');
    define( „WP_AUTO_UPDATE_CORE“, minor );
    define('WP_MEMORY_LIMIT', '200M');

    Aus dem Grund steht auch einige Zeilen davor:
    /* That’s all, stop editing! Happy blogging. */

    Verschiebe bitte diese Zeilen vor die Zeile
    /* That’s all, stop editing! Happy blogging. */

    Vorher bitte die wp-config.php sichern.

    Viele Grüße
    Hans-Gerd

    define( „WP_AUTO_UPDATE_CORE“, minor );

    In der Tat: Das solltest du wie folgt ändern:
    define( 'WP_AUTO_UPDATE_CORE', minor );

    Thread-Starter bremen07

    (@bremen07)

    Danke. Habe ich geändert. Funktioniert nach PHP-Umstellung wieder nicht.

    Neues Log:

    [21-Feb-2023 17:11:56 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:11:56 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:05 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:05 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:07 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:07 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:08 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:08 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    [21-Feb-2023 17:12:50 UTC] PHP Fatal error: Uncaught Error: Undefined constant "minor" in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php:96
    Stack trace: 0 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-load.php(50): require_once() 1 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-cron.php(46): require_once('…') 2 {main} thrown in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:50 UTC] PHP Fatal error: Uncaught Error: Undefined constant "minor" in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php:96
    Stack trace: 0 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-load.php(50): require_once() 1 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-blog-header.php(13): require_once('…') 2 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/index.php(17): require('…') 3 {main} thrown in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:12:55 UTC] PHP Fatal error: Uncaught Error: Undefined constant "minor" in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php:96
    Stack trace: 0 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-load.php(50): require_once() 1 /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-admin/admin-ajax.php(22): require_once('…') 2 {main} thrown in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:13:05 UTC] PHP Warning: Use of undefined constant minor - assumed 'minor' (this will throw an Error in a future version of PHP) in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 96
    [21-Feb-2023 17:13:05 UTC] PHP Notice: Constant WP_MEMORY_LIMIT already defined in /mnt/web313/e3/46/58791746/htdocs/WordPress_01/wp-config.php on line 98
    • Diese Antwort wurde geändert vor 1 Jahr, 2 Monaten von bremen07.

    Sorry, richtig ist:
    define( 'WP_AUTO_UPDATE_CORE', 'minor' );
    Teste das mal bitte.

    Thread-Starter bremen07

    (@bremen07)

    So, jetzt funktioniert die Site. Seltsam.

    Der Fehler bei den Anführungszeichen war ja bei PHP 7.4 auch schon vorhanden. Nur PHP 8 stört sich daran. Woran kann das denn liegen?

    Nur PHP 8 stört sich daran. Woran kann das denn liegen?

    PHP 8.x prüft das eben genauer.

    Kannst du das Thema dann bitte als gelöst markieren, wenn das Problem damit für dich behoben ist:
    Gelöst
    Die Option findest du rechts in der Sidebar. Danke.

    Thread-Starter bremen07

    (@bremen07)

    Danke sehr an alle Helfenden. Habe wieder was gelernt.

Ansicht von 13 Antworten - 1 bis 13 (von insgesamt 13)
  • Das Thema „Nach Umstellung auf PHP 8.0 weisse Website“ ist für neue Antworten geschlossen.