Questions tagged [memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
65 votes
8 answers
6k views

Refactoring Wordpress to improve memory performance [closed]

I had a close look at Wordpress memory consumption. On my site, it seems that for each page hit 20MB of RAM gets allocated, just to prepare comfy environment for all the plugins to run in. I plotted ...
Roman Zenka's user avatar
15 votes
2 answers
41k views

What's the difference between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT?

What's the difference beetween define( 'WP_MEMORY_LIMIT', '96M' ); and define( 'WP_MAX_MEMORY_LIMIT', '256M' ); In my host I have this define( 'WP_MEMORY_LIMIT', '786M' ); define( '...
Leurent's user avatar
  • 177
4 votes
1 answer
5k views

PHP Memory Limit vs. WP Memory Limit

I'm using TPC! Memory Usage Settings to monitor my installation's memory usage. The plugin displays 'WP Memory Limit' which I know is set by the wp-config.php. It also displays 'PHP Memory Limit' ...
psorensen's user avatar
  • 497
2 votes
4 answers
2k views

Wordpress media upload limit?

I've done numerous WP sites, written my own plugins, run my own server, etc etc. But I have not seen this before. I just installed a fresh 4.7.1 and installed the Proto theme and all its plugins. ...
lilbiscuit's user avatar
1 vote
6 answers
10k views

wordpress upload http error?

I'm trying to uplaod video files,my upload file size limit is 96mb,and I can upload videos until 10mb size,but I want to uplaod videos that have 20mb size.If I try to uplaod bigger video I get http ...
user1147's user avatar
  • 802
11 votes
6 answers
23k views

How to use more than 256MB of memory in the admin?

I'm building a site for a photographer who uploads pictures that are normally large for todays digital cameras. Images are quite memory intensive, especially the image operations like creating ...
hakre's user avatar
  • 12.9k
8 votes
1 answer
23k views

Programmatically adding images to the media library with wp_generate_attachment_metadata randomly fails

I am running the latest WordPress version (4.6) on a LAMP server (shared hosting) with PHP version 5.6.12. I am trying to programmatically add 10 images, uploaded with ftp to the wp-uploads directory,...
Sebastian's user avatar
  • 215
4 votes
3 answers
15k views

WP_MEMORY_LIMIT didn't work in wp-config

I want to set WP_MEMORY_LIMIT for my WordPress site. I use from shared hosting and CPanel. I have access to change something like max memory limit on my host. I attached related image in the following ...
Mehdi Soltani's user avatar
2 votes
1 answer
2k views

How to solve suspected memory issue in custom WordPress loop?

I have written a plugin that adds a "Where did you hear about us?" question to the WooCommerce checkout page and shows the results (as a simple horizontal bar chart) in a wp-admin page. The plugin ...
ban-geoengineering's user avatar
1 vote
2 answers
1k views

Memory Leak in plugin action

I made a plugin that basically reads a CSV file and imports data to relevant tables. However, the action seems to create an error: Fatal error: Allowed memory size of 134217728 bytes exhausted (...
treyBake's user avatar
  • 127
1 vote
0 answers
379 views

Excessive memory used by update_option()

I'm a newer WP developer trying to wrap his head around how to store information in the options table to support a plugin that I am writing. Unfortunately, trying to UPDATE the options table is making ...
Dave McHale's user avatar
0 votes
2 answers
5k views

Blank page for edit.php

I get a blank page on /wp-admin/edit.php after change the number of post to display. The bug is due to the PHP memory, but on my hosting I have no possibility to change this value. How to reset the ...
zagriyen's user avatar
  • 121
0 votes
3 answers
414 views

Allowed memory size exhausted. WordPress side solution

I'm getting a well known error from the question title. The problem is, website is running on a shared server and I don't have access to php.ini file. I've set `php_value memory_limit' inside ....
smogg's user avatar
  • 293