Coder Social home page Coder Social logo

Comments (15)

DanMan avatar DanMan commented on August 29, 2024 1

Ok, so I identified my issue. The cwebp executable was downloaded by a different user than the one running the PHP process through Plesk. So Shopware didn't have the right to execute it. Giving it the appropriate rights made the status page show WebP as available.

Why does this even matter? Because it won't create WebP images automatically when uploading other image formats, that's why.

You might want to add a permission check/warning somewhere in there. I might not be the last person running into that issue.

from froshwebp.

DanMan avatar DanMan commented on August 29, 2024

Same here. ./bin/console frosh:webp:status says

[OK] Webp is available

though. I'm using cwebp.

from froshwebp.

shyim avatar shyim commented on August 29, 2024

That means then that cli php is able to execute the binary but fpm php not.
You should check the php configuration like disabled functions or open_basedir

from froshwebp.

DanMan avatar DanMan commented on August 29, 2024

I'm using Plesk which manages and uses its own PHP installations, not the one the OS brings. I suppose you don't support that? I mean, it seems to work (it doesn't throw errors when generating the thumbs), only the status in the Systeminfo tab appears to be broken.

from froshwebp.

ace16vitamine avatar ace16vitamine commented on August 29, 2024

it is working. We have only the error in Shopware backend GUI, images are generated with .webp viewable with chrome

from froshwebp.

shyim avatar shyim commented on August 29, 2024

I don't have a Webspace using Plesk. So I cannot test it there. THe backend gui is working
Screenshot from 2019-12-13 11-03-42

from froshwebp.

JoshuaBehrens avatar JoshuaBehrens commented on August 29, 2024

I guess this one can be closed and linked to the existing ticket? #46

from froshwebp.

DanMan avatar DanMan commented on August 29, 2024

Well, the weird thing is that I've cwebp installed both in the OS and downloaded via console, but the plugin status still thinks it's not available.

from froshwebp.

JoshuaBehrens avatar JoshuaBehrens commented on August 29, 2024

PHP is not allowed to find it. This can be solved by adding the path to the open_basedir as @shyim stated.

from froshwebp.

shyim avatar shyim commented on August 29, 2024

Tested it with newest Plesk Obisidan in default settings. Its working out of the box with the binary.

from froshwebp.

JoshuaBehrens avatar JoshuaBehrens commented on August 29, 2024

In a web request?

from froshwebp.

shyim avatar shyim commented on August 29, 2024

Yes

from froshwebp.

DanMan avatar DanMan commented on August 29, 2024

Tested it with newest Plesk Obisidan in default settings. Its working out of the box with the binary.

Have you actually used it to set up a webspace and are you using its own PHP installation and not the one the OS provides? Because that's the whole point of using Plesk: so you're independent.

from froshwebp.

shyim avatar shyim commented on August 29, 2024

I did install an empty Debian and just run the plesk installer, created a webspace and so on

from froshwebp.

shyim avatar shyim commented on August 29, 2024

I will close this Issue then, cause its server configuration

from froshwebp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.