• Resolved JB Christy

    (@jbchristy)


    This plugin fails spectacularly. I’m running 2.1 of the plugin. I tried it initially on WP 4.8.3, but when it completely failed, I upgraded to WP 4.9.2 to see if running the latest version of WP helped – it didn’t.

    • It doesn’t honor changes to the output directory. It insists on putting the static files in wp-content/uploads/2018/01, despite me setting the output directory to wp-content/uploads/static-html. (Yes, I set it to the full path in the settings panel.)
    • It doesn’t output any files. It creates a directory structure matching the path to the parent theme of the theme that’s activated, and that’s it. No path the the actual theme I’m running, and no .html files at all.
    • It doesn’t push anything up to S3, but that may because it doesn’t generate any files, not because of a failure to connect with S3.
    • After it spins for a minute, it happily tells me how successful it was,
      and gives me a link that’s broken, perhaps because it didn’t generate any any files.

    I did install the Simply Static plugin, and that does successfully generate a static copy of my site, but it doesn’t offer the ability to deploy the static files to S3. I really need that.

    Is there anything I can do or try to get this plugin to honor it’s own settings (output directory) and actually generate static html?

    • This topic was modified 6 years, 10 months ago by JB Christy. Reason: added plugin version
    • This topic was modified 6 years, 10 months ago by JB Christy. Reason: added WP version to text description
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    Hi JB,

    Thanks for your interest in this plugin.

    Regarding the custom output folders, there is a fix contributed by a user here, not yet in the latest release:

    https://github.com/leonstafford/wordpress-static-html-plugin/pull/32

    If you are able to manually modify your plugin files to match, that may help in the meantime.

    To debug the other issue, please try running the default WP Theme (Twenty Seventeen, or is it now Twenty Eighteen?). This should export.

    If that fails, please contact me with some more specific environmental info (PHP version, hosting company/plan, browser, etc): [email protected] and I’ll see what I can do.

    Cheers,

    Leon

    Thread Starter JB Christy

    (@jbchristy)

    Hi Leon,

    I updated to the latest version of twentyseventeen, switched my site to run that, and I see the same behavior – this is all that’s created:


    2018
    └── 01
    └── wp-static-html-output-1-1516913949-jbchrsty
    └── wp-content
    └── themes
    └── twentyseventeen
    └── assets
    ├── css
    ├── images
    └── js

    9 directories, 0 files

    I’m testing this plugin out on my local dev environment:

    Mac OS Sierra 10.12.6
    MAMP Pro 4.2.1
    Apache
    MySQL 5.6.35
    PHP 7.1.8 (I also tried with PHP 5.6.31 and got the same results)
    Browser: Chrome 63.0.3239.132

    One peculiarity about my local dev environment is that it’s served over HTTPS with a MAMP self-signed cert. This is because the production site I’m mirroring is forced to HTTPS, and I don’t want to fiddle with local changes to the config files stored in git. I might be able to temporarily serve my local site over http just to see if that’s the issue. But this will need to work on a site that’s served over https with a (very slightly wonky) SSL cert.

    Thread Starter JB Christy

    (@jbchristy)

    I manually applied the pull request you referenced above, and that seems to make the plugin honor the custom output directory setting. So thanks for that.

    I temporarily made my local dev site serve over http (not https with a self-signed cert), and things appeared to work with the twentyseventeen theme. So the spectacular part of the failure is now resolved.

    However:

    I switched back to my custom theme, which is a child theme of another custom theme I developed. The plugin generates and populates a tree structure for the parent theme, but it does not seem to take any note of the theme that’s actually activated, i.e. the child theme. No directory structures for the child theme is even created, let alone populated. Is this a known limitation of the plugin?

    I can probably work around the child theme issue. At this point we rarely make changes to the child theme’s assets, so I can probably just manually populate the necessary theme files in S3 and things will work ok. But of course it would be nice if the plugin handled child themes automagically.

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi JB,

    I’ve just pushed up some other fixes and put the output folder fix in to version 2.2 also.

    I’ve had another inquiry this week about child themes, which to be honest, I’ve not ever used, but should be able to look into it and see what’s going on.

    The local SSL issue has been previously reported, it sounds very similar. Again, I’ll need to setup a test environment for it (thanks for providing your environment info).

    If these fixes are urgently needed, please consider making a donation towards development, that can help me justify allocating time to the project, else I’ll try to get to test them as soon as possible.

    Again, thanks for trying the plugin and for taking the time to provide feedback.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi JB,

    There have been a few releases since your original support request. I’ve also changed the default uploads directory to not put the export files in /2018/01, etc. This is set to come out in V2.6, but you can try out a recent development version with a solution here (it also cleans up files after export if you choose, which prevents the clutter from building up:

    https://github.com/leonstafford/wordpress-static-html-plugin/blob/master/wp-plugin-cleanup-fixed.zip?raw=true

    Please let me know if you’re still having issues.

    Cheers,

    Leon

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fails spectacularly’ is closed to new replies.