[gogocarto] Import of an image (logo) in Gogocarto #2

Closed
opened 4 years ago by StephanSainleger · 1 comments
Collaborator

when I try to import an image for the logo in the general configuration, the process stops and nothing is loaded.

[2020-10-27 10:41:36] request.CRITICAL: Uncaught PHP Exception Symfony\Component\HttpFoundation\File\Exception\FileException: "Unable to create the "/opt/apps/gogocarto/src/../web/uploads/gogocarto/images/config" directory" at /opt/apps/gogocarto/vendor/symfony/http-foundation/File/File.php line 109 {"exception":"[object] (Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException(code: 0): Unable to create the \"/opt/apps/gogocarto/src/../web/uploads/gogocarto/images/config\" directory at /opt/apps/gogocarto/vendor/symfony/http-foundation/File/File.php:109)"} []

Test on https://gogocarto.demo.elabore.coop

when I try to import an image for the logo in the general configuration, the process stops and nothing is loaded. ``` [2020-10-27 10:41:36] request.CRITICAL: Uncaught PHP Exception Symfony\Component\HttpFoundation\File\Exception\FileException: "Unable to create the "/opt/apps/gogocarto/src/../web/uploads/gogocarto/images/config" directory" at /opt/apps/gogocarto/vendor/symfony/http-foundation/File/File.php line 109 {"exception":"[object] (Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException(code: 0): Unable to create the \"/opt/apps/gogocarto/src/../web/uploads/gogocarto/images/config\" directory at /opt/apps/gogocarto/vendor/symfony/http-foundation/File/File.php:109)"} [] ``` Test on https://gogocarto.demo.elabore.coop
StephanSainleger changed title from Import of an image (logo) in Gogocarto to [gogocarto] Import of an image (logo) in Gogocarto 4 years ago
vlab added the
bug
label 4 years ago
Owner

This was a bug due to the charm I wrote.

Directory layout in gogocarto follows a complex scheme probably coming from symphony apps. There are files published via apache, and files accessible from php, these are 2 sets, and some have to match because they are accessed both way, it is the case with the web/uploads dir.

To this first complexity, as packagers, we have to separate code from data to allow nice backups and try to fit in the existing. As a consequence, the original layout needs to be carefully partitioned and rebuilt.

I broke the connection between web/uploads as seen by php apps (in /opt/apps/gogocarto/web/uploads), and web/uploads as published through apache (in /var/www/$DOMAIN/web/uploads of the frontend's docker container).

This was repaired in #f810c2effd

This was a bug due to the charm I wrote. Directory layout in gogocarto follows a complex scheme probably coming from symphony apps. There are files published via apache, and files accessible from php, these are 2 sets, and some have to match because they are accessed both way, it is the case with the `web/uploads` dir. To this first complexity, as packagers, we have to separate code from data to allow nice backups and try to fit in the existing. As a consequence, the original layout needs to be carefully partitioned and rebuilt. I broke the connection between `web/uploads` as seen by php apps (in `/opt/apps/gogocarto/web/uploads`), and `web/uploads` as published through apache (in `/var/www/$DOMAIN/web/uploads` of the frontend's docker container). This was repaired in #f810c2effd
vlab closed this issue 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.