Blog Details

How to fixed WordPress Error: Maximum Execution Time 30 Seconds Exceeded or upload maximum file size exceeded 4MB in php.ini file?

Publish by Sifur Rahaman March 25, 2021, 2:55 pm

How-to-fixed-WordPress-Error-Maximum-Execution-Time-30-Seconds-Exceeded-or-upload-maximum-file-size-exceeded-4MB-in-php-ini-file

When you upload a WordPress theme or plugins or update WordPress or any plugins in your WordPress dashboard than you see a Fatal error: Maximum execution time of 30 seconds exceeded "max_execution_time 30 second exceeded" Or Maximum Upload File Size 2MB Exceeded "upload_max_filesize directive in php.ini" on your dashboard screen.

Why show this fatal error : Maximum Execution Time Of 30 Seconds Exceeded or Maximum Upload File Size 2MB Exceeded?

Naturally this problem occurs when a PHP code in WordPress takes a long time to upload or update and reaches the maximum time limit or maximum upload file size set by your WordPress hosting server. The time limit or file size is very important because it helps prevent to misuse of server resources.

In this blog, I will show you how to fixed this Fatal error and increase: Maximum Execution Time 30 Seconds Exceeded to 300 Seconds or 600 Seconds and maximum upload file size 2MB exceeded to 128MB in our WordPress CMS.

WordPress code is mainly PHP programming language. This program help to protect web servers from misuse, this time limit set for how long run a PHP Script Code or how much file size upload in a time.

The actual time limit and upload file size limit depends on hosting companies, however most of the times the maximum execution time is set between 30 – 60 seconds and maximum upload file size limit is 2MB, because that’s naturally enough for run a good PHP script and  uploads Wordpress themes and plugins.

When a PHP Script or a file  reache the Maximum Execution Time or Size Limit then show Error message  "Maximum Execution Time 30 Seconds Exceeded" Or" upload_max_filesize directive in php.ini".

Fixed This Problem:

I have uses multiple method to set or increases the value for maximum execution time 30 Seconds to 300 seconds (5 minutes) and upload file size limit 2mb to 128mb.

Method 1 (.htaccess) : 

If you use a local server then you go to your server directory and open your directory folder and create a new file .htaccess and open this file any html code editor and write the below code.

php_value upload_max_filesize 128M

php_value post_max_size 100M

php_value max_execution_time 300

php_value max_input_time 300

If you see this Maximum Execution Time 30 Seconds Exceeded Or Maximum Upload File Size 2MB Exceeded Error in your live server, then at first login your cpanel and click file manager then open your public_html directory. Now go to setting menu and click "Show hidden file" then save this. Now you see a .htaccess file in your home directory (public_html). Now edit this file and use upper code.

Method 2 (wp-config.php) :

If you want to use this method to fixed WordPress Maximum Execution Time 30 Seconds Exceeded Error then at first open your theme directory from local server or live server. Now edit wp-config.php file and replace the below code.

set_time_limit(300);

@ini_set( ‘upload_max_size’ , ’128M’ );

@ini_set( ‘post_max_size’, ’128M’);

@ini_set( ‘memory_limit’, ’500M’ );

Method 3 (php.ini file) :

If you want to use this method to prevent your Wordpress Maximum Execution Time 30 Seconds Exceeded or Maximum Upload File Size 2MB Exceeded Error then at first open your theme directory from local server or live server. Now edit php.ini file and replace the below code.

post_max_size = 128M

upload_max_filesize = 128M

max_execution_time = 300

max_input_time = 5000

memory_limit = 1000M

The php.ini file is a configuration file that defines settings for PHP on your server. Some WordPress hosting platforms you may not see it inside your WordPress folder.

In that case, you can create a new php.ini file inside your WordPress root directory. After that, edit the php.ini file and add the following line.

Now save this php.ini file and upload your changes back to the server. You can now visit your website and you see your Wordpress error maximum execution time 30 second exceeded has gone.

In most cases, increasing maximum execution time using either of these three methods will resolve the error.

I suggest to you using first method (.htaccess) method to resolve WordPress error.

However if it doesn’t, then you need to contact your WordPress hosting provider for assistance.

I hope this article helped to you fixed the fatal error: maximum execution time exceeded in WordPress.

Important Articales

What-is-schema-markup-generator-and-tester-Google-faq-schema-markup-testing-tool

What is schema markup generator and tester | Google faq schema markup testing tool

  

If you want to know what is schema markup generator and schema markup tester also you want to know google faq scheme markup testing tool and scheme markup seo with example then you land the right article. Today we will learn schema markup generator, Scheme markup tester, schema markup testing tool, schema markup seo, google faq schema markup tool and article schema markup with example. Not only that today we also learn what is schema markup Wordpress and how to add schema...Read more..

I-am-not-getting-orders-on-fiverr-even-I-have-a-good-impression-of-Gig

I am not getting orders on fiverr even I have a good impression of Gig?

You can not get any order in Fiverr even though you have a good impression of Gig?

Or when you first uploaded the gig you got a lot of orders but now you can not getting orders on fiverr. If you have this problem then this post is for you. Today we will learn why I do not get orders on fiverr and if I do I will get orders.

I am Sifur Rahaman starting another new fiverr tutorial. Today we will learn how to get orders from the old gig. In other words, before you  get orders, but for some time now you are not getting any orders on fiverr in that gig....Read more..

How-to-get-first-order-in-fiverr-and-how-to-optimize-my-fiverr-account

How to get first order in fiverr and how to optimize my fiverr account?

