Support » Fixing WordPress » Too many pages custom permalinks = fatal error

  • For one of my sites I’m using wordpress essentially as a cms and currently have 2050 pages (no posts). I have noticed as I’ve added pages it has taken an increasingly long time to publish (now somewhere around 30-40 seconds). I am now getting this error on the frontend:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/.serverdetail/user/domain.com/wp-includes/rewrite.php on line 848

    I’ve trawled through forums and figured out that this is all to do with the permanlinks rewriting (in my case using /%category%/%postname%/. But I have the problem now that although my backend is largely functional and I can login and navigate around, anything to do with pages (edit, add new) and the permalinks settings will bring about the same fatal error as I’m getting in the front end. Any thoughts much appreciated on how I could firstly stop the error, and secondly how I can keep this custom permalink structure but eliminate the ungodly hang time when publishing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same error.

    http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

    “For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text “page slug” as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best to start your permalink structure with a numeric field, such as the year or post ID.”

    What I don’t know is if the problem will go away if you switch your permalink structure and how you would clean up the database if it doesn’t.

    We have a version with many pages (over 500) running and only use a date structure /%year%/%monthnum%/%day%/%postname%/ with the permalinks. However, we have few posts on the site. Does WordPress have a page limit? Our pages sometimes run 4 pages deep in the site and we are now experiencing the Fatal error: Maximum execution time of 30 seconds exceeded … /wp-includes/rewrite.php on line 848. This error renders the entire site useless.

    My site is turning up the same thing?

    Has anyone come up with a way to fix it?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Too many pages custom permalinks = fatal error’ is closed to new replies.