Support » Plugin: Simply Static » Missing images

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Neoras,

    I’ll take a look and see if I can maintain those original file names.

    Just to be sure, the images do still display correctly though, right? It’s just that the URLs don’t show the original special characters?

    Thread Starter Neoras

    (@neoras)

    Hi Scott, thanks for your quick reply!

    Unfortunately not. The file name is converted wrong! Browsing for the file after making them static results in an 404-error.

    It probably has something to do with the phpurlencode-function but I’m not too familiar with php…

    Hmm, strange.

    Well, this is on my queue of things to look into. I’ll update this ticket again when I have a bit more information. Thanks Neoras!

    Hi Neoras,

    Sorry it took so long to get to get back to you on this. I took a look into this issue and I couldn’t recreate it. I created a WordPress page containing an image with the path you provided:
    <img src="/wp-content/uploads/2016/01/Filtergrößen.jpg">

    I was able to view the page/image on WordPress (so far, so good). From there I generated a static site, and I was still able to view the page/image. Simply Static had maintained the filename in the static files:
    <img src="http://www.static-site.dev/wp-content/uploads/2016/01/Filtergrößen.jpg">

    It’s possible that I fixed something in the last 8 months that resolved this issue for you. But, it’s also possible there’s some different in the OS you’re running WordPress on, or the version of WordPress / PHP, or something else. I’d love to learn more if you happen to see this.

    Scott

    Thread Starter Neoras

    (@neoras)

    Hi Scott!

    Big thanks for getting back! Roughly 2 weeks ago I saw the update and took a new effort to get it running. It failed again. As I’m trying to reproduce it right now, the issue unfortunately remains the same. It works when you manually copy the “missing” files from the wp-content-folder of the source to the corresponding static-folder, however.

    I also figured out how to change file names with special characters in case you’ve already uploaded them and don’t want to start over. Here’s a plug-in that should do the job: https://wordpress.org/plugins/clean-image-filenames/
    I’ll give it a try!

    And there’s another “issue”, when using the static website offline. My theme uses stylesheets in a way that it passes php-parameters like this: /wp-content/themes/colormag/style.css?ver=4.6.1
    Since the url-paramaters are not interpreted locally, the stylesheet is missing. But I guess this behaviour is somewhat intended or at least inevitable.

    Thanks again Scott, love your plug-in and will donate for it as soon as there’s a button somewhere inside the plugin screens

    Bye
    Chris

    Thread Starter Neoras

    (@neoras)

    And of course there’s also a workaround for fixing query strings, just to mention it:
    https://de.wordpress.org/plugins/remove-query-strings-from-static-resources/

    Thanks Chris! I’m glad you found a couple plugins to work around the issues you were running into. I’ll make a note to add those into the FAQ at some point.

    Best,
    Scott

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Missing images’ is closed to new replies.