elementor / static-html-output

Static HTML Output Plugin for WordPress
https://statichtmloutput.com
The Unlicense
125 stars 35 forks source link

Placeholder not rewritten ~ http://PLACEHOLDER.wpsho #4

Closed levycarneiro closed 4 years ago

levycarneiro commented 4 years ago

Hello!

First of all, thanks for this great plugin.

Ok, going to the issue at hand:

Page 1:

<div class="elementor-widget-container">
                    <div class="elementor-text-editor elementor-clearfix"><p><a href="https://devgwc2.netlify.com/wp-content/uploads/2020/03/GWC-cover.jpg"><img class="alignleft wp-image-91" src="http://PLACEHOLDER.wpsho/wp-content/uploads/2020/03/GWC-cover.jpg" alt="" width="275" height="413" srcset="https://devgwc2.netlify.com/wp-content/uploads/2020/03/GWC-cover.jpg 600w,https://devgwc2.netlify.com/wp-content/uploads/2020/03/GWC-cover-200x300.jpg 200w" sizes="(max-width: 275px) 100vw, 275px"></a></p><p>The <em>Great Waves of Change</em> presents a prophecy of the difficult times ahead and the steps you can take to navigate an increasingly turbulent and uncertain future.</p>
(...)

Page 2:

<div class="elementor-widget-container">
 <div class="elementor-text-editor elementor-clearfix"><div style="padding: 10px;">
 <h4 style="text-align: center;">Table of Contents</h4>
 <p style="text-align: center; font-size: 10pt;"><a href="http://PLACEHOLDER.wpsho/the-great-waves/introduction/">Introduction</a></p>
 <p style="font-size: 10pt;">CH1: <a href="http://PLACEHOLDER.wpsho/the-great-waves/the-great-waves-of-change">The Great Waves of Change</a></p>
 <p style="font-size: 10pt;">CH2: <a href="http://PLACEHOLDER.wpsho/the-great-waves/the-great-waves-and-your-life">The Great Waves and Your Life</a></p>

Thanks.

crstauf commented 4 years ago

I had this occur recently, because of a configuration thing: there's some combination of settings that doesn't work properly, I think when trying to use a relative URL or something.

leonstafford commented 4 years ago

Hi @levycarneiro - this issues doesn't occur in V7 pre-releases, if you want to get started with that, please download at https://wp2static.com/download - but quite a change, so may require reading through the docs a bit.

In your case, with V6, as @crstauf commented, this issue (V6's poor URL rewriting) usually comes about when there's a mix of protocol's on your WP dev site. ie, some links are http or https (or protocol-relative (//example.com). To fix this, you can check who's responsible for generating those links (WordPress theme or plugin?) and make sure they match up to your Settings > Site URL. Also, be sure that your Site URL matches the protocol you use when viewing your site - ie, if your WP Site URL is set to http://example.com but you access the site via https://example.com via some override, it will confuse WP2Static, which looks for URLs matching your Site URL.

To avoid digging through all your files or DB, if you don't find a quick way to fix offending URLs, you can try a plugin to force https everywhere in your dev site, I think there's one called Really Simple SSL or such.

Please let me know if that doesn't sort things out for you.

leonstafford commented 4 years ago

recently fixed in master. should see no more PLACEHOLDER.wpsho URLs in output.

levycarneiro commented 4 years ago

Thanks, Leon! How can I take the code from master and install on an wordpress site? Thanks!

Update: nevermind, downloaded from the link above :)