这是indexloc提供的服务,不要输入任何密码
Skip to content

Importing photos step 2 not working open_basedir restriction #79

@HonkXL

Description

@HonkXL

I tried to import images from a zip file. Uploading and unpacking the zip works. Then I see the images and when I click one image and try to import I gut an php error.

Error message is below. For me it seems that it tries to create a directory in / - but I do not want to allow php to access everywhere. I granted access to the own webroot and to /etc/zoph.ini

Can something changed to make open_basedir working?

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/weiland24.de/:/tmp/:/etc/zoph.ini:/usr/share/file/magic.mgc) in /var/www/vhosts/weiland24.de/httpdocs/fotomanager/util.inc.php on line 482
Verzeichnis konnte nicht erstellt werden: /

Fatal error: Uncaught exception 'FileDirCreationFailedException' with message 'Verzeichnis konnte nicht erstellt werden: /<br> ' in /var/www/vhosts/weiland24.de/httpdocs/fotomanager/util.inc.php:489 Stack trace: #0 /var/www/vhosts/weiland24.de/httpdocs/fotomanager/util.inc.php(502): create_dir('/') #1 /var/www/vhosts/weiland24.de/httpdocs/fotomanager/classes/photo.inc.php(425): create_dir_recursive('/var/www/vhosts...') #2 /var/www/vhosts/weiland24.de/httpdocs/fotomanager/import.inc.php(129): photo->import(Object(file)) #3 /var/www/vhosts/weiland24.de/httpdocs/fotomanager/webimport.inc.php(59): Import::photos(Array, Array) #4 /var/www/vhosts/weiland24.de/httpdocs/fotomanager/import.php(147): WebImport::photos(Array, Array) #5 {main} thrown in /var/www/vhosts/weiland24.de/httpdocs/fotomanager/util.inc.php on line 489

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions