Comments (5)
in ArchiveProcessor.php:239
:
$temp_zip = $archive_path . '.tmp';
we're not using WP's get_temp_dir()
, so it tries to create in uploads dir
from static-html-output.
further looking, archive directory is empty. needs to fail much earlier
from static-html-output.
out of practice wth Docker.
issue was with container needing to access WP on same URL/port as defined in Site URL/Home, while allowing host to also access WP.
Using default WP docker image, this is easiest done by mapping port 80:80, as vhost within container already set to listen on 80.
If changing after WP installation has already occurred, can override URLs in wp-config.php:
define( 'WP_SITEURL', 'http://localhost');
define( 'WP_HOME', 'http://localhost');
or search-replace values in DB via WP-CLI.
With other images, can use custom vhost templates to proxy requests or have Apache listening on same port as host for same result.
Back to this original issue: crawling every detected URL was failing. This was logged in WP2Static's Export Log when Debug Mode was enabled, but allowed export to complete, attempting to zip an empty archive directory.
Export log logged as:
Crawling /wp-content/themes/twentytwenty/assets/images/2020-square-1.png
cURL error:Failed to connect to localhost port 8000: Connection refused
BAD RESPONSE STATUS (0): /wp-content/themes/twentytwenty/assets/images/2020-square-1.png
Different than 404's which we want to log and continue the export, these cURL connection refused errors should throw an exception, preventing the crawling to keep attempting and failing on each URL and export process to attempt to continue with an empty archive dir.
Deployment step should also throw an exception when given an empty archive dir,
from static-html-output.
if putting into Docker quick start guide, also mention disabling default web service running on 80, in case of default Ubuntu installation, for example; provide own WP2Static image with php.ini and vhost custom templates to allow on non-standard ports for those wanting to elegantly run many sites on local machine
from static-html-output.
wip optimized environment https://lokl.dev
from static-html-output.
Related Issues (20)
- activation errors in php 8 HOT 3
- look into WorDBless for testing WPSite or such classes HOT 1
- Unable to Deploy static site on Github HOT 2
- Missing trailing / in URL HOT 2
- Where does the ZIP download go? HOT 2
- Background Image not Copied HOT 10
- Generating through wp-cli returns SQL error but seems to go through (started at v6.6.19, v6.6.18 seems fine)
- Export inline background HOT 6
- wrong paths for wp-content/uploads on windows machine on WAMP
- Export taking too long to complete (More than 2 hours) HOT 1
- Netlify Deployment Failed - Stuck at Unpacking archive HOT 4
- Deployment to GitLab fails. HOT 3
- Redirecting based on _wp_old_slug ? HOT 1
- Unable to activate plugin on WordPress HOT 3
- Media file always included in generated site
- edge cases not handled for subfolder installations
- additional URLs don't work HOT 3
- relative links get full path prepended HOT 4
- str_replace uses same value for search and replace parameters HOT 2
- BAD RESPONSE STATUS (404)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-html-output.