XF 1.2 Uploading Avatars: Not Displaying - Broken

Wesker

Well-known member
Permissions are set to 777 with uploading avatars, yet for every avatar uploaded, they give an error

 

Wesker

Well-known member
It has to be one or the other. You should check in your XF settings whether you're using GD or Imagick for image manipulation.
Where do I find this?

Note that it's just the thumbnails that aren't displaying.
 
Last edited:

Mike

XenForo developer
Staff member
If you view the image directly in your browser, what does it show? Better yet, can we see the URL in question?
 

Wesker

Well-known member
If you view the image directly in your browser, what does it show? Better yet, can we see the URL in question?
Basically the thumbnails aren't working but if you click on the users profile you can see the avatar or if you view their thread, you can see it. It's specifically though when you view the forums with all the threads that the thumbnails are broken.

I'm not sure if it's imagick or GD, not sure where I can view this. Imagick isn't installed on this server and I need to migrate to upgrade as I'm using an outdated version of Red Hat. Can I switch this to GD. Not familiar with this so need some pointers.
 

Tracy Perry

Well-known member
I'm not sure if it's imagick or GD, not sure where I can view this. Imagick isn't installed on this server and I need to migrate to upgrade as I'm using an outdated version of Red Hat. Can I switch this to GD. Not familiar with this so need some pointers.
ACP -> Options -> Attachments ->
The Default Image Processor near the bottom of the list.
 

Mike

XenForo developer
Staff member
The questions in my previous post still stand -- notably, being able to see this directly would be the most useful method of debugging.
 

Wesker

Well-known member
The questions in my previous post still stand -- notably, being able to see this directly would be the most useful method of debugging.
Mike, Im going to PM you a link to the website right now. Thank you.
 

Mike

XenForo developer
Staff member
So you have a medium and a large version of that avatar, but not the small version. The small version returns a 404. This indicates that the resizing is fine, as you wouldn't get a medium version otherwise.

This basically just points to permission issues (or a server move and content not being moved correctly, but I'm assuming it's not that). You should make sure the permissions on the data/ and internal_data/ and all directories and files within (recursively) are correct -- that usually means 0777.
 

Wesker

Well-known member
Here is what someone said who analyzed the server:

Doing some quick digging the issue simply appears that your class from "Xenforo" has an undefined method it is trying to use.

PHP Fatal error: Call to undefined method XenForo_Image_Gd::thumbnailFixedLongerSide() in /library/Waindigo/Avatar/Extend/XenForo/Model/Avatar.php on line 278.

This means your script library is missing the function/method called "thumbnailFixedLongerSide()" which looking at the actual documentation for this function/methods appears this one actually doesn't exist.

docs/classes/XenForo_Image_Gd.html

It does appear the method thumbnailFixedShorterSide() does exist though. I would have your developer of this script/module make sure this isn't a mistake.
 

Wesker

Well-known member
So you have a medium and a large version of that avatar, but not the small version. The small version returns a 404. This indicates that the resizing is fine, as you wouldn't get a medium version otherwise.

This basically just points to permission issues (or a server move and content not being moved correctly, but I'm assuming it's not that). You should make sure the permissions on the data/ and internal_data/ and all directories and files within (recursively) are correct -- that usually means 0777.
All permissions are set to 777 including sub directories/files. Still not working.
 

Wesker

Well-known member
I uninstalled and removed the files from the server for this Waindigo add-on yet the error still is there.
 

Mike

XenForo developer
Staff member
You've uploaded a new avatar and you're still receiving the fatal error?
 
Top