Tag - Time

Maximum Execution Time Exceeded in WordPress


Are you seeing ‘Fatal error: Maximum execution time of 30 seconds exceeded’ on your screen when trying to update a WordPress plugin or theme?

Typically this problem occurs when a PHP code in WordPress takes a long time to run and reaches the maximum time limit set by your WordPress hosting server. The time limit is important because it helps prevent the abuse of server resources.

In this article, we will show you how to fix the fatal error: maximum execution time exceeded in WordPress.

Fix Fatal Error: Maximum Execution Time Exceeded in WordPress Easily

Why Maximum Execution Time Exceeded Error Occurs?

WordPress is coded mainly in the PHP programming language. To protect web servers from abuse, there is a time limit set for how long a PHP script can run.

The actual time limit varies across hosting companies, however most of the times the maximum execution time is set between 30 – 60 seconds because that’s usually enough for a good PHP script to run.

When a script reaches the maximum execution time limit, it results in maximum execution time exceeded error.

Maximum Execution Time of 30 Seconds Exceeded Error in WordPress

Fixing Maximum Execution Time Exceeded Error

Although Maximum Execution Time Exceeded error is named a ‘fatal error,’ it is one of the most common WordPress errors, and you can easily resolve this.

Depending on when and where the error is triggered, WordPress may show the following error message to your website visitors.

Technical difficulties

This is part of the fatal error protection feature added in WordPress 5.2. You may also receive an email that will tell you which plugin (if a plugin triggered the error) caused the issue.

Technical issue email sent to admin

The email will also include a special link, which will allow you to log in to WordPress with ‘Recovery mode’.

Recovery mode

Once there, you can simply deactivate or delete the plugin causing the error.

However, if you don’t want to deactivate a plugin, then you can fix the underlying cause that triggered the error.

To fix the error, you will need to manually edit your .htaccess file and add a simple line of code.

Simply connect to your website using an FTP client.

Your .htaccess file is located in the same folder as your /wp-content/ and /wp-admin/ folders. If you can’t find it, then look at our article on why you can’t find the .htaccess file and how to find it.

For example, if you are using FileZilla as your FTP client, then you can find it in the ‘Remote Site’ section on the right-hand column.

WordPress .htaccess File in Filezilla

Once you locate the .htaccess file, right-click and open ‘View/Edit’ option. This will open the file with in a text editor.

View/Edit .htaccess File in WordPress

Next, you need to add this line at the bottom of your .htaccess file:

php_value max_execution_time 300

If you are using Notepad as your text editor, here is how it may look.

Adding Code to .htaccess File WordPress

Once done, save your file.

This code simply sets the value for maximum execution time to 300 seconds (5 minutes). You can now visit your website to see if the error is resolved.

If you still get the error, then try increasing the value to 600.

If you found this method easier, then check out these most useful .htaccess tricks for WordPress.

Another method to fix the maximum execution time exceeded error in WordPress is by modifying your php.ini file.

The php.ini file is a configuration file that defines settings for PHP on your server. On many 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 folder. After that, edit the php.ini file and add the following line.

max_execution_time = 60

Don’t forget to save and upload your changes back to the server. You can now visit your website and to see if the error has gone.

In most cases, increasing maximum execution time using either of these two methods will resolve the error. However if it doesn’t, then you need to contact your WordPress hosting provider for assistance.

We hope this article helped you fix the fatal error: maximum execution time exceeded in WordPress. You may also want to see our guide on how to fix the error establishing a database connection in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.



Source link

85+ Most Useful Time Saving WordPress Keyboard Shortcuts


Did you know that there are some really useful WordPress keyboard shortcuts that can save you a lot of time?

If you want to write faster, or become more productive in managing your WordPress site, then you need to use these shortcuts.

In this article, we will share the most useful WordPress keyboard shortcuts that can help speed up your workflow. We have also updated this guide to add helpful Gutenberg keyboard shortcuts as well.

Most Useful WordPress Keyboard Shortcuts

WordPress Keyboard Shortcuts for Speed and Efficiency

WordPress is a popular website builder and blogging platform that comes with a robust content editor.

