• Resolved mcouzinet

    (@mcouzinet)


    Hello,

    We use Bedrock+Timber to install wordpress.
    The structure is a beat different from a classical wordpress, and we have problem when we try to regenerate all images.
    In WebpConverter\Regenerate\Paths, ABSPATH refer to /web/wp, but our application is in another directory /web/app.

    Didn’t find a repo to propose a pull request. So, I propose to change lign 55 of this file with:
    $url = str_replace(site_url(‘/’), wp_upload_dir()[‘basedir’], $src[0]);

    Thx you for your plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @mcouzinet,

    Thank you for your message. I tried your solution but unfortunately it doesn’t work.

    Please open the file please:
    /app/Regenerate/Paths.php

    Next find line 55:
    $url = str_replace(site_url('/'), ABSPATH, $src[0]);
    and replace to:
    $url = str_replace($upload['baseurl'], $upload['basedir'], $src[0]);

    Did this solve your problem?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @mcouzinet, I have released an update that changes the code line I gave above. Please download version 1.0.6 and let me know if everything works?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ABSPATH With RESTAPI’ is closed to new replies.