• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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