XF 2.3 Oops! We ran into some problems. Provided file is not a valid image.

IntelliJ

Member
I get this error message when I try uploading any image to my xenforo forum.

Here are the settings on my attachments settings page
1723921639483.webp
The size is not an issue as I have set the php.ini to allow up to 25MB uploads and I have varied the file size settings on this image to 25MB when I was testing but the error message persists. All the images I am trying to upload are within the defined constraints of these settings.

I am trying to upload a 150Kb 400*400px png file and I am at a loss as to why the image type is not being recognized.

Anyone ever encountered this error and how did you resolve it?
 
I get this error message when I try uploading any image to my xenforo forum.

Here are the settings on my attachments settings page
View attachment 309134
The size is not an issue as I have set the php.ini to allow up to 25MB uploads and I have varied the file size settings on this image to 25MB when I was testing but the error message persists. All the images I am trying to upload are within the defined constraints of these settings.

I am trying to upload a 150Kb 400*400px png file and I am at a loss as to why the image type is not being recognized.

Anyone ever encountered this error and how did you resolve it?
have you been able to get over it, I'm having the same problem right now.
 
Literally have the same issue with ThemeHouse's Donate add on.

1726990896502.webp


Edit: just tried to edit the running campaign on a different forum and that failed too. So there's either a problem with the add on, or with XenForo.
 
Last edited:
I'm having the same problem with @Bob UBS when trying to create a blog, trying to upload an image of any extension generates an error, turning off image optimisation allows images to be uploaded. This only happens in certain locations, not everywhere, but it is problematic.

1726999412115.webp

Oh yes they do!
 
I’m not sure all of these are the same issue.

I'm having the same problem with @Bob UBS when trying to create a blog, trying to upload an image of any extension generates an error, turning off image optimisation allows images to be uploaded. This only happens in certain locations, not everywhere, but it is problematic.

View attachment 311341

Oh yes they do!
The resulting file when images are optimised is webp so that would need to be added to the allowed extensions.

The add-on may provide its own list of allowed extensions where webp is added or the add-on itself might need updating to allow webp to be an allowed extension.

Literally have the same issue with ThemeHouse's Donate add on.

View attachment 311334


Edit: just tried to edit the running campaign on a different forum and that failed too. So there's either a problem with the add on, or with XenForo.
I have less of an understanding why this is failing. Is it affecting normal XF attachments or avatars too?

This error is typically returned at the service level, implemented by add-ons so it might be worth checking with ThemeHouse exactly what they do to validate here, especially if other upload operations such as avatar uploads are working fine.
 
I’m not sure all of these are the same issue.


The resulting file when images are optimised is webp so that would need to be added to the allowed extensions.

The add-on may provide its own list of allowed extensions where webp is added or the add-on itself might need updating to allow webp to be an allowed extension.


I have less of an understanding why this is failing. Is it affecting normal XF attachments or avatars too?

This error is typically returned at the service level, implemented by add-ons so it might be worth checking with ThemeHouse exactly what they do to validate here, especially if other upload operations such as avatar uploads are working fine.
No, attachments and avatars are fine so far. There’s been a couple of problems with the donate add on, but also the UBS from @Bob - so if it isn’t a bug with XF, perhaps we are all running the same add on that’s causing the problem,
 
Then the question has to be why the error message in your screenshot says webp isn’t supported when it clearly is enabled.

That’s a question for the add-on author. It sounds like it could be a bug.
 
Hi there. I have the issue as well with a GIF avatar. I'm running 3 different forums all using Xenforo 2.3, all running the same version with the exact same backend behind.
This GIF works as avatar in 2 out of 3 forums and for the 3rd one I keep getting this "Provided file is not a valid image" message.
All 3 forums have GIF extensions authorized and are using Imagemagick.

Where it's not working, I have image optimization NOT activated. I tried to activate it but it still doesn't work. I also tried to switch to GD but still had the same issue. Any thoughts?
 

Attachments

  • kiss-rock.gif
    kiss-rock.gif
    1 MB · Views: 4
Back
Top Bottom