• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Upload Failed: pen_basedir restriction in effect

kishiyo

Chevereto Noob
Just finished installing Chevereto, but quickly met another problem when uploading.
It seems like folder permission problem, but I never touch anything about them.

Code:
Stack trace:
#0 unknown file(unknown line): G\errorsAsExceptions()
#1 /app/lib/classes/class.upload.php(311): tempnam()
#2 /app/lib/classes/class.upload.php(329): CHV\Upload::getTempNam()
#3 /app/lib/classes/class.upload.php(99): CHV\Upload->fetchSource()
#4 /app/lib/classes/class.image.php(504): CHV\Upload->exec()
#5 /app/lib/classes/class.image.php(647): CHV\Image::upload()
#6 /app/routes/route.json.php(88): CHV\Image::uploadToWebsite()
#7 /lib/G/classes/class.handler.php(230): G\Handler->{closure}()
#8 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()
#9 /app/web.php(411): G\Handler->__construct()
#10 /app/loader.php(230)" while reading response header from upstream, client: 223.198.113.201, server: img.lun.im, request: "POST /json HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php-fpm-img.lun.im.sock:", host: "img.lun.im", referrer: "https://img.lun.im/upload"
2021/07/18 00:09:06 [error] 97569#97569: *100 FastCGI sent in stderr: "PHP message:
Aw, snap! Internal Server Error [debug @ error_log] - https://chv.to/debug

** errorId #23b1020d146cb3c4 **
>> ErrorException [0]: tempnam(): open_basedir restriction in effect. File(/home/admin/tmp) is not within the allowed path(s): (/home/admin/web/img.lun.im/public_html:/home/admin/web/img.lun.im/tmp)
At /app/lib/classes/class.upload.php:311
 
Kindly note that the issue is your server limiting permissions on the alleged folder declared by tempnam() output. That's outside the Chevereto application layer.


We can't assist you with this in our Tech Support layer, which is only for software issues. Kindly review your server and search for tempnam open_basedir restriction to fix the server according to your context.
 
Back
Top