Title: Error Message
Last modified: August 20, 2016

---

# Error Message

 *  Resolved [comiendorico](https://wordpress.org/support/users/comiendorico/)
 * (@comiendorico)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/error-message-132/)
 * I’m trying to place a widget called “rokgallery” in most of my pages, but when
   I’m trying to place the first gallery, I get the following message —
 * Fatal error: Allowed memory size of 171966464 bytes exhausted (tried to allocate
   24149973 bytes) in /home/content/03/6698603/html/comiendorico/wp-includes/wp-
   db.php on line 853
 * How can I fix it, where can I find the following file /home/content/03/6698603/
   html/comiendorico/wp-includes/wp-db.php
 * Thank you

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

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/error-message-132/#post-3108435)
 * First you should examine the sizes of the images you are trying to load. Most
   of the time it is not useful to have images much larger than 1000px x 800px, 
   and not larger than about 200K. If your images exceed these limits you should
   probably resize them.
 * If your images have already been optimized for the web, then you may need to 
   cut down on the number shown in the gallery.
 * If neither of these things work, here are some ways that I tried to increase 
   the memory size, including the one that worked for me:
    [http://wordpress.mcdspot.com/2012/03/20/ways-to-increase-max-file-upload-size-and-execution-time/](http://wordpress.mcdspot.com/2012/03/20/ways-to-increase-max-file-upload-size-and-execution-time/)
 *  Thread Starter [comiendorico](https://wordpress.org/support/users/comiendorico/)
 * (@comiendorico)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/error-message-132/#post-3108457)
 * Thank you, I re-sized the images as you have suggested and the problem was solved.

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

The topic ‘Error Message’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [comiendorico](https://wordpress.org/support/users/comiendorico/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/error-message-132/#post-3108457)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
