Title: Regarding Memory limit issue
Last modified: August 31, 2016

---

# Regarding Memory limit issue

 *  [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/regarding-memory-limit-issue/)
 * Hello there,
 * I have problem regarding memory size in my wordpress site. I have one custom 
   post in which I have 25000 posts. So when I go to that custom post time then 
   500 internal server error diplay.
 * But when I Edit Individual post from that custom post type then I can able to
   edit it but at the bottom of the post due to execution time post can not display
   properly and got below error:
 * Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   89 bytes) in /var/www/xyz/wp-includes/cache.php on line 621
 * I have tried below things in wp-config file:
    define(‘WP_MEMORY_LIMIT’, ‘512M’);
 * I have tried below things in php.ini file:
    max_input_time = 3600 max_execution_time
   = 3600 post_max_size = 25M
 * Can any one have same issue? Please help me.
 * Thanks in advance.
 * [https://wordpress.org/plugins/wordpress/](https://wordpress.org/plugins/wordpress/)

Viewing 1 replies (of 1 total)

 *  [lucasrafaelleite](https://wordpress.org/support/users/lucasrafaelleite/)
 * (@lucasrafaelleite)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/regarding-memory-limit-issue/#post-8734118)
 * Are you using CPT-onomies or have you registered custom post type by direct fuctions?
 * If you are using CPT to create the repository of the custom posts type in the
   functions like the example below:
 *     ```
       add_action( 'init', 'create_posttype' );
       function create_posttype() {
         register_post_type( 'vereadores',
           array(
             'labels' => array(
               'name' => __( 'Vereadores' ),
               'singular_name' => __( 'Vereadores' )
             ),
             'public' => true,
             'has_archive' => true,
             'rewrite' => array('slug' => 'vereadores'),
           )
       ); 
       }
       ```
   
    -  This reply was modified 9 years, 4 months ago by [lucasrafaelleite](https://wordpress.org/support/users/lucasrafaelleite/).
    -  This reply was modified 9 years, 4 months ago by [lucasrafaelleite](https://wordpress.org/support/users/lucasrafaelleite/).

Viewing 1 replies (of 1 total)

The topic ‘Regarding Memory limit issue’ is closed to new replies.

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [lucasrafaelleite](https://wordpress.org/support/users/lucasrafaelleite/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/regarding-memory-limit-issue/#post-8734118)
 * Status: not resolved