I am Sifur Rahaman. I am a Frontend and Backend Web Development Expert. Today I will show you how to get your first order on Fiverr and how to optimize your Fiverr Gig and Account.

Earlier I give a tutorial about Fiverr Gig SEO where many people commented that I have made a complete tutorial on how to get the first order in Fiverr. At the same time, I give a tutorial on how to optimize my Fiverr gig and account. That's why today's tutorial. Hopefully, after watching today's...Read more..

How-to-fixed-WordPress-Error-Maximum-Execution-Time-30-Seconds-Exceeded-or-upload-maximum-file-size-exceeded-4MB-in-php-ini-file

How to fixed WordPress Error: Maximum Execution Time 30 Seconds Exceeded or upload maximum file size exceeded 4MB in php.ini file?

When you upload a WordPress theme or plugins or update WordPress or any plugins in your WordPress dashboard than you see a Fatal error: Maximum execution time of 30 seconds exceeded "max_execution_time 30 second exceeded" Or Maximum Upload File Size 2MB Exceeded "upload_max_filesize directive in php.ini" on your dashboard screen.

Why show this fatal error : Maximum Execution Time Of 30 Seconds Exceeded or Maximum Upload File Size 2MB Exceeded?

Naturally this problem occurs when...Read more..

How-to-Optimize-your-fiverr-gig-or-SEO

How to Optimize your fiverr gig or SEO

If you want to bring your gig in Fiverr to the first page in Fiverr search results then you must do Fiverr gig SEO or optimize. Now the question is what is Fiverr gig? How is a gig created and how is it optimized or SEO done?

I hope you all can make a gig if you can't make it then just search on Youtube.com by writing how to create a Fiverr gig. You will see at least 100 videos. So no tension.

Now let's get to the basics, gig how to SEO or optimize?

To do Fiverr gig SEO, you have to do keyword...Read more..

Complete-guidelines-for-becoming-a-successful-freelancer-A-to-Z

Complete guidelines for becoming a successful freelancer A to Z.

Do you want to make money online? Want to make money from freelancer.com, upwork.com, fiverr.com and other online markets? If you don't know any work then this website is for you. We will teach you how to make money online. If you read this article well, you will get the complete idea of ​​making money online. From this tutorial, we will take a look at how to make money online. So let's get started:

1. You have to be committed that you will earn money from online

2. You have to work hard. I have to work at night.

3. Must know English fairly well....Read more..

How-to-learn-HTML5-and-CSS3-with-a-expert-Designer-for-Beginner-to-Advance-level

How to learn HTML5 and CSS3 with a expert Designer for Beginner to Advance level

If you learn to freelance? You are a beginner level? No problem this website is for you. We are committed to you we are made to you beginner to advance level. Very recently you perform as a professional freelancer. If you want to build your carrier via Freelancer.com, Fiverr.com, and other freelancer market place then you must know some things. If you don't know anything then you can learn web design by watching the HTML tutorial on this website and build your career online.

Why you...Read more..

Bootstrap-5-tutorial-How-to-learn-Bootstrap-5-for-Beginner-to-Advance-level

Bootstrap 5 tutorial: How to learn Bootstrap 5 for Beginner to Advance level

Bootstrap is the most popular front-end and backend html5 framework. This bootstrap is used to modern design and build responsive websites. The updated version is Bootstrap 5. Some changes have been made from Bootstrap 4 to Bootstrap 5. Major changes in Bootstrap 5 is:

# No need to use extra jQuery on Botstrap 5.

#Bootstrap 5 bootstrap.bundle.min.js This jQuery file is attached. Because of this there is no need to use a separate jQuery. If you start web design with Bootstrap 5, you will not need a separate jQuery to run the template....Read more..

WordPress-tutorial-How-to-learn-WordPress-for-Beginner-to-Advance-level

WordPress tutorial: How to learn WordPress for Beginner to Advance level

Hello friends, How are you. I hope you are well. Today I talk to you about WordPress CMS. What is CMS? CMS is Content Management System like Blog, Newspaper, Wo-commerce etc. WordPress market size is very big and if you go to the fiverr.com and freelancer.com then see many many work in fever of WordPress.

WordPress is a website builder and content management system. It is an open source software that can make any website user friendly without much effort. It started as a blogging platform in 2003 but was soon transformed into a CMS and later a full fledged website building...Read more..

Free-JavaScript-tutorial-How-to-learn-JavaScript-for-Beginner-to-Advance-level

Free JavaScript tutorial: How to learn JavaScript for Beginner to Advance level

javaScript is a very powerful scripting language. JavaScript is primarily used to enhance a user's connection to a website page. In other words, you can make your website page more Reliable and Interactive with JavaScript. JavaScript is widely used in game development and mobile application, Build Website, E-Commerce Marketing, Online Shopping website development.
Developing a website with JavaScript completes the website much faster. Object oriented programs are created using JavaScript. A part from this all other types of websites can be developed. Such...Read more..

PHP-Free-Tutorials-How-to-learn-PHP-and-Develop-front-end-and-backend-website-for-Beginner-to-Advance-level

PHP Free Tutorials: How to learn PHP and Develop front end and backend website for Beginner to Advance level

PHP is a open source scripting programming language. PHP is a mother of programming language for a PHP developer. If you will be a professional front end and backend website developer or a professional full stack web programmer then you must be know PHP language. That is very similarly to "C" programming but has a few small differences.
A most feature of PHP: It is very flexible and easy learns for beginners and very easy to develop front end backend...Read more..