SMF Support > SMF 2.0.x Support

Avatar Upload Error

(1/3) > >>

Jaap Stam:
When trying to upload an image I get the error: Fatal error: Call to undefined function checkimagecontents() in /home/***************/Sources/Profile-Modify.php on line 2704

Can anyone help?

Many thanks

Ricky.:
This function is there in Sub-Graphics.php under Sources, are you sure this file exist ?

Arantor:
The file exists, otherwise the require would almost certainly have failed earlier. Sounds like there's actually something wrong with the file instead of it being missing.

Jaap Stam:
Subs-Graphics does indeed exist. And this error is being experienced by anyone trying to upload an avatar.

MrPhil:
In the vanilla 2.0.2 version, line 2705 calls checkImageContents() ... note the capitalization. If your error message really is all lower case, something has corrupted the line of code. Sources/Subs-Graphics.php is required on the line before.

Starting at 2701:

--- Code: --- elseif (is_array($sizes))
{
// Now try to find an infection.
require_once($sourcedir . '/Subs-Graphics.php');
if (!checkImageContents($_FILES['attachment']['tmp_name'], !empty($modSettings['avatar_paranoid'])))
{
// It's bad. Try to re-encode the contents?

--- End code ---
Anything missing or damaged in your copy?

Navigation

[0] Message Index

[#] Next page

Go to full version