First open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag:
define('WP_MEMORY_LIMIT', '64M');
We just increased the memory limit to 64M. If you still get the error after this fix, then please contact your host. Most likely, they would have to go in their php.ini
file to increase the memory limit for you.
If you are working on xampp then edit php.ini .Search “memory_limit”
in your php.ini, and change the value of it. If no “memory_limit”
found, add the following line at the end of php.ini
memory_limit = 128M ; /* Change the 128M to your needs */
- Save file.Restart Apache.
Note:You can find xampp/php/php.ini
Related Posts:
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- cURL 28 error after switch from to brew php 7.2 on localhost
- How to run multiple Async HTTP requests in WordPress?
- WP CLI info showing correct PHP binary but wrong version of PHP
- Does the debug.log do log rotation?
- apache cpu over 70% on localhost
- Is it possible to move wordpress out of webroot?
- login wp impossible
- wp-admin/index.php gives a “500 Internal Server Error [closed]
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- Evaluations of two wordpress security plans against php code injection attack
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- Is XAMPP faster than running LAMP in WSL on Windows 10? [closed]
- Apache /Ubuntu server not running WordPress installation, outputting PHP code like HTML
- Apache Fallback instead of add_rewrite_rule
- WordPress: get recent posts, delete the current category
- PHP Warning: chmod(): Operation not permitted in class-wp-filesystem-direct.php on line 173
- WordPress admin dashboard missing icons
- WordPress returning 404 for multisite pages
- how to combine wordpress htaccess on my root domain + php on subfolder
- How to disable server signature on wordpress? [closed]
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3
- How does WP work in conjunction with a web server?
- Permalinks are not working in WordPress in digitalocean
- Problem with data collection in tables
- How to edit content in WordPress and the Polylang – plugin? – with demosite
- Upgrade to PHP7.3 and Changing Apache from Prefork to Event Breaks WordPress
- Windows Setup: Error establishing a database connection
- Huge time to first byte on live site
- WAMP SERVER Command Prompt SET PATH=%PATH%
- 403 Forbidden Localhost Wamp Apache Php
- Strange special character/Latin characters
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Not logged in when using http
- Admin-area broken through weird issues
- Blog only showing code
- WordPress Memory limit not increasing
- Having an HTTP error 500 after migrating a website
- session_start(): Cannot find save handler ‘mm’ – session startup failed in /sites
- how to put shortcode to the top of the page – theme 2014
- How to avoid timeout waiting for output from CGI script?
- How can I prevent wordpress from sending emails
- Restricting access to a file for everyone except logged in users
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- 404 Error after URL update
- How to add global CSS to all webpages without installing any plugin?
- How to upload WP user avatar on woocommerce account page [closed]
- Use post ID in functions.php file adminside
- How to show childs of certain custom post type in option list?
- Short code template + ajax
- str_replace with the_content is not working
- How do I populate custom field with current user role in Woocommerce [closed]
- WPML best page selector with php
- How to disable send e-mail notification new comments for some posts
- trying to put an active hover to my custom nav category buttons [closed]
- How to edit HTML of my website on WordPress? [closed]
- Redirect first comment (Thanks for comment) with show Autor name and beginning of the comment
- Large WordPress CRON job
- Fixing Deprecated: get_the_author_lastname
- WordPress query undefined offset in loop
- Referencing Images in javascript to display on wordpress page
- Most commented posts by time period (last 12h, last 24h and etc)
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Divi change project category slug
- Add meta tags to a custom header
- Ajax filter button display all posts
- Check If Post Was Published More Than 6 Months Ago Using get_the_date
- Where are the src and srcset sizes coming from?
- What is the right way to add PHP code to a certain part of a page
- wp_remote_post empty $_POST
- register_setting & add_settings_error validation issues with multiple fields
- PHP code for displaying WordPress posts in a static page not working
- How to add PHP code in functions.php wordpress
- WordPress hit memory limit but not from the server
- How can I spin up a new website for a registered user automatically?
- How to override url params with rewrite rules vars?
- WordPress wp-admin redirect and exception
- Can I make get_users() query global?
- Using Argument from Function to Re-Direct Visitor (WordPress)
- Use $wpdb or other PHP script method to find/replace in WP database
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- preg_replace regex problem
- Compare $_POST returned values with term array
- Remove item in Checkout
- email alert for product availability
- How to Update post_modified of all wordpress post
- How to Change CSS Colors from Custom Plugin Settings Page
- malware undetectable by multiple scans
- how to serialize() mysql update data
- Simple WordPress endpoint route doesn’t work
- Correct PHP to output a single result of a Function with SQL Query
- How to relocate paypal button gateway on checkout page in woocommerce
- How to create a field in customize and show that in header.php?
- WordPress shortcode returns the data before
- Passing the name of selected color from the custom component to `render_callback`
- I am receiving a pluggable.php warning sign on my only http:// page
- How to remove the h6 tag for the entry-category Class
- your php installation be missing the MySQL extension WordPress CPANEL [closed]