MyBB Community Forums

Full Version: Error when uploading pictures
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I get this error when i try to upload picture to my forum. any help or suggestions?


The following warnings occurred:
Warning [2] finfo_open() expects parameter 1 to be long, string given - Line: 536 - File: inc/functions_upload.php PHP 5.2.12 (Linux)
File	Line	Function
[PHP]	 	errorHandler->error
/inc/functions_upload.php	536	finfo_open
/newreply.php	220	upload_attachment
Warning [2] finfo_file(): supplied argument is not a valid file_info resource - Line: 537 - File: inc/functions_upload.php PHP 5.2.12 (Linux)
File	Line	Function
[PHP]	 	errorHandler->error
/inc/functions_upload.php	537	finfo_file
/newreply.php	220	upload_attachment
Warning [2] finfo_close(): supplied argument is not a valid file_info resource - Line: 538 - File: inc/functions_upload.php PHP 5.2.12 (Linux)
File	Line	Function
[PHP]	 	errorHandler->error
/inc/functions_upload.php	538	finfo_close
/newreply.php	220	upload_attachment
To confirm are you using 1.6?

Also, I don't suppose your host runs Windows do they?
Yes sir, 1.6 Just upgraded yesterday.

yes I think.
What is your host?
Ix web why?
Which plan?
is there a point to this?
Yes, if you have the "Expert" plan, that's Linux-based. If you have either of the other 2, it's Windows-based.
I have bis plus. and its linux
Ok. I must have misread the hosting plans page.

Before I give any advice, I would like to consult with the dev team.

Would the string need to be casted to a long?
Pages: 1 2