Add the following at the top of wp-config.php:
ini_set('memory_limit','128M');
Although you should use WP_MEMORY_LIMIT
when you can, we see in /wp-includes/default-constants.php that WordPress doesn’t do much more than use ini_set
itself. Note: This is just one more thing to try, but you’ll likely end up having to have your host fix this issue.
Related Posts:
- WordPress PHP error handling and reporting in production environment
- Out of memory errors : how best to track them down
- Fatal error trace not shown in development setup
- Best practice for versioning wp-config.php?
- Password in wp-config. Dangerous?
- What’s the difference between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT?
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Turn Off Automatic Trash Deletion?
- Notice: Constant WP_POST_REVISIONS already defined
- Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?
- How can I change preview URL?
- Override the wp_siteurl and wp_home not work
- Changing WP_CONTENT_DIR and WP_CONTENT_URL in wp-config.php does not register?
- Missing a temporary folder despite settings in wp-config.php
- How to use live images on local install?
- Syntax of FS_CHMOD_DIR and FS_CHMOD_FILE
- Declaratively Configuring WordPress in XML or JSON or YAML
- How to disable automated E-Mail on PHP error/exception?
- WP_MEMORY_LIMIT didn’t work in wp-config
- Call to undefined function error after adding add_filter to wp-config
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- How to set up gmail SMTP in WordPress
- error:-Cannot modify header information – headers already sent by
- How do I set up Debugging?
- Changing HTTP URL Port
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- wp-config.php file permissions
- How to update WordPress from the latest trunk
- Does wordpress have an error log?
- how to use is_admin in wp-config.php
- Locked out of WordPress Site Admin after enabling Force SSL on WordPress Https (SSL)
- Set wp-content folder to Dropbox folder
- Recommend a guide to catching plugin errors, please?
- Including a 3rd party library in WordPress which needs to be accessible by wp-config
- wp-config.php being deleted
- Get WP CLI to hide debug warnings and notices in JSON output, same setting as website
- Installation Issue WordPress locally – The file ‘wp-config.php’ already exists
- What is this file: wp-config-wpe.php?
- How can I make wordpress suppress mysql errors?
- How to customize the critical error message?
- enable SFTP via SSH keys in wordpress
- html lang=”” instead of lang=”en-us” – why?
- Why do I get a WAMP homepage when clicking on specific website’s URL on LocalHost?
- How to make my plugin code die gracefully
- Creating the wp-config.php file manually
- What Does this Code Snippet Do?
- WP_Debug not displaying anything
- Can I delete `wp-config-sample.php` after installing and configuring WordPress?
- Can’t Change Theme And White Screen When Activating Any Plugin
- How to reliably set file/folder permissions?
- Error establishing a database connection on Installation
- “There doesn’t seem to be a wp-config.php file.” despite wp-config.php in root
- Moving WP from local server to live, error establishing a db connection
- Multiple wp-config.php files in one home directory
- Why edits to wp-config.php must come before “That’s all” comment
- error log cluttered with undefined DB_USER wp-admin/setup-config.php
- Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize
- Is it possible to override the ABSPATH constant
- How to stop fatal error when loading theme template file directly
- Should I change wp-config for SSL?
- Redefine cookie domain for subdomains
- HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file
- multiple language directories
- Error in database connection [closed]
- Update wp-config.php and lost pages
- Getting error when using wp_insert_post()
- Conflict with wp_homeurl, wp_siteurl and admin interface settings
- Call to undefined function add_menu_page() on theme activation
- Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 57 bytes) in public_html/wp-includes/rewrite.php on line 1561
- error messages in dashboard login
- where should I write constants in wordpress?
- Issues copying site into local machine
- Autosave interval remains default despite wp-config.php defines
- Carriage Return control character (^M) found in wp-config-sample.php
- hypanis.ru wordpress vulnerabilty [closed]
- Are the wordpress settings (abspath, disable core updates) added by SiteGround of any use after I’ve migrated to a different host?
- Need help fixing my wp-config file [closed]
- Why was my new WordPress installation’s config page publicly viewable when first installed?
- WP_MEMORY_LIMIT didn’t work in wp-config, only within default-constants.php
- PHP error when trying to upload .mp3 files via Media Library [closed]
- Cookie set without HttpOnly flag
- Changing the wp-config.php broke the site
- Publishing WordPress from stage to production server
- There has been a critical error on your website – won’t fix no matter what
- Define option outside wp-config.php (on WordPress.com)
- Site lost all formatting when I attempted to migrate to Bluehost [closed]
- Moving wp-config.php one level up – 500 error – Nginx [closed]
- How can I configure an SMTP Server?
- What should index.php contain on Synology NAS to get external access to WordPress to work?
- Remote server does not read `WP_HOME` from wp-config.php when local server does
- White Screen on Site but wp-admin OK
- IP addresses to block to stop WP auto-update?
- Concerns over wp-config file [closed]
- Not showing old migrated content in website
- How to rename the wp-config.php file once under version control?
- Read wp-config without loading the rest of WordPress – i.e. wp-settings, etc
- Proper way to have multiple installs with a single database
- How turn on error reporting without reset?
- WordPress installed on a Sub-directory
- Editing wp-config.php file asks for another installation