Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Unable to upload avatars, and an odd HTML bug.
Avatar
Timothy Burton
Member
sp_UserOfflineSmall Offline
Aug 1, 2016 - 11:14 pm

I've recently been running into a few odd issues with my forums, and suspect there may be a common, underlying issue causing these symptoms. We went through a process of changing hosts, and the person who was in charge of moving our website to the new host *might* have done something to cause these issue, but I don't quite know if or what that would be. I do know that with our previous host, we were using nginx, and now we are using apache. I'm not an expert in web hosting by any means, and mainly deal with just the backend of our WP site.

The first issue is with avatars. The issue started with users unable to upload an avatar. I know that this was working prior to the host migration, but afterwards, it no longer works. The issue users were getting is "Sorry, there was a problem resizing the avatar."

My avatar upload settings were set to 100000 file size and 100px image size. I know for sure that the images we attempted to upload were within these parameters. 

Then, I went into the SP settings and disabled "Display avatars" and "Enable avatar uploading", saved the settings, then re-enabled both settings.

Now, no one can upload any avatars. Going to user profile>edit avatar doesn't display any options to upload avatars, as if the settings were disabled (but they are enabled).  

My second issue is this very bizarre HTML bug where the HTML+images from my HOME page 'injects' itself into the buttons (like the private message, subscribed, watching, etc buttons), causing what appears to be the entirety of the contents from my home page to be overlayed on top of the forum page.

This only happens when a user is logged in, and doesn't happen immediately. Simply by logging in, visiting the forums, and letting the page sit untouched will eventually lead to this bug popping up. Refreshing the page resets it 'back to normal', only for it to randomly occur again.

