Title: HTTP 500 Error class_wp_query
Last modified: October 4, 2017

---

# HTTP 500 Error class_wp_query

 *  [zimmermannleon](https://wordpress.org/support/users/zimmermannleon/)
 * (@zimmermannleon)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/http-500-error-class_wp_query/)
 * Hi Experts,
 * i have a HTTP 500 Error. This is the Message in the Error LogFile
 * > 30.09.2017 19:23:43 mynvt.de [client 94.31.85.0] PHP Fatal error: Allowed memory
   > size of 268435456 bytes exhausted (tried to allocate 28672 bytes) in /mnt/web010/
   > e2/69/5139169/htdocs/WordPress_06/wp-includes/class-wp-query.php on line 617
 * So i have checked the class_wp_query.php but it looks like that there is no error.
 *     ```
               foreach ( $keys as $key ) {
               if ( !isset($array[$key]) )
                   $array[$key] = '';
           }
       ```
   
 * Can anyone help me?
 * Thanks in advance.
 * Kind Regards Léon Zimmermann
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttp-500-error-class_wp_query%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 8 months ago](https://wordpress.org/support/topic/http-500-error-class_wp_query/#post-9555689)
 * 268,435,456 is 256MB. The issue is that the query uses a lot of memory. You could
   try to bump it up a bit. However, this may be the result of your theme or a plugin
   just asking for too much.
 * See [http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/](http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/)
 *  Thread Starter [zimmermannleon](https://wordpress.org/support/users/zimmermannleon/)
 * (@zimmermannleon)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/http-500-error-class_wp_query/#post-9555771)
 * Thank you for your quick answer.
    I tried to increase the memory up to 256M but
   it dont work. The info.php say it is still on 128M…
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 8 months ago](https://wordpress.org/support/topic/http-500-error-class_wp_query/#post-9555782)
 * This may be a plugin or theme conflict. Please attempt to disable all plugins,
   and use one of the default (Twenty*) themes. If the problem goes away, enable
   them one by one to identify the source of your troubles.

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

The topic ‘HTTP 500 Error class_wp_query’ is closed to new replies.

## Tags

 * [error 500](https://wordpress.org/support/topic-tag/error-500/)
 * [foreach](https://wordpress.org/support/topic-tag/foreach/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/http-500-error-class_wp_query/#post-9555782)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
