• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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