The plugin returns 500

Hi,
I have a pretty anoying problem.
I’m trying to generate a static version of my website.
Sadly the plugins return error 500
I check the logs and it boils down to an Invalid URL error.
the files concerned is this one: /var/www/admin/wp-content/plugins/wp2static/src/DetectSitemapsURLs.php. I tried to look into it but i’m not sure why i have this problem
the url of my website is of type salut.polo.coco
am i missing something?
Cordially,
multi

Hi @Multi,

Could you please tell me a bit more about your environment?

If you try to setup your site in Lokl, it should export fine, else, we can narrow down the issue to somewhere in your site. Please give a try, if possible:

Hi,
i did some research and i found out what was the problem?
/var/www/admin/wp-content/plugins/wp2static/src/DetectSitemapsURLs.php
In this file, this line:
$parser->parse( $sitemap );
should always throw an error since sitemap is never a full URL.
Best,
Multi

1 Like

Wow, @Multi! Thanks for tracking that down!

I’ve pushed a potentially fixed zip for you here:

I’m not able to do some quick manual tests on it, so please let me know if that’s still not working for you and will dig deeper!

Cheers,

Leon

[deleted, will make a new post]

Hi @mrdaniel,
Could you kindly redo a proper post on the forum. I’m getting notifications on this one and i don’t want to deactivate them.
Also, i noticed that the soft is trying to hit the " /http:/lvh.me/wp-sitemap.xml" address which return 404.
there is an extra / at the beginning of the address.

Hi @Multi, sorry for that, will make a new post.

This should be fixed in https://github.com/leonstafford/wp2static/commit/59540b17d875da2c418709caa2893e12832aef7e

1 Like