static-html-output: Wrong CURL Domain

For some reason the plugin isn’t putting a / after the domain when he try download the page The LOG:

CLICK ME

2020-11-25 07:31:25 	 2020-11-25 10:31:25
PHP VERSION 7.4.9
OS VERSION Linux marcus-pc 5.8.0-29-generic #31-Ubuntu SMP Fri Nov 6 12:37:59 UTC 2020 x86_64
WP VERSION 5.5.3
WP URL http://localhost
WP SITEURL http://localhost
WP HOME http://localhost
WP ADDRESS http://localhost
PLUGIN VERSION 6.6.23
VIA WP-CLI? 
STATIC EXPORT URL http://example.com
PERMALINK STRUCTURE /%postname%/
SERVER SOFTWARE lighttpd/1.4.55 	
2020-11-25 07:31:25 	 WP Site Info: 	
2020-11-25 07:31:25 	 Site Path: /var/www/html/
WP Uploads URL: http://localhost/wp-content/uploads
WP Uploads Path: /var/www/html/wp-content/uploads
WP Uploads ??: /wp-content/uploads
WP Site Path: /var/www/html/
WP Site Subdirectory: 
Uploads URL: http://localhost/wp-content/uploads
Site URL: http://localhost
Parent Theme URL: http://localhost/wp-content/themes/agama
Parent Theme Path: /var/www/html/wp-content/themes/agama
Child Theme Path: /var/www/html/wp-content/themes/agama-blue
Child Theme Active: 1
Theme Root Path: /var/www/html/wp-content/themes
Themes ??: /wp-content/themes
Active Theme ??: /wp-content/themes/agama
WP Content URL: http://localhost/wp-content
WP Content Path: /var/www/html/wp-content
WP Content ??: /var/www/html/wp-content
Plugins Path: /var/www/html/wp-content/plugins
WP Plugins ??: /wp-content/plugins
WP Includes Path: /var/www/html/wp-includes
Permalink Structure: /%postname%/
WP Inc Path: /wp-includes
Subdirectory install?: 
 	
