Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author rosell.dk

    (@roselldk)

    Hi Johnathan,

    In release 0.23.0, I made some changes in how URLs are generated. But these changes should only affect multisite, and it does not seem you are using mulitsite setup?

    The extra path is generated when WebP Express has been set up to store images ar in “separate” folder, rather than storing them in same folder as the original. For themes, the “separate” folder will always be used. For uploads, however, you can choose if you want them to be stored “mingled” (isame folder as uploads), or “separate”. The setting is called “Destination folder” and is found under the “General” settings.
    Changing the “Destination folder” option btw relocates all the converted images.

    The Conversion Manager doesn’t show directly where the webp files are. The tree you see is the source tree. You can however see the url of the converted image by opening it in a new tab.

    It sounds like there is a bug. That you selected “mingled”, but get “separate” urls in Alter HTML. Can you email me your configuration? (the file found in /wp-content/webp-express/config/config.json). Can you also click the “System info” button, found in the general settings and email me the result?

    Plugin Author rosell.dk

    (@roselldk)

    Reading your question again, I read it as you see a broken image in Conversion Manager too. Is that correct?

    Plugin Author rosell.dk

    (@roselldk)

    While the settings are stored in config.json, the Alter HTML settings are actually cached in the database. It is updated whenever WebP Express updates the config file (when saving settings or migrating settings), but will not be updated if config.json is changed manually – so a situation like you describe can arise this way.

    Can you please get your option “webp-express-alter-html-options” for me? It stores an object with cached settings for Alter HTML – including the “destination-folder” option. We can then compare the “destination-folder” option with the “destination-folder” option stored in your config.json and see if a mismatch is the cause of the error.

    The option is stored in the wp_options table.
    Here is how to get it in SQL:
    select * from wp_options where option_name='webp-express-alter-html-options';

    Here is how to get it in PHP (with WordPress bootstrapped):
    get_option('webp-express-alter-html-options');
    (use site_get_option if you are in multisite)

    • This reply was modified 3 years ago by rosell.dk.
    • This reply was modified 3 years ago by rosell.dk.
    Plugin Author rosell.dk

    (@roselldk)

    Actually, I also simplified the code a bit in 0.23.0. I packed the options that is used in calculating destination path into an object (class: DestinationOptions), instead of passing the options around individually. It is possible that a bug was introduced with this change

    Thread Starter chjohnathan

    (@chjohnathan)

    Hi Bj?rn,

    Thank you for taking the time to reply!

    We are hosted on wpengine and are using these guidelines for our webp express plugin config options.
    https://wpengine.com/support/webp-image-optimization/#WebP_Express_Plugin

    I am 110% certain that the settings got auto changed and I’m not sure when. I rechecked the my settings against the wpengine ones and they were not aligned.

    The option “Alter HTML” was checked, when it shouldn’t have been.

    This problem has been remedied. I should have rechecked this. I apologize.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Images have extra in URL path for new images’ is closed to new replies.