Replies: 2
wordpress 4.9.4
wp-customer-reviews 3.1.5
custom theme
when this plugin is activated, the front end of the site is fine – however when i attempt to access wp-admin, i get an out of memory error:
Fatal error: Allowed memory size of 786432000 bytes exhausted (tried to allocate 72 bytes) in <snip>/wp-includes/taxonomy.php on line 1438
there are about 90,000 posts, and they are all of 2 different custom post types. as you can see, i have 750M allocated to php, plenty.
i disabled all other plugins, and i discovered that the error occurs when i enable the plugin that creates the custom post types. that is literally all that plugin does, and the code that creates the post types is pasted below. obviously, i cannot get rid of the plugin that creates the post types, as that prevents me from accessing the custom post types at all through wp-admin.
i should mention that with only a few posts (including the custom post types), there is no error.
is this some known issue? has anyone else seen this? is it not possible to have more than a few posts (of custom post types) with this plugin? i am stumped as to what to do, since this is the only reviews plugin that works for us on the front end. i even tried v2 of the plugin, which did not barf with a memory error, but also did not display the reviews on the front end (which is the problem with most of the other reviews plugins i tried, as well).
any ideas?
function create_post_types()
{
register_post_type( ‘bank’,
array(
‘labels’ => array(
‘name’ => __( ‘Banks’ ),
‘singular_name’ => __( ‘Bank’ )
),
‘description’ => __(‘Bank Posts represent a single bank within a given city’),
‘public’ => true,
‘has_archive’ => false,
“sptp_permalink_structure” => “/%category%/%postname%/”,
‘menu_position’ => 5,
‘hierarchical’ => false,
‘supports’ => array(‘title’, ‘editor’, ‘author’, ‘trackbacks’, ‘custom_fields’, ‘comments’),
‘taxonomies’ => array(‘category’, ‘post_tag’),
)
);
register_post_type( ‘city’,
array(
‘labels’ => array(
‘name’ => __( ‘Cities’ ),
‘singular_name’ => __( ‘City’ )
),
‘description’ => __(‘City Posts represent a single city within a given state’),
‘public’ => true,
‘has_archive’ => false,
“sptp_permalink_structure” => “/%category%/%postname%/”,
‘menu_position’ => 5,
‘hierarchical’ => false,
‘supports’ => array(‘title’, ‘editor’, ‘author’, ‘trackbacks’, ‘custom_fields’, ‘comments’),
‘taxonomies’ => array(‘category’, ‘post_tag’),
)
);
}