Errors when running sitemap crawl for first time
« on: February 21, 2021, 03:50:46 PM »
Getting the four following errors in error_log. Sitemap won't run through - Stops every 5-10 minutes with 404.

count(): Parameter must be an array or an object that implements Countable in public_html/generator/pages/page-l404.inc.php on line 112

[21-Feb-2021 14:58:54 UTC] PHP Warning:  Illegal string offset 'u404' in public_html/generator/pages/page-l404.inc.php on line 112

[21-Feb-2021 14:58:54 UTC] PHP Warning:  Illegal string offset 'initdir' in public_html/generator/pages/page-l404.inc.php on line 115

[21-Feb-2021 14:58:54 UTC] PHP Warning:  Invalid argument supplied for foreach() in public_html/generator/pages/page-l404.inc.php on line 117
« Last Edit: February 21, 2021, 03:55:54 PM by charlie8 »
Re: Errors when running sitemap crawl for first time
« Reply #1 on: February 22, 2021, 12:04:36 PM »
Hello,

it looks like your server configuration doesn't allow to run the script long enough to create full sitemap. Please try to increase memory_limit and max_execution_time settings in php configuration at your host (php.ini file) or contact hosting support regarding this.
 
Re: Errors when running sitemap crawl for first time
« Reply #2 on: February 22, 2021, 01:17:02 PM »
512M
9000

What should I be changing it to??
Re: Errors when running sitemap crawl for first time
« Reply #3 on: February 22, 2021, 06:02:00 PM »
Hello, 

in this case I would recommend to run generator in command line if you have ssh access to your server.