Symfony 6 - Failed to open stream: Permission denied - permissions

My local environnement is Symfony 6.1, PHP 8.1.4, Xampp.. on windows 10.
I have some uploaded pictures in the folder "public/uploads", I made a function to manipulate some of these pictures (resizing).
All works fine until "imagejpeg()", it returns the following error :
"Failed to open stream: Permission denied" as shown in screenshot:
enter image description here
Any clue to solve that issue ?
Thanks in advance !

Related

Yiii2 - 500 internal error

someone gave a copy of a project created with yii2 and I had to Execute composer to get all the packages for the project, but I get this error:
This is what I get in the Runtime/app.log file:
[127.0.0.1][-][-][error][yii\web\HttpException:404] yii\web\NotFoundHttpException: Page not found. in C:\xampp\htdocs\prueba-desarrolladores\vendor\yiisoft\yii2\web\Request.php:189
I haven't been able to access the main view of the project. I've been looking at the related post in here, but nothing works I have no idea what to do, thanks for the help.
I had this twice.Firstly I seen my "Network Tab" in Chrome Developer Options and it said:
PHP Notice 'yii\base\ErrorException' with message 'unserialize(): Error at offset 0 of 16105 bytes'
I was delete my cookies with EditThisCookie Chrome extension and solved temporary.Tomorrow day I had this error again and I found the solution in this answer and I delete my project runtime/debug folder and my problem solved.

PHP5, require_once, failed to open stream

I have a problem which I can't solve and I have been searching about this problem for days...
This is my /var/log/apache2/error.log file:
PHP Warning: require_once(/var/www/html/diagramo/editor/common./license.php): failed to open stream: No such file or directory in /var/www/html/diagramo/editor/common/delegate.php(1) : eval()'d code(54) : eval()'d code on line 5
PHP Fatal error: require_once(): Failed opening required '/var/www/html/diagramo/editor/common./license.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/diagramo/editor/common/delegate.php(1) : eval()'d code(54) : eval()'d code on line 5
I want to run this Diagram-Sketch-Software on my Apache2 server.
The setup site of Diagramo works fine but when I whant to go to the start page I get a blank site...
The delegate.php exists but not the required delegate.php(1) file.
I enabled the "include_path=..." in php.ini
The path: /var/www/html/diagramo/editor/common./license.php exists but without the
dot behind (common.)
please help me I'm kinda new in that
Try this because both files are in same directory.
require_once(license.php)

Backload -Errorcode-12 : Exception occured while storing the file

I have some issue in uploading file using JQueryFileUpload with Backload.
I have added settings in web.config to upload large file like 1 GB file allow.
When i try to upload zip file around 150MB it upload successfully but when i try to upload file around 200 MB it showing following exception.
errorcode:12
error: Exception occured while storing the file
Can you please help me to get the solution? Why i am getting above error?
I have one other question : can we use UNC path to save image outside of website folder? If yes then how we can use?
Thanks in advance.

rails 3 assets - permission issue after changing image

After changing my logo, i got the following error:
Error compiling asset header_logo_v2.png:
Errno::EACCES: Permission denied - (path to tmp/cache/assets/CB0/E00/sprockets%2F1d4414e34df7725375b214c95386d7aa)
What is the solution for this?
add write access for temp/cache/assets folder to user which runs rails application or to its group

Rails 3 file create getting permission denied error, using XP

I'm working through Rails3inAction and cannot progress due to a permissions denied error.
The code is testing the processing of uploaded files through a separate files controller, relevant code is:
let(:asset) do
ticket.assets.create(:asset => File.open(path))
end
When I run rspec, the error I'm getting is:
FilesController users without access cannot access assets in this project
Failure/Error: ticket.assets.create(:asset => File.open(path))
Errno::EACCES:
Permission denied - C:/Documents and
Settings/tick/public/system/assets/1/original/speed.txt
I suspect this is to do with windows XP and would appreciate any help!!
Turns out to be a Rails problem, not a Permissions problem at all!