{"id":7461,"date":"2020-05-24T15:00:50","date_gmt":"2020-05-24T13:00:50","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=7461"},"modified":"2023-10-03T16:11:55","modified_gmt":"2023-10-03T14:11:55","slug":"how-to-fix-wordpress-maximum-execution-time-exceeded-error","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/how-to-fix-wordpress-maximum-execution-time-exceeded-error\/","title":{"rendered":"How to Fix the WordPress &#8220;Fatal Error: Maximum Execution Time Exceeded&#8221;"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Solving WordPress errors can seem difficult, especially for new users but in reality, this is not the case\u2014most WordPress errors can be solved quickly and easily. The <em>Maximum execution time exceeded<\/em> error is very common. It can show up while you\u2019re doing something as simple as updating WordPress, themes, or plugins. When it shows up, the error is followed by a message similar to this:[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/1-Fix-the-WordPress-Fatal-Error.jpg\" class=\"attachment-full size-full\" alt=\"Fix the WordPress fatal error\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/1-Fix-the-WordPress-Fatal-Error.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/1-Fix-the-WordPress-Fatal-Error-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/1-Fix-the-WordPress-Fatal-Error-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Fortunately, this WordPress fatal error has a very straightforward fix. In this article, we\u2019ll show you a couple of different solutions you can try, such as:[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#increasing-the-max-execution-time\">Increasing the max_execution_time value<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#disabling-the-plugins-and-theme\">Disabling the plugins and theme<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#asking-your-hosting-provider\">Asking your hosting provider<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;70px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Solving the Error<\/h2>\n<p>[\/vc_column_text][vc_column_text]Maximum execution time (max_execution_time) is a<strong> time limit on how long a PHP script can run<\/strong>. It is a way hosting providers can limit the use and abuse of server resources, especially for shared hosting. <strong>The actual default value depends on the hosting, but it-s usually set to 30<\/strong> (i.e. 30 seconds). If a script exceeds the time limit, you will receive the <em>Maximum execution time of X seconds exceeded error<\/em>. The easiest solution to this problem is increasing the time limit. <strong>Changing it to 300 seconds (5 minutes) is often more than enough<\/strong>. If that doesn\u2019t help, you can try setting even higher values for maximum execution time.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Before you proceed, some of these solutions will involve editing native WordPress files, so make sure to <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-manually-backup-wordpress-website\/\">backup your site<\/a> beforehand.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"increasing-the-max-execution-time\"><\/a>Increasing the max_execution_time Value<\/h3>\n<p>[\/vc_column_text][vc_column_text]We will show you four different ways to increase the max_execution_time by adjusting the values set in native WordPress files. The first two methods are for cPanel users while the other two are for FTP client users. [\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Editing the max_execution_time value in cPanel<\/strong><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]<strong>Log in to cPanel using your credentials<\/strong>. Navigate to the <em>Software<\/em> section and click on the <em>MultiPHP INI Editor<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor.jpg\" class=\"attachment-full size-full\" alt=\"MultiPHP INI Editor\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the new window, <strong>select your domain from the dropdown menu<\/strong>, locate the <em>max_execution_time<\/em> PHP directive, and <strong>change the value associated with it to 300<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/3-Select-your-domain.jpg\" class=\"attachment-full size-full\" alt=\"Select your domain\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/3-Select-your-domain.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/3-Select-your-domain-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/3-Select-your-domain-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]To finish, <strong>press the Apply button at the bottom<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Editing the php.ini file in cPanel<\/strong><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]There\u2019s another way to change the same value in cPanel. If you are already logged in, navigate to the <em>Software<\/em> section and click on <em>MultiPHP INI Editor<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor.jpg\" class=\"attachment-full size-full\" alt=\"MultiPHP INI Editor\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/2-MultiPHP-INI-Editor-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the new window,<strong> find and select the <em>Editor Mode<\/em> tab<\/strong> on the top and then choose your domain from the dropdown underneath. In the field below that, insert the following line of code:[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">max_execution_time = 300;<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;18px&#8221;][vc_column_text]If the field already contains code for max_execution_time then simply replace the value with 300.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/5-Replace-the-value-with-300.jpg\" class=\"attachment-full size-full\" alt=\"Replace the value with 300\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/5-Replace-the-value-with-300.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/5-Replace-the-value-with-300-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/5-Replace-the-value-with-300-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]To finish, click the <em>Save<\/em> button.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Editing the .htaccess file via FTP<\/strong><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]In case you don\u2019t have access to a hosting control panel, you can <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-use-ftp\/\">increase the max_execution_time via FTP<\/a> just as easily. <strong>Connect to your server<\/strong> using your FTP credentials and navigate to the root WordPress directory (usually called <em>public_html<\/em>). Then <strong>find the .htaccess file<\/strong> within. If you don\u2019t see it, it\u2019s likely hidden, so you need to enable <a href=\"https:\/\/qodeinteractive.com\/magazine\/find-htaccess-file-on-wordpress-site\/\">showing hidden files in your FTP client<\/a>. <strong>For example, in FileZilla, the option is called <em>Force showing hidden files<\/em> and you can find it under the <em>Server<\/em> tab<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg\" class=\"attachment-full size-full\" alt=\"Force showing hidden files\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Once you locate the <strong>.htaccess file, right-click<\/strong> on it and <strong>select <em>View\/Edit<\/em><\/strong> from the dropdown menu.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"376\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit.jpg\" class=\"attachment-full size-full\" alt=\"Htaccess edit\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit-300x159.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit-620x328.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Open the file using a text editor and then add the following code at the bottom:[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php_value max_execution_time 300<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/7-Open-the-file-using-a-text-editor.jpg\" class=\"attachment-full size-full\" alt=\"Open the file using a text editor\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/7-Open-the-file-using-a-text-editor.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/7-Open-the-file-using-a-text-editor-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/7-Open-the-file-using-a-text-editor-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Save the changes. <strong>Upload the edited file back to your server to overwrite the old one<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you are unable to edit the .htaccess file, it is most likely that the file permissions need to be adjusted. You can <a href=\"https:\/\/qodeinteractive.com\/magazine\/set-file-and-folder-permissions-in-wordpress\/\">set file permissions<\/a> for the .htaccess file to<strong> Read and Write by typing in 644<\/strong>. You do that by locating the .htaccess file, right-clicking on it, and selecting the <em>File permissions\u2026<\/em> option. Find the <em>Numeric value<\/em> field, type in the number <em>644<\/em>, and then press <em>OK<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions.jpg\" class=\"attachment-full size-full\" alt=\"Set file permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Now go back to <em>editing the .htaccess file<\/em>. <strong>Change the execution time by adding the php_value max_execution_time 300 code<\/strong>\u2014just as outlined above. <strong>Save changes and upload the edited file<\/strong> to your server to overwrite the old one.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Editing the wp-config.php file via FTP<\/strong><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]You can also increase the max_execution_time value by editing the wp-config.php file. Connect to your server via FTP and navigate to the root WordPress directory (usually called <em>public_html<\/em>). Locate the<em> wp-config.php<\/em> file, right-click on it and select <em>View\/Edit<\/em> from the dropdown menu.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit.jpg\" class=\"attachment-full size-full\" alt=\"WP Config Edit\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Open the file using a text editor and find the <strong><em>\/* That&#8217;s all, stop editing! Happy blogging. *\/<\/em> <\/strong>line. Immediately above it insert this code:[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">set_time_limit(300);<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/9-Open-the-file-using-a-text-editor.jpg\" class=\"attachment-full size-full\" alt=\"Open the file using a text editor\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/9-Open-the-file-using-a-text-editor.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/9-Open-the-file-using-a-text-editor-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/9-Open-the-file-using-a-text-editor-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you are unable to edit the wp-config.php file, it is most likely that the file permissions need to be adjusted. <strong>The default permissions for it are usually set to 440 or 400. Those permissions only give reading privileges, so you need to temporarily set them to 644 or 666 so you can write as well<\/strong>. You can change the privileges by right-clicking on the wp-config.php file and selecting the <em>File permissions\u2026<\/em> option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1.jpg\" class=\"attachment-full size-full\" alt=\"File permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Find the <em>Numeric value<\/em> field and<strong> type in 644 or 666 there<\/strong>. Press <em>OK<\/em> to finish.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions.jpg\" class=\"attachment-full size-full\" alt=\"Set file permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/8-Set-file-permissions-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Then edit the <em>wp-config.php<\/em> file as outlined above. When you\u2019re done, <strong>save the file and upload it to your server to overwrite the old one<\/strong>. After that (and once you checked if the error is gone), <strong>change the permission on the <em>wp-config.php<\/em> file back to 440 or 400<\/strong>.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_empty_space height=&#8221;81px&#8221;][vc_widget_sidebar sidebar_id=&#8221;latest-themes&#8221;][vc_empty_space height=&#8221;84px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"disabling-the-plugins-and-theme\"><\/a>Disabling the Plugins and Theme<\/h3>\n<p>[\/vc_column_text][vc_column_text]If you tried increasing the execution time allowed and it hasn\u2019t helped, then the <strong>error might be caused by a faulty plugin or theme<\/strong>. To check if this is the case, log in to your WordPress admin dashboard and navigate to <em>Plugins &gt; Installed Plugins<\/em>. Then <strong>start deactivating your plugins one at a time<\/strong>. <strong>Deactivate one, then check if the error is still present; carry on like this until you\u2019ve examined all your plugins<\/strong>. Once the error stops showing, the last plugin you disabled was causing the problem.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you tested all the plugins, and still haven\u2019t found the problem, then you should <strong>try switching your current theme to another<\/strong>. We suggest using one of the WordPress default themes, like Twenty Twenty. If the error notice stops after you switch themes, then your theme was causing the problem.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you are using WordPress versions 5.2 or above, then this can be solved even easier. Any fatal error should prompt newer WordPress versions to send a message to the admin email address. This message will include information <em><a href=\"https:\/\/make.wordpress.org\/core\/2019\/04\/16\/fatal-error-recovery-mode-in-5-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">which plugins\/themes are currently paused due to fatal errors, and what exactly these errors are<\/a><\/em>. You will be provided a link so you can access recovery mode and proceed with troubleshooting from there.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]So, once you\u2019ve determined whether the theme or the plugin caused the error you should contact its authors for further help.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"asking-your-hosting-provider\"><\/a>Asking Your Hosting Provider<\/h3>\n<p>[\/vc_column_text][vc_column_text]In case you tried all our suggestions and the error is still showing then you should <strong>reach out to your hosting provider<\/strong>. Ask them if the values for max_execution_time can be increased and by how much. Feel free to request that they change values on your behalf.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]The <em>Maximum execution time<\/em> exceeded error is a relatively common one and now you\u2019ve seen it has a few straightforward solutions. We hope that the steps and methods we\u2019ve shown you here will help you troubleshoot it with ease. Feel free to bookmark or save this page so you can refer back to these tips in case you need them again.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Don&#8217;t bang your head if you get a maximum execution time of 30 seconds exceeded error in WordPress. Take a look at our tutorial and learn how to fix it.<\/p>\n","protected":false},"author":11229,"featured_media":7708,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[14,4,52,13],"class_list":["post-7461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-core","tag-tips","tag-troubleshooting","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/7461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/11229"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=7461"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/7461\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/7708"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=7461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=7461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=7461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}