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
- How to add elements to an empty array in PHP?
- Any guides on creating custom admin pages?
- Decrease file size upload in Media
- WP E-commerce: Showing 3 random products from current category when viewing product
- If Custom Field is empty don’t display div
- the_author_posts_link css class
- error_log is not working as expected in functions.php file
- WordPress template_include filter not working properly
- Web scraping using transients
- doing an ajax request always outputs 0
- What is the intended purpose of the _wp_attachment_context post meta key?
- Why the JavaScript code is ignored from wp editor?
- Get and insert order email address to the PHP template inside HTML text
- Integrating PHP into Javascript to display map markers with Google API – problem with wp_localize
- Send an email to specific adress when button is clicked?
- PHP version problem?
- Automatic Shortcode Creation with Custom Fields [closed]
- WordPress function when file is uploaded, deleted or edited
- single.php error
- Using a $GET parameter from a URL, to redirect to a URL (WordPress)
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- User Meta Value not echoing despite Var_Dump Showing correct string
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Why does my user not get added to the database on custom registration?
- WordPress check if current taxonomy has child
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- array_rand not working correctly?
- How do I increase the upload size only when editing special pages?
- Plugin can’t write to database even though permissions appear correct?
- How to deal with a GET variable of ‘name’?
- I can’t set image ad fatured programatically
- Replace a single variable with add_filter
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- meta_query search names when they have middle initials
- Not work function add width and height at save post
- Inserting a class on before_widget if checkbox is checked
- Exclude multiple authors by ID – IF condition
- Trying to use a variable to set image width
- What is the correct way to search 3 custom fields only in WordPress?
- How to change order inside foreach using wp_enqueue_script?
- Redirect user to a custom url after logged in
- Adding extra data to shortcode attributes and pass it to JS with wp_localize_script
- Related Posts: if there is no category use tags
- How to get all users by user_login as a json_encode array?
- show desktop version of website if button is submited
- Subheader title depends on post – change to static
- Make the text field in search form optional
- To call hook on a php external file
- Create new folder and upload files to custom folder via wp_handle_upload
- Set active class in a Php foeach
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- Adding a Sub Menu Options Page WP Backend Menu. Whats wrong with my code?
- PHP code for link with text
- how to add display_name
- how to loop through blog posts in php
- Correct way to perform a GET to another PHP file hosted on wordpress