This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Teaser Image erroring out


avatar
rasp1 64
From: -
Teaser Image erroring out

This has just started today when I try and add a teaser image to a news story:
Error: The file type is not on the list of the allowed image types.

And these aren't some off the wall format, but just regular jpg jpeg and gif images. I usually go back to the story and edit it, and when I do it will let me add the teaser image then.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Teaser Image erroring out
avatar
OP 64
From: -
Fixed it, though, just added the i into the original line of code, the other line just broke it somehow. Smiling Face
1 Re: Teaser Image erroring out
avatar
Editor
0
From: -
I think I found the reason. Open /cadmin/filetypes/admineditfiletype.php in an editor and replace:

$html -> makeselect( $words_filetypes[ 'FILE_TYPE_IS_IMAGE' ], "input_filetype_ismage", $input_filetype_isimage, $words_filetypes[ 'YES' ] . " " . $words_filetypes[ 'NO' ] );


with:

$html -> makeselect( $words_filetypes[ 'FILE_TYPE_IS_IMAGE' ], "input_filetype_isimage", $input_filetype_isimage, $words_filetypes[ 'YES' ] . " " . $words_filetypes[ 'NO' ] );


Now go through the file types that you have previously edited to increase the upload size and change "This is an image and can be used for both avatars and thumbnails" to Yes. This should fix the upload problem.
1 Re: Teaser Image erroring out
avatar
OP 64
From: -
I made a vid of it if you would like to see. It is 2 MB though.
1 Re: Teaser Image erroring out
avatar
OP 64
From: -
Yes, it is now happening on every image, when I first try to add the teaser for that story. After I have upload the story, and edit it with no changes to the image, I can upload it.
1 Re: Teaser Image erroring out
avatar
Editor
0
From: -
Does this happened with every image? If not, please attach an example image in your reply.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.