The content editor lets you add various types of content including text, images, audio, videos, etc. to your site. You can also customize the formatting for each content type.

Many WordPress beginners use their mouse to access these formatting and styling buttons on the editor. With WordPress keyboard shortcuts, you can rest your hands on the keyboard and edit your posts faster.

The best thing about using WordPress shortcuts is that many of your computer and Microsoft Word shortcuts work similarly in the WordPress content editor.

Below are some of the standard WordPress keyboard shortcuts that you can use for speed and efficiency. They work with both the WordPress block editor and the old classic editor.

WordPress Keyboard Shortcut for Windows users:

  • Ctrl + c = Copy
  • Ctrl + v = Paste
  • Ctrl + b = Bold
  • Ctrl + i = Italic
  • Ctrl + x = Cut
  • Ctrl + a = Select All
  • Ctrl + z = Undo
  • Ctrl + s = Save your changes
  • Ctrl + p = Print
  • Ctrl + u = Underline the selected text
  • Ctrl + k = Convert the selected text into a link
  • Alt + Shift + x = Display the selected text in a monospaced font
  • Alt + Shift + h = Show keyboard shortcuts (Display this help)

WordPress Keyboard Shortcut for Mac users:

  • Command + c = Copy
  • Command + v = Paste
  • Command + b = Bold
  • Command + i = Italic
  • Command + x = Cut
  • Command + a = Select All
  • Command + z = Undo
  • Command + s = Save your changes
  • Command + p = Print
  • Command + u = Underline the selected text
  • Command + k = Convert the selected text into a link
  • Option + Control + x = Display the selected text in a monospaced font
  • Option + Control + h = Show keyboard shortcuts (Display this help)

When you are working in your WordPress page/post editor, you can try out these keyboard shortcuts and see how they work.

Before moving to the next section, we would like to show you how the last shortcut in the above list works. The shortcut Alt + Shift + h (Option + Control + h for Mac) actually is the most useful shortcut because it shows you all the keyboard shortcuts.

When you are in your WordPress page/post editor, you can use this shortcut to see all available keyboard shortcuts in a popup window.

Display WordPress Keyboard Shortcuts Option

Time Saving Gutenberg Keyboard Shortcuts for WordPress Block Editor

The new WordPress Gutenberg editor is a fully block-based editor in which you use various blocks to create content.

The block editor supports all the standard keyboard shortcuts mentioned earlier, but there are more Gutenberg specific keyboard shortcuts.

Below are the most useful Gutenberg keyboard shortcuts that you can use.

Gutenberg Keyboard Shortcut for Windows users:

  • Enter = Add a new block
  • Ctrl + Shift + d = Duplicate the selected block(s)
  • Alt + Shift + z = Remove the selected block(s)
  • Ctrl + Alt + t = Insert a new block before the selected block(s)
  • Ctrl + Alt + y = Insert a new block after the selected block(s)
  • / = Change the block type after adding a new paragraph
  • Esc = Clear selection
  • Ctrl + Shift + z = Redo your last undo
  • Ctrl + Shift + , = Show or hide the settings bar
  • Alt + Shift + o = Open the block navigation menu
  • Alt + Shift + n = Navigate to the next part of the editor
  • Alt + Shift + p = Navigate to the previous part of the editor
  • Alt + F10 = Navigate to the nearest toolbar
  • Ctrl + Shift + Alt + m = Switch between Visual Editor and Code Editor

Gutenberg Keyboard Shortcut for Mac users:

  • Enter = Add a new block
  • / = Change the block type after adding a new paragraph
  • Command + Shift + d = Duplicate the selected block(s)
  • Control + Option + z = Remove the selected block(s)
  • Command + Option + t = Insert a new block before the selected block(s)
  • Command + Option + y = Insert a new block after the selected block(s)
  • Esc = Clear selection
  • Command+ Shift + z = Redo your last undo
  • Command + Shift + , = Show or hide the settings bar
  • Option + Control + o = Open the block navigation menu
  • Option + Control + n = Navigate to the next part of the editor
  • Option + Control + p = Navigate to the previous part of the editor
  • fn + Option + F10 = Navigate to the nearest toolbar
  • Command + Option + Shift + m = Switch between Visual and Code Editor

