This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

oneloveb

  • ****
  • 112 posts
SITEMAP ERROR
« on: November 02, 2021, 07:33:43 PM »
Generating sitemap without listing is fine

if I want all the listings to be in the sitemap so I can submit them to google the plugin page will go BLANK

If I check the sitemap on the web below are the error message and I have contacted my hosting to increase the memory limit so I don't know what is wrong that the bulk URL in the sitemap can be generated correctly

Check the attached and below web view error message

This page contains the following errors:
error on line 26452 at column 9: Extra content at the end of the document
Below is a rendering of the page up to the first error.


*

MB Themes

Re: SITEMAP ERROR
« Reply #1 on: November 02, 2021, 07:42:30 PM »
It looks like you have some unexpected character in file, maybe it was not stored properly.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: SITEMAP ERROR
« Reply #2 on: November 02, 2021, 07:58:47 PM »
What can you suggest that I should look for?

Because if I off the listing, everything will generate fine

*

oneloveb

  • ****
  • 112 posts
Re: SITEMAP ERROR
« Reply #3 on: November 02, 2021, 08:11:06 PM »
This last code in sitemap file is always deleted by itself once the sitemap is not generate normal

</urlset>

*

MB Themes

Re: SITEMAP ERROR
« Reply #4 on: November 02, 2021, 08:40:42 PM »
Not right, that line is inserted as last line to file.
If there is problem before, this line will not get to file
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: SITEMAP ERROR
« Reply #5 on: November 02, 2021, 08:47:55 PM »
So how do I locate the error?

*

MB Themes

Re: SITEMAP ERROR
« Reply #6 on: November 02, 2021, 08:51:59 PM »
If it is not in php logs, not too many ways.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: SITEMAP ERROR
« Reply #7 on: November 02, 2021, 09:17:17 PM »
PHP error back again after the hosting have set the memory to unlimited

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/site/public_html/oc-includes/osclass/model/Item.php on line 1352


 foreach($extraFields as $key => $value) {
        $item[$key] = $value;
      }

      $results[] = $item;
    }
    return $results;
  }
}

/* file end: ./oc-includes/osclass/model/Item.php */

How do I solve this

Marked as best answer by frosticek on November 02, 2021, 11:02:40 PM
*

MB Themes

Re: SITEMAP ERROR
« Reply #8 on: November 02, 2021, 09:36:32 PM »
It means number of items you wants to out into file is larger than your hosting memory.
Can be fixed by increasing php memory, but also just until it is reached.
Alternative is to reduce items in sitemap.
« Last Edit: November 02, 2021, 11:02:37 PM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: SITEMAP ERROR
« Reply #9 on: November 02, 2021, 10:12:40 PM »
If I set the php memory to 512M or 1024M instead of the unlimited memory the sitemap will generate with 40,000 URL, I will took so long like 35.47 seconds.

So it will return an Error on the google search console because google could not wait for that  amount of time to load sitemap

So how can I make the generating fast the execution time as also been increase but still taking more time to generate sitemap
« Last Edit: November 02, 2021, 10:27:20 PM by oneloveb »

*

MB Themes

Re: SITEMAP ERROR
« Reply #10 on: November 02, 2021, 11:02:23 PM »
Generation of sitemap has nothing common with google itself, as dile is sent to google on e it is generated.
Your only problem is you wants too much into 1 file with limited resources.
Solution was already provided - reduce amount of urls or increase memory.
No better solution will & can come.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: SITEMAP ERROR
« Reply #11 on: November 02, 2021, 11:25:11 PM »
How do I split the sitemap like sitemap1.xml
sitemap2.xml

*

MB Themes

Re: SITEMAP ERROR
« Reply #12 on: November 03, 2021, 07:07:23 AM »
@oneloveb
File size is not problem.
It is not simple to do something like distributed sitemap that would consists of 10 files or so.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: SITEMAP ERROR
« Reply #13 on: November 03, 2021, 08:33:50 AM »
Let assume that I have reached the google sitemap limit of 50k
now I need to submit another 50k sitemap to google

Is it not possible to do in Oslcass?

*

MB Themes

Re: SITEMAP ERROR
« Reply #14 on: November 03, 2021, 08:57:47 AM »
@oneloveb
Everything is possible until you have enough time or money.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots