wp2static icon indicating copy to clipboard operation
wp2static copied to clipboard

Crawling error because double url in path.

Open losderpos opened this issue 5 years ago • 4 comments

Getting crawling errors on all files because my url (https://wouterwideweb.test) get's used twice in the url:

Error while retrieving URL: https://wouterwideweb.testhttp/wouterwideweb.test/wp-content/plugins/wp2static/vendor/squizlabs/php_codesniffer/tests/Core/Filters/Filter/AcceptTest.xml

Also, is it normal that all plugin files get crawled as well?

losderpos avatar Sep 23 '20 10:09 losderpos

@losderpos hmm, that's probably not going to be a quick fix if it can be at all, due to rewriting requirements.

Suggest for now, renaming your dev server's site name to mitigate that.

Re all plugin assets being detected, yes, that's the default in this project. There's a filter you can override to disable that part of the detection.

FYI, this alternate project doesn't do any plugin asset detection, only discovery: https://github.com/leonstafford/static-html-output/

leonstafford avatar Sep 23 '20 10:09 leonstafford

@leonstafford Renaming the dev site did the trick, cheers!

Just so I'm on the same page, what's the main difference between WP2static and Static-html-output?

losderpos avatar Sep 23 '20 11:09 losderpos

@losderpos, great!

In a nutshell:

  • WP2Static more extensible/programmable
  • WP2Static uses detection of files from within WP (and now starting to do more advanced crawling/discovery)
  • WP2Static has plugin architecture for add-ons and some more modern deployment options at the moment
  • Static HTML Output offers more advanced HTML modification, such as stripping WordPress signatures
  • Static HTML Output currently is continuation of codebase that's been around for 10 yrs, WP2Static is pretty much full rewrite

We'll see how they continue to develop and if they merge again or make sense to keep separate

leonstafford avatar Sep 23 '20 11:09 leonstafford

I've come across this issue as well. Can anyone elaborate on what the site name should be changed to, and how would that help?

ncrosno avatar Jul 17 '21 15:07 ncrosno