Coder Social home page Coder Social logo

Comments (14)

stirtingale avatar stirtingale commented on May 28, 2024 1

How is your hosting setup?

My workflow for wp2static is

Host the site in cpanel as www.domain.tld
Add a Wordpress sub-domain as an alias wp.domain.tld

Change the path in wp-config.php to wp.domain.tld

( Doing this enables me to quickly switch back to the primary domain if I wanted to revert the static set up in future )

Access the site via the subdomain and push changes to the www.domain.tld domain.

--

However, if you are intending to remove Wordpress completely or use a different host and export your files to the same www.domain.tld then you can do that.

For clients who do not want to use the serverless set up I run a weekly cron backup to Netlify of their sites that I can fallback to if their hosting goes down. I do this using www.domain.tld as the Wordpress install and destination URL and it works just fine

from static-html-output.

stirtingale avatar stirtingale commented on May 28, 2024 1

@salamander2 the basic auth is if you protect your whole site install with a htaccess user/pass ( e.g. http://www.htaccesstools.com/articles/password-protection/ )
That works well if you bung WP on sub-domain on a cheap shared host etc and then push out to a static service.

I have no idea on the output issues? I think this goes above my pay grade (as an enthusiastic user) and is something you need @leonstafford for.

from static-html-output.

McCloud94 avatar McCloud94 commented on May 28, 2024

How is your hosting setup?

My workflow for wp2static is

Host the site in cpanel as www.domain.tld
Add a Wordpress sub-domain as an alias wp.domain.tld

Change the path in wp-config.php to wp.domain.tld

( Doing this enables me to quickly switch back to the primary domain if I wanted to revert the static set up in future )

Access the site via the subdomain and push changes to the www.domain.tld domain.

--

However, if you are intending to remove Wordpress completely or use a different host and export your files to the same www.domain.tld then you can do that.

For clients who do not want to use the serverless set up I run a weekly cron backup to Netlify of their sites that I can fallback to if their hosting goes down. I do this using www.domain.tld as the Wordpress install and destination URL and it works just fine

this sounds like a great idea.. thanks a lot.

If you say thought that the plugin should usually work also with the same domain, then there must be a different issue.

I can't get it to export the html for some reason.

from static-html-output.

stirtingale avatar stirtingale commented on May 28, 2024

I can't get it to export the html for some reason.

How are you actually set up? Is the 'public' address accessible. e.g. if your curl domain.tld does that return your site?

One thing I find helpful is running the generate command via WP-CLI instead of the plugin interface.

There is also a debug option which might tell you the reason

from static-html-output.

McCloud94 avatar McCloud94 commented on May 28, 2024

I can't get it to export the html for some reason.

How are you actually set up? Is the 'public' address accessible. e.g. if your curl domain.tld does that return your site?

One thing I find helpful is running the generate command via WP-CLI instead of the plugin interface.

There is also a debug option which might tell you the reason

I am afraid some of the terms might be too technical for me ^ ^

that was the weird thing.. when enabling the debug mode, I didn't get any option to see/export the log.

from static-html-output.

stirtingale avatar stirtingale commented on May 28, 2024

@McCloud94 the debug log is a txt file in your /uploads directory @ elementor/wp2static#447 (comment)

from static-html-output.

salamander2 avatar salamander2 commented on May 28, 2024

@stirtingale I am having this problem too. I've set up WP on a local linux mint 18.3 server at home, duplicated my WP site and WP2Static simply will not work. There are no errors other than
Failed during "Crawling initial file list", .

  • Other info: PHP 7.1.
  • Location of WP: /var/www/html/scripsi
  • log files: only the first two: Detected WordPress URLS and Modified Crawl List. Crawled Links has a /
  • destination url: I've tried various things here but it makes not difference. Obviously a program on my local server is not going to be allowed to actually write to my hosted website. But it should just set up the pages wit the correct links so that I can upload them later.

I chose output to subdirectory on current server

If I try, output to zip file I get the meaningless same error.

from static-html-output.

salamander2 avatar salamander2 commented on May 28, 2024

@stirtingale

What is this for? Use basic authentication | My WP site requires Basic Auth to access

Is this my wordpress admin password? Is this my sudo password? Other plugins don't need a password to run. I'd love to have a sentence explanation added to this "Crawling" page.

 

from static-html-output.

Freaver avatar Freaver commented on May 28, 2024

Dear sir @leonstafford

I have the same issue as the OP has. 4 Months ago I was able to deploy my site from wp2static and suddenly each time I perform a request to start exporting my static site, I get the error: Failed during "Crawling discovered URLs". I have no clue on what to do or fix this problem. Does anyone here have a few solutions which I could utilize?

Kind Regards,

Kendrick

from static-html-output.

salamander2 avatar salamander2 commented on May 28, 2024

from static-html-output.

N4rsha avatar N4rsha commented on May 28, 2024

I'm having the same issue, is there any solution? Leonard doesn't reply

from static-html-output.

leonstafford avatar leonstafford commented on May 28, 2024

@salamander2, @N4rsha - please stay tuned for version 7 release, as it solves many issues and makes troubleshooting easier.

In the meantime, you may look at these places for more information:

  • your servers's PHP/webserver logs
  • the browser console's JavaScript or Network tabs

You may also try disabling all plugins and switching to the TwentySeventeen or TwentyNineteen themes to try to isolate what is causing the failure on your particular environment.

from static-html-output.

salamander2 avatar salamander2 commented on May 28, 2024

from static-html-output.

leonstafford avatar leonstafford commented on May 28, 2024

Hi all,

Sorry for letting this issue go stale. I've chatted with some of you over Telegram/email since, but for those seeing this issue, V7 is now ready for testing and solves a lot of common environmental issues: https://github.com/WP2Static/wp2static/releases/tag/7.0-alpha-003

from static-html-output.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.