getting sitemap gen to work on new host
« on: May 15, 2024, 08:26:26 PM »
we moved hosting providers and cant get the sitemap to run. if i run on the command line i get
text/plain accountname.php.error.log ( ASCII text )
<h4>An error occured: </h4> <script> top.location = 'index.php?op=config&errmsg=%3Cb%3EThere+was+an+error+while+retrieving+the+URL+specified%3A%3C%2Fb%3E+https%3A%2F%2Fwww.accountname.com%2F%3Cbr%3E%3Cb%3EHTTP+Code%3A%3C%2Fb%3E%3Cbr%3E%3Cbr%3E%3Cb%3EHTTP+headers%3A%3C%2Fb%3E%3Cbr%3Ex_csize%3A+0%3Cbr+%2F%3E%3Cbr%3E%3Cb%3EHTTP+output%3A%3C%2Fb%3E%3Cbr%3E' </script>

if i try the start creating sitemap button in the admin i get
An error occured
There was an error while retrieving the URL specified: [ External links are visible to forum administrators only ]
HTTP Code:

HTTP headers:
x_csize: 0

HTTP output:

i've been working on it - it started running at one point and found this error in the php error log
[15-May-2024 18:44:42 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/accountname/public_html/generator/pages/page-view.inc.php:114
Stack trace:
#0 /home/accountname/public_html/generator/index.php(103): include()
#1 {main}
  thrown in /home/accountname/public_html/generator/pages/page-view.inc.php on line 114
Re: getting sitemap gen to work on new host
« Reply #1 on: May 16, 2024, 05:03:43 AM »
Probably there is a configuration problem - it looks like your server doesn't allow local network connections via port 80 (http) or 443 (https) - as a result sitemap generator is not able to crawl the site. This is usually related to firewall installed at the host - could you please contact your hosting support regarding this?
Re: getting sitemap gen to work on new host
« Reply #2 on: May 21, 2024, 06:39:48 PM »
thanks I will ask our hosting support about it. will reply when i have a response!
Re: getting sitemap gen to work on new host
« Reply #3 on: May 22, 2024, 10:30:06 PM »
 Hosting support replied:

Local connections are allowed on the server and work without issue:

[root@server:/]$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

[root@server:/]$ telnet localhost 443
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

It doesn't look like there is a network issue. The only error we see is one that does not provide much info:

errmsg=There was an error while retrieving the URL specified: [ External links are visible to forum administrators only ]
HTTP Code:

HTTP headers:
x_csize: 0

HTTP output:
Re: getting sitemap gen to work on new host
« Reply #5 on: May 24, 2024, 06:13:44 PM »
i dm'd them to you yesterday
Re: getting sitemap gen to work on new host
« Reply #6 on: May 24, 2024, 07:30:41 PM »
Hello,

I've emptied "Use IP address" setting in sitemap generator configuration and it works now.