Blog

Archive for April, 2017

FusionPBX PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0, referer: /app/voicemail_greetings/voicemail_greetings.php?id=1001&back=%2Fapp%2Fvoicemails%2Fvoicemails.php

I was working on a FusionPBX and it wouldn’t upload a voicemail greeting. When i checked in the /var/log/httd/error_log there was a error PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0, referer: /app/voicemail_greetings/voicemail_greetings.php?id=1001&back=%2Fapp%2Fvoicemails%2Fvoicemails.php

 

After doing some digging around i found that the upload_tmp_dir = wasn’t set.

After editing /etc/php.ini

; http://php.net/upload-tmp-dir
upload_tmp_dir = “/tmp”

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 20M

and service httpd restart

and all working.

Posted in: Blog

Leave a Comment (0) →

Windows can’t find driver USB Storage devices?

I spent a few days trying to figure this out, and apparently all modern versions of Windows suffer from it, yet it’s barely/poorly documented anywhere:

If your usb devices are no longer recognized by Windows, no matter how many times you try to install or update the drivers, go look in c:\windows\inf\ (make sure you can see hidden and system files) and see if you cannot find:

usbstor.inf
usbstor.pnf

All you have to do is restore/replace them and bingo, everything will work again, I didn’t even have to reboot.

Try looking in C:\Windows\System32\DriverStore\FileRepository

Windows2k (2000), Windows XP, Vista and even Windows 7 suffer from this problem.

Basically my external mass storage (bulk storage) devices suddenly were not being seen when I plugged them in. Reinstalling the drivers was useless and just ended up saying that windows could not find the drivers needed.

Some program uninstalls those two when you uninstall it – I am not sure what, why or how but it’s yet another Windows mystery to solve.

 

Source: https://ckon.wordpress.com/2011/04/08/windows-usb-problems-usbstor-inf/

 

Posted in: Blog

Leave a Comment (0) →