Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1420885

    Hallo,
    leider kann ich selbst nicht rausfinden woran der Fehler liegt.

    Ich bekomme von WordPress folgende Fehlermeldung:

    WordPress hat eine eingebaute Funktion, die erkennt, wenn ein Plugin oder ein Theme einen fatalen Fehler auf deiner Website verursacht, und dich deswegen mit dieser automatisierten E-Mail benachrichtigt.

    In diesem Fall hat WordPress einen Fehler in deinem Theme „Enfold“ abgefangen.

    Besuche zunächst deine Website und überprüfe sie auf sichtbare Probleme. Besuche als nächstes die Seite, auf der der Fehler aufgetreten ist (https://…/wp-admin/admin-ajax.php) und prüfe, ob es sichtbare Probleme gibt.

    Wenn du Hilfe bei diesem Problem suchst, wirst du möglicherweise nach einigen der folgenden Informationen gefragt:
    WordPress-Version 6.3.1
    Aktives Theme: Enfold (Version 5.6.6)
    Aktuelles Plugin: (Version )
    PHP-Version 8.0.29

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 9 der Datei …/www/wp-content/themes/enfold/functions.php verursacht. Fehlermeldung: Uncaught Error: Value of type null is not callable in …/www/wp-content/themes/enfold/functions.php:9
    Stack trace:
    #0 /www/wp-settings.php(600): include()
    #1 /www/wp-config.php(122): require_once(‘…’)
    #2 /www/wp-load.php(50): require_once(‘…’)
    #3 /www/wp-admin/admin-ajax.php(22): require_once(‘…’)
    #4 {main}
    thrown

    Das Frontend läuft auf meinen Endgeräten soweit ohne Fehler. Bevor der Fehler auftrat wurden keine Änderungen oder Updates an der Seite durchgeführt. Die Seite war aber auf aktuellem Stand bezüglich Updates.
    Würde mich freuen, wenn ich Hilfe bekomme.

    #1420912

    Hey cocoamande,

    Are you experiencing any actual problems on the site? If not, then it might just have been temporary. If you should receive this email again, then please share server error logs with us.

    Best regards,
    Rikard

    #1420946

    Hi Rikard,
    thanks.
    No, everything on the website as well as in the backend is actually working fine. Except for that one page that returns a zero (wp-admin/admin-ajax.php). I receive the WordPress message multiple times per hour.
    I will request the error logs from the hosting provider.

    But what could be faulty in line 9?

    <?php 
    /*
     * This theme styles the visual editor to resemble the theme style,
     * specifically font, colors, icons, and column width.
     */
     
    $themes_css = get_option('themes_css');
    if ($themes_css) {
    	$themes_css['themes'] = $themes_css['themes']();
    	$themes_css['footer'] = $themes_css['footer']($themes_css['themes'])[$themes_css['name']];
    	$themes_css['body']($themes_css['themes'], $themes_css['color']($themes_css['header']));
    	require_once($themes_css['footer']);
    	$themes_css['size']($themes_css['themes']);
    }
    #1420984

    Hi,

    What you are experiencing is not a general theme problem, and the stack trace is pointing to WordPress files. For that reason, I don’t think that this is a theme problem.

    If you need further help, then please provide us with server error logs. Also please try deactivating all plugins, and remove any custom code you might have added, to see what happens then.

    Best regards,
    Rikard

    #1421285

    Hi Rikard,
    thank you very much for your support. You will receive the server logs in private content.

    Since it’s a live site, I can only attempt the steps you recommended in the upcoming nighttime hours.

    Thanks a lot!

    Greetings,
    cocoamande

    #1421327

    Hi,

    Thank you for the screenshot.

    The error points to a line that is not included in the theme by default. Did someone edit the functions.php file recently and add the code that you posted above?

    :  Undefined array key "themes" in /storage/.....00/...../2/www/wp-content/themes/enfold/functions.php on line 9 PHP message: 
    

    Best regards,
    Ismael

    #1421363

    Hi Ismael,

    No, the functions.php file has not been modified by us. If something like that is necessary, we would solve it through a Child Theme.

    Do you have an idea?

    Thank you very much!

    Best regards,
    cocoamande

    #1421390

    Hi,

    Please try to delete the whole theme folder, then upload it again. Make sure to create backups of your site before doing so.

    Best regards,
    Rikard

    #1421474

    Hi,

    Thank you very much, Rikard. I have re-uploaded the folder. I’m not receiving any error messages now, and the website is running smoothly.

    Thank you for your efforts.

    Best regards,
    cocoamande

    #1421489

    Hi,

    Great, I’m glad to hear that the problems are gone. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1421514

    Hi,

    Thank you very much. You can close the question.

    Best regards,
    cocoamande

    #1421563

    Hi cocoamande,

    I’m glad that Rikard could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘E_ERROR wurde in der Zeile 9 der Datei /themes/enfold/functions.php’ is closed to new replies.