Keyboard Shortcuts for Classic WordPress Editor

If you are still using the classic WordPress editor, then you are actually missing out on a lot of cool new features and a faster writing experience. We recommend updating WordPress to the latest version or simply deactivate the classic editor plugin.

However, if you must use the old classic editor, then you can take advantage of these keyboard shortcuts.

The classic WordPress editor supports all the standard WordPress keyboard shortcuts mentioned at the top of this article, and some other shortcuts given below.

Classic Editor Keyboard Shortcut for Windows:

  • Ctrl + y = Redo
  • Alt + Shift + [number] = Insert heading sizes, e.g. Alt + Shift + 1 = <h1>, Alt + Shift + 2 = <h2>.
  • Alt + Shift + l = Align Left
  • Alt + Shift + j = Justify Text
  • Alt + Shift + c = Align Center
  • Alt + Shift + d = Strikethrough
  • Alt + Shift + r = Align Right
  • Alt + Shift + u = Unordered List
  • Alt + Shift + a = Insert link
  • Alt + Shift + o = Numeric List
  • Alt + Shift + s = Remove link
  • Alt + Shift + q = Quote
  • Alt + Shift + m = Insert Image
  • Alt + Shift + t = Insert More Tag
  • Alt + Shift + p = Insert Page Break tag
  • Alt + Shift + w = Full screen distraction free writing mode in visual editor mode
  • Alt + Shift + f = Fullscreen distraction free writing in plain text mode

Classic Editor Keyboard Shortcut for Mac users:

  • Command + y = Redo
  • Command + Option + [number] = Insert heading sizes, e.g. Alt + Shift + 1 = h1, Alt + Shift + 2 = h2
  • Command + Option + l = Align Left
  • Command + Option + j = Justify Text
  • Command + Option + c = Align Center
  • Command + Option + d = Strikethrough
  • Command + Option + r = Align Right
  • Command + Option + u = Unordered List
  • Command + Option + a = Insert link
  • Command + Option + o = Numeric List
  • Command + Option + s = Remove link
  • Command + Option + q = Quote
  • Command + Option + m = Insert Image
  • Command + Option + t = Insert More Tag
  • Command + Option + p = Insert Page Break tag
  • Command + Option + w = Full screen distraction free writing mode in visual editor mode
  • Command + Option + f = Fullscreen distraction free writing in plain text mode

WordPress Keyboard Shortcuts for Comments Screen

If you receive a lot of comments, then you can moderate comments quickly using keyboard shortcuts for comment management. However, these shortcuts are not enabled by default.

To enable these keyboard shortcuts, you need to go to Users » Your Profile and check Keyboard Shortcuts checkbox.

Enable Keyboard Shortcuts for Comments Moderation in WordPress

After that, you need to click the Save Profile button and go back to the comments screen in the admin area. The available shortcuts are:

  • J = Next comment (moves the current selection down)
  • K = Previous comment (moves the current selection up)
  • A = Approve comment
  • U = Unapprove comment
  • D = Delete comment
  • R = Reply comment
  • Q = Quick edit a comment
  • Z = Restore Comment from Trash or Undo if you Delete a comment

To select multiple comments press X to check the selected comment and press J or K keys to move to next or previous comment. Once you have selected multiple comments, you can use these keyboard shortcuts to perform bulk actions:

  • Shift + A = Approve checked comments
  • Shift + D = Delete checked comments
  • Shift + U = Unapprove selected comments
  • Shift + T = Move selected comments to trash
  • Shift + Z = Restore selected comments from trash

It might take some time to get used to of these WordPress keyboard shortcuts, but in the long run they will definitely help you save time and speed up the process.

We hope this article helped you to learn the most useful time-saving WordPress keyboard shortcuts. You may also want to see our guide on how to increase your blog traffic by 406%.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post 85+ Most Useful Time Saving WordPress Keyboard Shortcuts appeared first on WPBeginner.



Source link