• Resolved mrlen

    (@mrlen)


    My html sitemap worked fine a couple of weeks ago, but now it displays an error:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 83 bytes) in /home/**********/public_html/wp-includes/wp-db.php on line 1841

    I have uninstalled it and reinstalled it. That didn’t help.

    I upgraded WordPress to 4.7. That didn’t help.

    I have yoast installed, so I disabled the sitemap functionality with that, but it didn’t help.

    The XML sitemap won’t work either.

    That gives an error:

    This page contains the following errors:

    error on line 2 at column 1: Extra content at the end of the document
    Below is a rendering of the page up to the first error.

    I am now at a complete loss on what to do next.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Webbjocke

    (@webbjocke)

    Hi the problem is that the sitemaps are trying to allocate more memory than what your server allows for. This can happen if you have a really big site with lots of pages. Since it seems like your server allows for 64mb you could just double it to 128 for the sitemaps and it should work fine.

    Are you comfortable with code? Then open the plugins file “simpleWpMapBuilder.php” and below the very first line where it says like “<?php defined..” just add:
    ini_set('memory_limit', '128M');

    Thread Starter mrlen

    (@mrlen)

    Hi, thanks.

    I changed the top of the file to look like this:

    <?php defined(‘ABSPATH’) || exit;
    ini_set(‘memory_limit’, ‘128M’);

    /*
    * The sitemap creating class
    */

    However, I still have the same error.

    Thread Starter mrlen

    (@mrlen)

    Sorry, it didn’t save when I clicked save.

    It’s saved now.

    ..and it’s working ??

    Thanks.

    Plugin Author Webbjocke

    (@webbjocke)

    Haha ??

    Great np!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sitemap Broken’ is closed to new replies.