Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Wie man den fatalen Fehler behebt: Maximale Ausführungszeit in WordPress überschritten

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Sehen Sie die Meldung „Fatal error: Maximale Ausführungszeit von 30 Sekunden überschritten“ auf Ihrem Bildschirm, wenn Sie versuchen, ein WordPress-Plugin oder -Theme zu aktualisieren?

Dieses Problem tritt in der Regel auf, wenn ein PHP-Skript in WordPress sehr lange für die Ausführung benötigt und das von Ihrem WordPress-Hosting-Server festgelegte maximale Zeitlimit erreicht. Das Zeitlimit ist wichtig, weil es hilft, den Missbrauch von Serverressourcen zu verhindern.

In diesem Artikel zeigen wir Ihnen, wie Sie den fatalen Fehler: Maximale Ausführungszeit überschritten in WordPress beheben können.

Fix Fatal Error: Maximum Execution Time Exceeded in WordPress Easily

Warum tritt der Fehler „Maximale Ausführungszeit überschritten“ auf?

Der Fehler „Maximale Ausführungszeit überschritten“ tritt in WordPress auf, weil PHP, die Programmiersprache hinter WordPress, ein Zeitlimit hat, wie lange ein Skript laufen kann. Dieses Limit soll verhindern, dass Webserver missbraucht werden.

Verschiedene Hosting-Unternehmen legen unterschiedliche Zeitlimits fest, aber 30-60 Sekunden sind oft ausreichend. Wenn ein PHP-Skript auf Ihrer WordPress-Website länger als diese Zeit benötigt, wird der Fehler „Maximale Ausführungszeit überschritten“ ausgelöst.

Maximum Execution Time of 30 Seconds Exceeded Error in WordPress

Wie man den Fehler „Maximale Ausführungszeit überschritten“ in WordPress behebt

Obwohl der Fehler „Maximale Ausführungszeit überschritten“ als „schwerwiegender Fehler“ bezeichnet wird, handelt es sich in Wirklichkeit um einen der häufigsten WordPress-Fehler, der leicht zu beheben ist.

Schauen wir uns an, wie man den Fehler „Maximale Ausführungszeit überschritten“ in WordPress beheben kann. Sie können die Links unten verwenden, um zu den verschiedenen Methoden der Fehlerbehebung zu springen:

Wichtig! Für die letzten beiden Methoden empfehlen wir Ihnen, eine Sicherungskopie Ihres WordPress zu erstellen, um Fehler auf Ihrer Website zu vermeiden. Bitte lesen Sie unseren Leitfaden zum Sichern einer WordPress-Website für weitere Informationen.

Methode 1: WordPress-Wiederherstellungsmodus verwenden

Je nachdem, wann und wo der Fehler auftritt, zeigt WordPress im Frontend möglicherweise die Fehlermeldung „Diese Website hat technische Probleme“ an.

Technical difficulties

Dies ist Teil der Funktion zum Schutz vor fatalen Fehlern, die in WordPress 5.2 hinzugefügt wurde.

Möglicherweise erhalten Sie auch eine E-Mail, die Ihnen mitteilt, welches Plugin (falls ein Plugin den Fehler ausgelöst hat) das Problem verursacht hat.

Technical issue email sent to admin

Die E-Mail enthält auch einen speziellen Link.

Dadurch können Sie sich im „Wiederherstellungsmodus“ bei WordPress anmelden.

Recovery mode

Dort können Sie das Plugin, das den Fehler verursacht, einfach deaktivieren oder löschen.

Weitere Einzelheiten finden Sie in unserer Anleitung zur Verwendung des WordPress-Wiederherstellungsmodus und zur Deaktivierung von WordPress-Plugins.

Methode 2: Bearbeiten Sie Ihre .htaccess-Datei

Diese Methode wird für WordPress-Nutzer empfohlen, die nicht auf ihr WordPress-Dashboard zugreifen können. Um den Fehler der maximalen Ausführungszeit zu beheben, müssen Sie Ihre .htaccess-Datei manuell bearbeiten und eine einfache Codezeile hinzufügen.

Verbinden Sie sich einfach mit Ihrer Website über einen FTP-Client oder die Dateimanager-App in Ihrem cPanel oder einem anderen Webhosting-Dashboard.

