-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to open stream: No such file or directory #20
Comments
@CMeldgaard Did you close this because it worked in the end or not? I'm likely going to change this as path does work better, especially if the assets don't have a public URL's |
@bymayo i closed it as we found a solution based on an older issue. But yeah, filepath would be a good idea. Perhaps a setting where you can switch between them, in case an external storage like S3 is used. That would give as much flexibility as possible for the developers implementing it :) |
Hello any news about this ? @bymayo |
Plugin version: 5.0.1 Same here – I cannot use the plugin at all. Filetree:
My files are at The plugin is trying to interprete the path from the URL as the absolute file path. A simple solution could be, that I can pass an absolute path to a file as a parameter instead of the Craft ->aliases([
'@webroot' => dirname(__DIR__) . '/web', // resolves to directory /Users/foo/Documents/project-name/web and use it in Twig: {% set transformedPdf = craft.pdfTransform.render(alias('@webroot') ~ file.url) %}
{{ transformedPdf.one().url }} |
@fvwanja I need to change this to use path not URL in the plugin. Can you just give me an example though of what your URL looks like and the path looks like? E.g.
Just so I can see if this is any different |
Sure! Domain: This is the relative path that the plugin tries to use from
This is the actual absolute path:
|
The following line fails, if the public url of an assets doesn't match the server path. For instance if the public url ir
/dowloads
but the server path is/app/web/downloads
it fails.craft-pdf-transform/src/services/PdfTransformService.php
Line 111 in 9413a24
My suggestion would be to use the path instead of the url
The text was updated successfully, but these errors were encountered: