Title: Fatal database-error
Last modified: August 19, 2016

---

# Fatal database-error

 *  [iskwew](https://wordpress.org/support/users/iskwew/)
 * (@iskwew)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/)
 * Since upgrading to 2.3.x I have been getting an error message, when editing any
   posts:
 * Fatal error: Allowed memory size of 16777216
    bytes exhausted (tried to allocate
   354231 bytes) in /customers/iskwew.com/iskwew.com/httpd.www/b logg/wp-includes/
   wp-db.php on line 123
 * My webhotel (One.com) say that they only allocate 16 MB worth of resources to
   each user, and thats all they can say.
 * Is there anything in the setup I can do, which will fix this issue? Oddly enough,
   everything is posted, even though it is saying it cannot allocate the resources.
 * Thanks in advance for any advice on/solution to this problem.
 * Iskwew

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

 *  [yogipress](https://wordpress.org/support/users/yogipress/)
 * (@yogipress)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/#post-689810)
 * at the risk of assuming your setup, try adding this to your apache .htaccess 
   file.
 * `php_value memory_limit 128M`
 *  Thread Starter [iskwew](https://wordpress.org/support/users/iskwew/)
 * (@iskwew)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/#post-689812)
 * Thanks for replying!
 * What does that do, if the problem is resources allocated by the server?
 *  [yogipress](https://wordpress.org/support/users/yogipress/)
 * (@yogipress)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/#post-689815)
 * hmm mmm-kay, let me back up for a second.
 * instead of the apache `.htaccess` file, try changing the `php.ini` file. you 
   are looking for the following section:
 *     ```
       ;;;;;;;;;;;;;;;;;;;
       ; Resource Limits ;
       ;;;;;;;;;;;;;;;;;;;
   
       max_execution_time = 30     ; Maximum execution time of each script, in seconds
       max_input_time = 60	; Maximum amount of time each script may spend parsing request data
       memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
       ```
   
 * change the 8M to 28M.
    then give it another go.
 * * crosses fingers *
 *  Thread Starter [iskwew](https://wordpress.org/support/users/iskwew/)
 * (@iskwew)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/#post-689816)
 * Poor you, you are going to get stupid questions :o) (I’m pretty clueless).
 * Where is the php.ini file located? I can’t find it :o/
 *  Thread Starter [iskwew](https://wordpress.org/support/users/iskwew/)
 * (@iskwew)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/#post-689817)
 * I don’t have php on the domain, it sits on the service provider.
 * htaccess I find, but not the php.ini
 *  [yogipress](https://wordpress.org/support/users/yogipress/)
 * (@yogipress)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/#post-689823)
 * there are no stupid questions. you are not clueless. the software just needs 
   more elbow grease in the user experience department. 🙂 ask away…
 * let’s try to work with what you have, try the `.htaccess` fix i mentioned first.
 * hope we can find the solution.

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

The topic ‘Fatal database-error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [yogipress](https://wordpress.org/support/users/yogipress/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/fatal-database-error/#post-689823)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