Ihre .htaccess-Datei befindet sich in demselben Ordner wie Ihre Ordner /wp-content/ und /wp-admin/. Wenn Sie sie nicht finden können, lesen Sie unseren Artikel darüber, warum Sie die .htaccess-Datei nicht finden können und wie Sie sie finden können.

Wenn Sie z. B. FileZilla als FTP-Client verwenden, finden Sie ihn in der rechten Spalte im Abschnitt „Remote Site“.

WordPress .htaccess File in Filezilla

Sobald Sie die .htaccess-Datei gefunden haben, klicken Sie einfach mit der rechten Maustaste darauf und wählen Sie die Option „Anzeigen/Bearbeiten“.

Dadurch wird die Datei in einem Texteditor geöffnet.

View/Edit .htaccess File in WordPress

Als nächstes müssen Sie den folgenden Code am Ende Ihrer .htaccess-Datei hinzufügen:

php_value max_execution_time 300

Wenn Sie Notepad als Texteditor verwenden, kann es folgendermaßen aussehen.

Sobald dies geschehen ist, speichern Sie die Datei ab.

Adding Code to .htaccess File WordPress

Dieser Code setzt einfach den Wert für die maximale Ausführungszeit auf 300 Sekunden (5 Minuten). Sie können nun Ihre Website besuchen, um zu sehen, ob die Fehlermeldung verschwunden ist.

Wenn der Fehler weiterhin auftritt, versuchen Sie, den Wert auf 600 zu erhöhen.

Wenn Sie diese Methode hilfreich fanden, lesen Sie die nützlichsten .htaccess-Tricks für WordPress.

Methode 3: Ändern Sie die Datei php.ini

Eine andere Methode, den Fehler „Maximale Ausführungszeit überschritten“ in WordPress zu beheben, besteht darin, die Datei php.ini zu ändern.

Die Datei php.ini ist eine Konfigurationsdatei, die die Einstellungen für PHP auf Ihrem Server definiert. Auf vielen WordPress-Hosting-Plattformen sehen Sie sie möglicherweise nicht in Ihrem Stammverzeichnis.

In diesem Fall können Sie mit FTP oder dem Dateimanager eine neue php.ini-Datei in Ihrem WordPress-Stammverzeichnis erstellen.

Danach bearbeiten Sie einfach die Datei php.ini und fügen die folgende Zeile hinzu:

max_execution_time = 60

Vergessen Sie nicht, die Datei zu speichern und Ihre Änderungen wieder auf den Server hochzuladen. Sie können nun Ihre Website besuchen und sehen, ob der Fehler verschwunden ist.

In den meisten Fällen wird die Erhöhung der maximalen Ausführungszeit mit diesen beiden Methoden den Fehler beheben. Wenn dies jedoch nicht der Fall ist, müssen Sie Ihren WordPress-Hosting-Anbieter um Hilfe bitten.

Weitere Informationen über Hilfe für Ihre WordPress-Website finden Sie in unserem Leitfaden, wie Sie richtig um WordPress-Support bitten.

Wir hoffen, dass dieser Artikel Ihnen geholfen hat, den fatalen Fehler: Maximale Ausführungszeit überschritten in WordPress zu beheben. Vielleicht interessieren Sie sich auch für unseren Leitfaden zur Behebung des Fehlers beim Herstellen einer Datenbankverbindung in WordPress und unsere Top-Picks für die besten Managed-WordPress-Hosting-Anbieter.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

