elementor / wp2static

WordPress static site generator for security, performance and cost benefits
https://wp2static.com
The Unlicense
1.42k stars 268 forks source link

Help pls! #509

Closed labsforge closed 4 years ago

labsforge commented 4 years ago

I'm trying to export this simple page: http://yootheme.wp.albumteller.com/ to s3 but urls are not well parsed and giving a lot of

Adding discovered URL: http://PLACEHOLDER.wpsho/wp-includes/js/jquery/jquery-migrate.min.js

I mean.. almost every! image

I uploaded the export logs here: Export log: https://pasteio.com/x07o3hn2t9Us Crawled links: https://pasteio.com/x7fPZmXyxCNH Discovered urls: https://pasteio.com/xUYobBEYIvQn

What can I do?

leonstafford commented 4 years ago

Hi @labsforge - check your WordPress site's code isn't a mix of http and https URLs, that's usually the cause here for only some URLs being rewritten properly

leonstafford commented 4 years ago

We're moving towards version 7, which shouldn't see this issue, but in meantime, to try and fix this for your situation:

Your WP Site URL is http://yootheme.wp.albumteller.com (no https)

Export URL is https://albumteller.com/ (https)

When you access your WordPress site, does the address bar show http://yootheme.wp.albumteller.com or https://yootheme.wp.albumteller.com?

If it's showing https, then update your Site URL in WordPress settings to be https://yootheme.wp.albumteller.com

labsforge commented 4 years ago

Well.. besides reading the log to the end, where aws user did not had auth to invalidate cloudfront... meh.. 🙄

This is the updated result: image <link rel="stylesheet" id="wpm-main-css" href="http://PLACEHOLDER.wpsho/wp-content/plugins/wp-multilang/assets/styles/main.min.css" type="text/css" media="all">

labsforge commented 4 years ago

I'll wait for v7 ^^ do you have a timeline?

leonstafford commented 4 years ago

Great! So, just the WPML asset. You may have some luck with a "force HTTPS" plugin, there's at least one that I've seen.

Re timelines, I just updated this doc to explain my aversion to hard deadlines: https://wp2static.com/roadmap/

So, there's been some pre-release versions of 7 available for a while and I'm working to put some new ones out with bug fixes/new addons very soon

labsforge commented 4 years ago

I'll try the plugin (I think I had it before and disabled not sure why), regarding the form post url, does Static Form Converter Add-on* would do the job of replacing the action of the form post?

leonstafford commented 4 years ago

@labsforge - yes, similar in functionality to the WP Serverless Forms plugin Shifter has, but plans to support native Elementor forms and such, requiring some work to disable their default JavaScript event handlers. I'll also be looking to continually expand to better suit the deployment options we support, ie, if using Cloudflare Workers, S3 + CloudFront or Netlify, then we can make it easier to run your own serverless function for processing the forms vs relying on 3rd parties like Basin, FormSpree, Zapier, etc.