Quantcast
Channel: Topic Tag: xml | WordPress.org
Viewing all articles
Browse latest Browse all 3201

Error 500 on my custom post sitemap

$
0
0

I have a new custom post type “compareview” on my site and I’m using the Yoast SEO XML sitemap feature for sitemaps.
This is the list of my sitemaps: https://forbruger-test.dk/sitemap_index.xml and all works well except compareview.

In this custom post type, I’m using the ACF PRO plugin for the template, and I have 243 published posts there.

I tried this: define(‘WP_MEMORY_LIMIT’, ‘256M’);
becoause in logs, I got this:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /www/forbrugertest_177/public/wp-includes/meta.php on line 1180PHP
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /www/forbrugertest_177/public/wp-includes/class-wp-fatal-error-handler.php

but didn’t help. Only works when I added a limit per page:
function max_entries_per_sitemap() {
return 50;
}
add_filter( ‘wpseo_sitemap_entries_per_page’, ‘max_entries_per_sitemap’ );

Can you help me to resolve this issue?


Viewing all articles
Browse latest Browse all 3201

Trending Articles