2020-11-25 07:31:26 	 Active plugins: 	
2020-11-25 07:31:26 	 disqus-comment-system/disqus.php 	
2020-11-25 07:31:26 	 everest-tab-lite/everest-tab-lite.php 	
2020-11-25 07:31:26 	 static-html-output/static-html-output.php 	
2020-11-25 07:31:26 	 svg-support/svg-support.php 	
2020-11-25 07:31:26 	 wp2static-addon-zip/wp2static-addon-zip.php 	
2020-11-25 07:31:26 	 wp2static/wp2static.php 	
2020-11-25 07:31:26 	 Plugin options: 	
2020-11-25 07:31:27 	 additionalUrls:  	
2020-11-25 07:31:27 	 baseUrl:  	
2020-11-25 07:31:27 	 baseUrl-bitbucket:  	
2020-11-25 07:31:27 	 baseUrl-bunnycdn:  	
2020-11-25 07:31:27 	 baseUrl-github:  	
2020-11-25 07:31:27 	 baseUrl-gitlab:  	
2020-11-25 07:31:27 	 baseUrl-netlify:  	
2020-11-25 07:31:27 	 baseUrl-s3:  	
2020-11-25 07:31:28 	 baseUrl-zip:  	
2020-11-25 07:31:28 	 basicAuthPassword: ******************* 	
2020-11-25 07:31:28 	 basicAuthUser:  	
2020-11-25 07:31:28 	 bbBranch:  	
2020-11-25 07:31:28 	 bbRepo:  	
2020-11-25 07:31:28 	 bbToken: ******************* 	
2020-11-25 07:31:28 	 bunnycdnStorageZoneAccessKey: ******************* 	
2020-11-25 07:31:28 	 bunnycdnPullZoneAccessKey: ******************* 	
2020-11-25 07:31:28 	 bunnycdnPullZoneID:  	
2020-11-25 07:31:29 	 bunnycdnStorageZoneName:  	
2020-11-25 07:31:29 	 bunnycdn_api_host: ******************* 	
2020-11-25 07:31:29 	 cfDistributionId:  	
2020-11-25 07:31:29 	 completionEmail:  	
2020-11-25 07:31:29 	 crawl_delay: 0 	
2020-11-25 07:31:29 	 crawl_increment: 5 	
2020-11-25 07:31:29 	 crawlPort:  	
2020-11-25 07:31:29 	 delayBetweenAPICalls: 0 	
2020-11-25 07:31:29 	 deployBatchSize: 1 	
2020-11-25 07:31:30 	 excludeURLs:  	
2020-11-25 07:31:30 	 ghBranch:  	
2020-11-25 07:31:30 	 ghCommitMessage:  	
2020-11-25 07:31:30 	 ghRepo:  	
2020-11-25 07:31:30 	 ghToken: ******************* 	
2020-11-25 07:31:30 	 glBranch:  	
2020-11-25 07:31:30 	 glProject:  	
2020-11-25 07:31:30 	 glToken: ******************* 	
2020-11-25 07:31:30 	 netlifyHeaders:  	
2020-11-25 07:31:31 	 netlifyPersonalAccessToken: ******************* 	
2020-11-25 07:31:31 	 netlifyRedirects:  	
2020-11-25 07:31:31 	 netlifySiteID:  	
2020-11-25 07:31:31 	 removeConditionalHeadComments: 1 	
2020-11-25 07:31:31 	 removeHTMLComments: 1 	
2020-11-25 07:31:31 	 removeWPLinks: 1 	
2020-11-25 07:31:31 	 removeWPMeta: 1 	
2020-11-25 07:31:31 	 rewrite_rules:  	
2020-11-25 07:31:31 	 rename_rules:  	
2020-11-25 07:31:32 	 s3Bucket:  	
2020-11-25 07:31:32 	 s3Key:  	
2020-11-25 07:31:32 	 s3Region:  	
2020-11-25 07:31:32 	 s3Secret: ******************* 	
2020-11-25 07:31:32 	 selected_deployment_option: zip 	
2020-11-25 07:31:32 	 targetFolder:  	
2020-11-25 07:31:32 	 useBasicAuth:  	
2020-11-25 07:31:32 	 Installed extensions: 	
2020-11-25 07:31:32 	 Core,date,libxml,openssl,pcre,zlib,filter,hash,pcntl,Reflection,SPL,session,standard,sodium,cgi-fcgi,curl,mysqlnd,PDO,xml,calendar,ctype,dom,mbstring,FFI,fileinfo,ftp,gd,gettext,gmp,iconv,intl,json,exif,mysqli,pdo_mysql,pdo_sqlite,Phar,posix,readline,shmop,SimpleXML,sockets,sqlite3,sysvmsg,sysvsem,sysvshm,tokenizer,xmlreader,xmlwriter,xsl,zip,Zend OPcache 	
2020-11-25 07:31:33 	 cURL error:Could not resolve host: localhost2020 	
2020-11-25 07:31:33 	 BAD RESPONSE STATUS (0): /2020/ 	
2020-11-25 07:31:34 	 cURL error:Could not resolve host: localhost2020 	
2020-11-25 07:31:34 	 BAD RESPONSE STATUS (0): /2020/11/ 	
2020-11-25 07:31:34 	 cURL error:Could not resolve host: localhost2020 	
2020-11-25 07:31:34 	 BAD RESPONSE STATUS (0): /2020/11/23/ 	
2020-11-25 07:31:34 	 cURL error:Could not resolve host: localhostads.txt 	
2020-11-25 07:31:34 	 BAD RESPONSE STATUS (0): /ads.txt 	
2020-11-25 07:31:35 	 cURL error:Could not resolve host: localhostagama-blue 	
2020-11-25 07:31:35 	 BAD RESPONSE STATUS (0): /agama-blue/ 	
2020-11-25 07:31:35 	 cURL error:Could not resolve host: localhostauthor 	
2020-11-25 07:31:35 	 BAD RESPONSE STATUS (0): /author/admin/ 	
2020-11-25 07:31:35 	 cURL error:Could not resolve host: localhostcomments 	
2020-11-25 07:31:35 	 BAD RESPONSE STATUS (0): /comments/feed/ 	
2020-11-25 07:31:36 	 cURL error:Could not resolve host: localhostfavicon.ico 	
2020-11-25 07:31:36 	 BAD RESPONSE STATUS (0): /favicon.ico 	
2020-11-25 07:31:36 	 cURL error:Could not resolve host: localhostfeed 	
2020-11-25 07:31:36 	 BAD RESPONSE STATUS (0): /feed/ 	
2020-11-25 07:31:36 	 cURL error:Could not resolve host: localhostgeneros 	
2020-11-25 07:31:37 	 BAD RESPONSE STATUS (0): /generos/uncategorized/ 	
2020-11-25 07:31:37 	 cURL error:Could not resolve host: localhosthello-world 	
2020-11-25 07:31:37 	 BAD RESPONSE STATUS (0): /hello-world/ 	
2020-11-25 07:31:37 	 cURL error:Could not resolve host: localhostrobots.txt 	
2020-11-25 07:31:37 	 BAD RESPONSE STATUS (0): /robots.txt 	
2020-11-25 07:31:37 	 cURL error:Could not resolve host: localhostsample-page 	
2020-11-25 07:31:38 	 BAD RESPONSE STATUS (0): /sample-page/ 	
2020-11-25 07:31:38 	 cURL error:Could not resolve host: localhostsitemap.xml 	
2020-11-25 07:31:38 	 BAD RESPONSE STATUS (0): /sitemap.xml 	
2020-11-25 07:31:38 	 cURL error:Could not resolve host: localhostwp-content 	
2020-11-25 07:31:38 	 BAD RESPONSE STATUS (0): /wp-content/plugins/everest-tab-lite/assets/css/animate.css 	
2020-11-25 07:31:38 	 cURL error:Could not resolve host: localhostwp-content 	
2020-11-25 07:31:39 	 BAD RESPONSE STATUS (0): /wp-content/plugins/everest-tab-lite/assets/css/available_icons/font-awesome/font-awesome.min.css 	
2020-11-25 07:31:39 	 cURL error:Could not resolve host: localhostwp-content 	
2020-11-25 07:31:39 	 BAD RESPONSE STATUS (0): /wp-content/plugins/everest-tab-lite/assets/css/et-style.css 	
2020-11-25 07:31:39 	 cURL error:Could not resolve host: localhostwp-content 	
2020-11-25 07:31:41 	 BAD RESPONSE STATUS (0): /wp-content/plugins/everest-tab-lite/assets/js/frontend/et-frontend-script.js 	
2020-11-25 07:31:41 	 cURL error:Could not resolve host: localhostwp-content 	
2020-11-25 07:31:43 	 BAD RESPONSE STATUS (0): /wp-content/themes/agama-blue/assets/js/agama-blue.js 	

:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/static-html-output/static-html-output.php:45) in  on line 

:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/static-html-output/static-html-output.php:45) in  on line 

:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/static-html-output/static-html-output.php:45) in  on line 

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Thanks all for your patience as I play catch-up with quality control on these projects (working specifically on improvements in that area to speed things up and avoid any further regression bugs like this).

(Thanks also for the donations which are helping to keep my head above water! Got yours today, @loganmarchione, thanks! And yours, @joeldebruijn, thanks! Sorry if I missed anyone, but appreciate all!).

Thanks also for supporting each other here and in the forum, it’s great to know y’all have got my back when I’m slow to respond!

I’m due for a recent development/life update on my Patreon blog soon. A lot of interesting things and some new supporting projects in development the past 2 weeks!

OK, so, looks like 6.6.21 should still be fine, so please use that attached one.

I’m going to do an unrelated PHP8 compatibility fix, but will do like I did with WP2Static last night and replace a lot of the current cURL request code with the Guzzle library to simplify things along the way.

I’ll be testing against this issue as I go and hopefully have it sorted tonight (fingers crossed!). Else, I’ll need to switch the DL version on statichtmloutput.com back to 6.6.21 if it will take me longer to fix this.

@marcussacana, @joeldebruijn let me dive into this. Perhaps regression issue since last release. In meantime, if you can try this release 2 prior and let me know if that’s better:

static-html-output-plugin-6.6.21.zip

I had the same issue missing the “/” character and the linked zip fixed it. Thanks!

Regarding this issue, it shouldn’t be the same code.

There is a small percentage of similar code left between the 2 plugins now, but majority differs quite a lot. That’s why I decided to keep the 2 projects continuing separately, as the approaches differ quite a lot. There’s a little talk on the forum about how they differ, but I can explain that in more length later once I catchup on where I want these plugins to be feature/quality-wise.

Please feel free to post any issues to that repo, too. There’s some export logs available in WP2Staic, too (the ones in here are currently a little nicer 😄 ).

Many thanks, @marcussacana and sorry for the breakage!

I reverted to 6.6.21 for download from website for now and will work on the fix tonight or by tomorrow.

I was making some sloppy mistakes for a while, with a few other personal/productivity issues happening, but last few days, have been getting back into my groove, so quality will tighten up!

I tested the old version and really worked here.

@marcussacana, @joeldebruijn let me dive into this. Perhaps regression issue since last release. In meantime, if you can try this release 2 prior and let me know if that’s better:

static-html-output-plugin-6.6.21.zip