• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue PHP Upload problems

S. Duijvestijn

New Pleskian
Hi,

I've got several subscriptions which can upload files through PHP without any problems.
But one subscription give me problems.

When trying to upload a file it gives me the following error:

'PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0'

But if i use the following script it creates a file (C:\Windows\Temp\TES3E35.tmp)in the temp folder without problems.

tempnam(sys_get_temp_dir(), 'TEST');

I already checked the folder/file permissions but couldnt find anything that causes the problem.

Running Plesk 11.5.30 Update #55 on Windows Server 2012.

Does anyone have a clue where to look?
 
You need to check open_basedir parameter for PHP settings of this domain.
 
Hi,

Update on the problems:

It now seems to be a problem on all the subscriptions.
But I found that it has to do with the PHP version used in the hosting settings.
If I set it on 5.2.17 I can upload without any problems.
However if the version is set on 5.3.29 or 5.4.32 it gives me the error message.

Anybody knows where to look for the cause?
 
Back
Top