-
AuthorPosts
-
September 29, 2023 at 11:36 am #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.29Fehler-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}
thrownDas 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.September 29, 2023 at 2:54 pm #1420912Hey 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,
RikardSeptember 30, 2023 at 9:15 am #1420946Hi 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']); }
September 30, 2023 at 8:49 pm #1420984Hi,
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,
RikardOctober 3, 2023 at 1:07 pm #1421285Hi 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,
cocoamandeOctober 4, 2023 at 3:46 am #1421327Hi,
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,
IsmaelOctober 4, 2023 at 10:10 am #1421363Hi 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,
cocoamandeOctober 4, 2023 at 1:21 pm #1421390Hi,
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,
RikardOctober 5, 2023 at 12:05 pm #1421474Hi,
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,
cocoamandeOctober 5, 2023 at 2:45 pm #1421489Hi,
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,
RikardOctober 5, 2023 at 4:24 pm #1421514Hi,
Thank you very much. You can close the question.
Best regards,
cocoamandeOctober 6, 2023 at 1:54 am #1421563Hi cocoamande,
I’m glad that Rikard could help you :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘E_ERROR wurde in der Zeile 9 der Datei /themes/enfold/functions.php’ is closed to new replies.