Image Upload Error

Permalink
Hi Everyone,
Has anyone had this error before?

imagejpeg() expects parameter 3 to be long, string given.

I receive this error when trying to upload images through the file manager and also try to add from incoming folder.