Allowed memory size of … bytes exhausted opening MCM Settings page
-
Getting “PHP Fatal error: Allowed memory size of … bytes exhausted (tried to allocate … bytes)” opening MCM Settings page (admin.php?page=wp-mcm).
The reason is large number of images (70,000) in MCM category.
This error is triggered by the following code in the function mcm_get_media_taxonomies():
$mediaTermPosts = mcm_get_posts_for_media_taxonomy($taxonomySlug); $countMediaPosts = count($mediaTermPosts);
Can you count it directly in SQL, without PHP?
Many thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Allowed memory size of … bytes exhausted opening MCM Settings page’ is closed to new replies.