This happens for multiple users, on multiple browsers (confirmed to happen on FF and Chrome), even on multiple operating systems (happened both on my mac and PC). It also happens on different SP themes (I've seen it happen on the reboot and stacked themes).

Here are some images of what it looks like:

http://prnt.sc/c0ft3k

http://prnt.sc/c0fu4p

http://prnt.sc/c0fszo

Notice how in this following image, when I hover over any part of this bugged overlay, it shows that it links to the inbox (the private message plugin for SP), which is why I say that it's 'injecting' HTML into the various buttons.

http://prnt.sc/c0ftxc

 

If you want to see this bug in action, then visit the following site, register as a user, then visit the forums and just wait. It will eventually happen.

http://www.rebirthgaming.org

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 1, 2016 - 11:42 pm

what versions of wp and simple press??

seems like ~100k size would be big enough... what size were they?  when you get the upload failed message, can you check your wp error log and see if any more info is provided there?

for second issue (which I am not entirely sure I fully understand - screenshots dont always tell the story), was everything working fine on old server with this theme?? and just started after moving?  

of course, I am not logged in...  if you wanted to create some temp credentials and pm them to yellow swordfish and myself, we could take a closer look...

does the second issue also occur if you do a temp switch to the default  wp theme?

on a lot of the forum pages, I am seeing jquery errors which could be part of the problem...

also, I notice that all of your topic slugs are numeric ids...  are you using our topic id permalink plugin to make this happen?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 2, 2016 - 4:22 am

I think @mr-papa meant check the 'SP Error Log' (Form admin > toolbox) regarding the avatar upload and look for errors. It is best to clear the error log out first before trying the upload so that we can see if anything gets generated by the actual act in isolation.

As to the display issue then this can happen (I have seen it) if you have our AutoUpdate feature turned on but there are script errors occurring. So creating an account for us to check it out is the way to go. As a policy we do not register on users sites but always ask them to create an account we can use and PM the credentials to us.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Timothy Burton
Member
sp_UserOfflineSmall Offline
Aug 2, 2016 - 8:49 am

I didn't clear out the error log as suggested, since I can't actually attempt to upload avatars anymore. But, I did pinpoint errors around the time when one of my users was getting an error when attempting to change his avatar. (My forums rarely get used, so it made it easy to isolate the error in the log)

As stated before, after having another one of my users report to me that he was receiving an error when attempting to upload an avatar, I went into the settings and disabled the ability to upload avatars, then reenabled it to see if it would fix it. However, even though the settings are set to allow for avatars, users are no longer given the option to do so.

Enabled in the settings: http://prntscr.com/c0ms3p

Unable to upload: http://prntscr.com/c0mtuz

Errors that generated when my user attempted to upload an avatar last night, and received the “Sorry, there was a problem resizing the avatar."

http://prntscr.com/c0muf0

 

So, just to clarify: A user had the option in profile>edit avatar to actually upload an avatar. When they attempted to upload their image (it was a 32x32 image, and my limits were set to 100x100), they got “Sorry, there was a problem resizing the avatar."

The errors posted above were then generated.

I went into the SP settings, disabled avatars and disabled the ability to upload them. Saved settings. Re-enabled both settings. Saved settings. Now the option to upload any avatars at all is gone.

 

also, I notice that all of your topic slugs are numeric ids…  are you using our topic id permalink plugin to make this happen?

Yep, I am: http://prntscr.com/c0n2p7

does the second issue also occur if you do a temp switch to the default  wp theme?

Not quite sure if I can just straight up disable my theme, but I did switch it to the css-only theme. And yes, it still happens.

After talking to someone else about this, they found out the cause:

http://prntscr.com/c0n69s

Not entirely sure how or why, though. I'll continue to investigate on my end.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 2, 2016 - 11:15 am

Re-enabling Avatars:
You say you have turned back on the option to upload avatars but did you reset the avatar priorities? They are saying the first priority is to use the SP Defaults and when that it is the first priority you will never get any other options as they have no relevance. So check the priorities on the avatar options admin panel and change as required.

Then when re-enabled can you do the error log check as described above. The front-end message is not the error - it is an informational statement.

Scripts:
You DO have an error on the page load. This is a jQuery error and as soon as it hits the scripts then jQuery closes down and will not process any other requests. So there is much that may not work as expected. To keep it simple here is a screenshot of the script error:

Screen-Shot-2016-08-02-at-13.49.01.pngImage Enlarger

I have no idea which one of your rather large number of scripts is causing this error. I can do a google search to see if anything turns up but something you have active is the root cause and that is causing issues.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Timothy Burton
Member
sp_UserOfflineSmall Offline
Aug 2, 2016 - 5:54 pm

but did you reset the avatar priorities?

Woops! I fixed my priorities, and the ability to upload avatars has been restored. However, I cleared my log, attempted to upload an avatar, and received the same front-end error. Nothing was logged in my error log coinciding with the attempt.

 

Ok, for the script error, I tried a few things:

First, I went through and updated what few plugins had updates pending (probably should have done this to begin with...) 

That didn't help.

Then, I disabled a plugin that I suspected to be the cause (Sidebar Login Widget, since it ties into login stuff and uses Ajax), but the error still occurred. 

At this point, I'm taking shots in the dark and following clues, so I'll continue to investigate on my end.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 3, 2016 - 3:01 am

Well I have done a little reading on this error. WP 4.5 updated the jQuery version (as it does when they become available) and it looks like the error you are receiving is, in all probability, down to a WP theme or plugin that has not ben updated to cater for jQuery changes.

The WordPress team do put out documentation on such changes for theme and plugin authors but sadly, some of those authors do not always update their code as they should or in good time. What the item may be, however, is a matter for some detective work.

However - the first port of call if it were me, would be to ensure that all my WP components were up to date. I do not know, of course, if you have any updates pending but if you do it would be worth applying them in case this error has been picked up and corrected.

As it is not entirely our of the question that the avatar issue is linked to the stalled use of jQuery then getting a clean base is really the first priority.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Timothy Burton
Member
sp_UserOfflineSmall Offline
Aug 3, 2016 - 9:37 pm

Alright, so quick update as to not keep you wondering.

I've been having quite a fiasco with my site. It's like I opened a whole can of worms.

Good news (sort of) is that I can get avatar uploads to work by disabling the quality reduction upon resizing function. Not sure if this is a necessary component, but as long as user upload an image within the size/dimension parameters I've set, then it works, and that's all that matters to me. 

Bad news is that the script error seems to be embedded deep into my site. Still not entirely sure what's the cause, and I think this is where my issue starts to... not fall within SP territory. You're welcome to provide more assistance (and would be greatly appreciated), but I can understand if you don't since this probably is NOT an issue with SP directly.

Basically, I've pinpointed the issue Visual Composer. I'll spare you the gory details, but even after trying pretty much everything I can think of, nothing seems to work. Even disabling the VC plugin results in the CSS on some parts of the forums to break. It almost feels like spaghetti code.

I think the only fix for my script problem is to either use a different theme, or to hope that my theme author fixes and releases an update.

Anyways, I'm gonna see if the folks over on the WP forums can help me out with this.

Thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 4, 2016 - 12:35 am

please let us know what you find...  or if we can help...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 4, 2016 - 4:31 am

My own opinion - for what it is worth - is that you should take the case specifically to the Visual Composer team IF this is the source of the script error. I can conform 100% that the code that is causing the problem is no longer supported and any plugin using it should have been updated at the same time as WP 4.5.

I don't know what Visual Composer is to be honest - one day I must take a look at it. But I do know we have had issues in the past raised here (a quick search this morning threw up a few topics) and it does appear to spawn an awful lot of scripts as I saw when looking at the HTML source of your website.

You really should make then aware of this issue...

As to the avatar resizing. This itself may very well be down to the script engine being stalled by the error. We have no other reports of resizing being an issue and evidence that it is used regularly. If, when the scripts are sorted, it continues then do come back and shout. And as Mr Papa said above - please do keep us in the loop!

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626