Title: timeout for 404 pages
Last modified: August 20, 2016

---

# timeout for 404 pages

 *  Resolved [sniff99](https://wordpress.org/support/users/sniff99/)
 * (@sniff99)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/)
 * Hi,
    when I request non-existent page on my WP blog, e.g. domain.com/xxxxxxxxxx,
   I get long waiting and then empty page (after ~30 seconds). I can see timeouts
   in my apache log: `[Tue Oct 30 20:00:56 2012] [error] [client xx.xx.xx.xx] PHP
   Fatal error: Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.
   xx/wordpress/wp-content/plugins/shorten-url/core.class.php on line 282`
 * and huge number of mysql requests like:
    `SELECT id_post FROM wp_pluginSL_shorturl
   WHERE short_url='nDOTy'`
 * in my mysql debug log during these 30 seconds, where ‘nDOTy’ is always different
   string.
 * By debugging the code, the SELECT is from get_short_link_filter() function (line
   601).
 * Finally, the script times out and I always get empty page. When I request a valid
   shorten url or a valid post url, everything works fine. It is a problem just 
   with any non-existent page.
 * Where could be a problem, please?
 * Thanks
 * [http://wordpress.org/extend/plugins/shorten-url/](http://wordpress.org/extend/plugins/shorten-url/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [sniff99](https://wordpress.org/support/users/sniff99/)
 * (@sniff99)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/#post-3156181)
 * just another remark: the Fatal error in the Apache log is always on different
   line of different script (depends on what point of processing the apache is when
   that 30 seconds timeout happens):
 *     ```
       [[Wed Oct 31 01:09:34 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/plugin.php on line 146
       [Wed Oct 31 01:10:06 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/plugin.php on line 134
       [Wed Oct 31 01:10:37 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/cache.php on line 402
       [Wed Oct 31 01:11:06 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/functions.php on line 249
       [Wed Oct 31 01:11:39 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/wp-db.php on line 1098
       [Wed Oct 31 01:12:08 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-content/plugins/shorten-url/core/utils.class.php on line 107
       [Wed Oct 31 01:12:38 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/functions.php on line 383
       [Wed Oct 31 01:13:39 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/functions.php on line 0
       [Wed Oct 31 01:15:08 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-content/plugins/shorten-url/core/utils.class.php on line 106
       [Wed Oct 31 01:17:10 2012] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/www/xxxxxxx.xx/wordpress/wp-includes/functions.php on line 268
       ```
   
 * Also need to mention that when I deactivate the shorten-url plugin, the problem
   disappears.
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/#post-3156310)
 * … Yes I believe that I understand the problem
 * I will try to fix it
 * Keep in touch
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/#post-3156348)
 * The next version (that will be release in few days) correct this issue
 *  Thread Starter [sniff99](https://wordpress.org/support/users/sniff99/)
 * (@sniff99)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/#post-3156349)
 * That’s great!
    Thank you and happy NEW Year!
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/#post-3156350)
 * should now work
 *  Thread Starter [sniff99](https://wordpress.org/support/users/sniff99/)
 * (@sniff99)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/#post-3156351)
 * Yes, confirming the problem is gone. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘timeout for 404 pages’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shorten-url_ffffff.svg)
 * [Short URL](https://wordpress.org/plugins/shorten-url/)
 * [Support Threads](https://wordpress.org/support/plugin/shorten-url/)
 * [Active Topics](https://wordpress.org/support/plugin/shorten-url/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shorten-url/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shorten-url/reviews/)

## Tags

 * [timeout](https://wordpress.org/support/topic-tag/timeout/)

 * 6 replies
 * 2 participants
 * Last reply from: [sniff99](https://wordpress.org/support/users/sniff99/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/timeout-for-404-pages/#post-3156351)
 * Status: resolved