• 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.

Can't get a tempnam 2

Status
Not open for further replies.

denka

Chevereto Member
please dont close this topic.

error in the file: ./app/lib/classes/class.upload.php
line 216: $this->downstream = tempnam(sys_get_temp_dir(), 'chvtemp'); 219 throw new UploadException("Can't get a tempnam", 200);
php function "sys_get_temp_dir()" returns "/tmp". this folder has 777

i have no temp only tmp and mod-tmp
 
Denka, I have explained this several times already. This is not a Chevereto error, is your server that doesn't have a good tmp folder setup.

If you want to debug it more go to app/loader.php and search for this:
Code:
error_reporting(0);

And change it to:
Code:
//error_reporting(0);

Then go to your webpage, open your browser console, go to network and then upload a file. You will see a red "json" request, click on that and then you will see what is the error with your server.

Most likely you will get an open base dir permission issue.
 
Ok, I will add a tmp handle alternative. That will be available in 3.1
 
Status
Not open for further replies.
Back
Top