71 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk says

    What do you think is a reasonable maximum of this value? Sometimes some plugins, especially for import and export, need quite a lot of time before performing an action. So I would be interested in what value it is no longer good to get over, because it could mean, for example, a security risk.

    • WPBeginner Support says

      Starting with 60 is normally a good way to test and then it would depend on the specific task for how much to increase it or if the host needs to be checked with for an error.

      Admin

      • Jiří Vaněk says

        Thank you for answer. I currently have a limit of 300 and then that’s enough. So I’ll leave it at this value then we’ll see. When I put it lower, I sometimes don’t fit into the limits. Thank you. I will definitely not increase the limit then.

  3. mudasir abbas turi says

    when ever i have face with problem then i search on google i found your website and i have always solve my problem from your website thanks too much

    • WPBeginner Support says

      You would use the same method, you may want to ensure the file isn’t already created under xampp/php in which case you would want to edit the file there.

      Admin

  4. Umesh Vinayak Shejole says

    It’s working properly. I am installed premium shopping theme & got error when installing required plugins. After putting php_value max_execution_time 300 line in my .htaccess file it’s working & being installed all required plugin. I am trying from last 2 / 3hrs with this problem. Thank you for saving lot’s of time.

  5. Lyubomir says

    Thanks a lot for the great article !
    It resolved my issue – it happened on trying to upgrade my localhost WordPress installation from v.5.2.5 to v.5.3.2
    Adding the line „php_value max_execution_time 300“ at the bottom of the .htaccess file proved to be enough, in my case.
    Best regards !

  6. Amelia John says

    Hey Dears,
    I am getting a maximum execution time limit error like below when clicking on the woocommerce settings tab. I added max_execution_time = 360 to php.ini file however it’s not working as well.

    Deactivated every plugin by keeping woo-commerce only also changed to a default WordPress theme, none of these steps work for me.

    Any good hearts here to help me to sort out this issue?

    • WPBeginner Support says

      Reach out to your hosting provider to see if they have an overriding setting preventing you from changing the execution time for your site. That could be the likely reason

      Admin

    • Kaan Oezgiray says

      Try this in your script (I placed it on the first line and it works):
      ini_set(‚max_execution_time‘, ‚600‘);

      Hope it helps.

      -Kaan

  7. mubarak hassan says

    How can I solve this? Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\wp\wp-includes\Requests\Transport\cURL.php on line 163

  8. MU says

    down vote
    You have to just check whether your WAMP server is online or not.

    To put your WAMP server online, follow these steps.

    Go to your WAMP server notification icon (in the task bar).
    Single click on the WAMP server icon.
    Select last option from the menu, that is, Put Online
    Your server will restart automatically (in the latest versions only). Otherwise, you have to restart your server manually.
    And you are DONE…

  9. Waqas says

    Hi, I have been facing this issue for along time don’t know how to solve it.

    I am getting this error while visiting my homepage Warning: session_start(): open(/tmp/sess_e8717886215bae41c9c82993bd822901, O_RDWR) failed: Disk quota exceeded (122) in /home/waqas1385/public_html/example.com/wp-content/plugins/easy-contact/econtact.php on line 112

    I have searched my whole site but I don’t have this plugin ‚easy contact‘ installed and I can’t find it in the file manager.

    please help me how to fix this error. Thanks

    • WPBeginner Support says

      Hi Waqas,

      Try using an FTP client and locate this folder manually. Make sure that your FTP client is set to show hidden files too.

      It seems that some poorly coded plugin is starting sessions and your server is unable to delete temporary session files. It could also be caused by a temporary files stored elsewhere like your web hosting mailboxes.

      Admin

  10. Jess says

    This didn’t work for me, now I can’t even get to the log in page and it gives an error message for my whole site :(

  11. Ahmad says

    Hi I am using php 5.5
    When i open .htaccess code editor in cpanel i see the following text
    where should i exactly add this code and save it?

    # Use PHP55
    AddHandler application/x-httpd-php55 .php

    suPHP_ConfigPath /opt/php55/lib

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

  12. Ellayararwhy says

    This doesn’t fix the underlying problem at all, which is that something running under WP is totally consuming CPU resources. To suggest that just increasing the timeout value is a fix is not good practice – focus on the root cause.This can happen in many ways (apache library, synchronous read, etc), but the usual culprits are some PHP code in some WP plug-in stuck in a very long or infinite iteration loop. Perhaps there is a weird interaction between two or more WP plugins.

    In all scenarios, including ones not discussed, is that you have to back off (disable) your WP plugins until the CPU load decreases to a reasonable value. The next step is to figure out how to track down a plugin problem or plugin interaction issue, which may involve quality time on forums focused on the suspect plugins.

    • Leo says

      I agree with @ELLAYARARWHY. The point of setting max execution time is for security and the users experience, changing the settings this way to me is only putting a patch on the issue rather then actually fixing it. Increasing the time is not a long term solution.

  13. ZS says

    I have WordPress 4.1 installed on XAMPP. I didn’t have any .htaccess files in the wp-content and wp-admin folders. I added them myself with the code you mentioned but that didn’t fix the error. I’ve also tried installing the plugin and that also did not fix the error.

    I tried running WordPress on WAMP and I am getting the error on WAMP too. I am getting this error when I try to import the Theme Unit Test XML file. What else can I do? :(

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.