• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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