• Welcome to Simple Machines Community Forum. Please login or sign up.
January 18, 2022, 09:35:04 AM

News:

SMF 2.0.19 has been released! Please update. Read more.


Can't see my avatar

Started by Dr Web, November 19, 2021, 12:39:56 PM

Previous topic - Next topic

Dr Web

I was using the Core Theme and I could see my avatar in my messages as a visitor, and when I was logged in as admin.

Since I installed a new theme, I can see my avatar in my messages as a visitor, when I am not logged in, but when I am logged in as admin, I can't see it. I see only the standard image like you can see on the image attached.

Today I installed a test forum only to see if it would work, and it works perfectly.

I have no idea what I did to cause this.

Any ideas?

Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Kindred

umm.....    since a default avatar is not part of core SMF 2.0.x, did you install a mod?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dr Web

November 19, 2021, 12:57:22 PM #2 Last Edit: November 19, 2021, 01:08:37 PM by Dr Web
No. I only installed the Like IPB Theme from Diego. And it was after this that this began to happen.

I asked Diego and he could not reproduce the error on his test forum, so I thought it was something related to SMF.

I attach a list of the installed mods. The three last ones were the optimus, alternate user posting and afguo, but, I am almost sure they were already installed before installing the new theme.

Edited: The image belongs to the IPB theme, it's called "noavatar". I deleted the image and now obviously Idon't see it but, also not my avatar.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Aleksi "Lex" Kilpinen

If it's not a separate mod, and if that default image is included in the theme - It would be logical to assume the theme has a "default avatar" function within it, and that you should probably ask the theme author about this.
But to confirm - If you change back to the default theme, can you see your avatar? And are there no default avatars then for users without a custom avatar?
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Dr Web

I changed to the Core Theme, and than to default theme, and in both happens the same. I can see my avatar on my profile and in the message as a guest. As soon I login, I can't see in the message.

Now I remembered that a few days ago I deleted something related to the avatars. I don't know if it was on the admin panel or in the server, because I decided that the members would not use avatars, only me, but, now I don't remember what I deleted. I already looked in the trash folder in the server, but, I don't see there any folders or files related to avatars.

I already deleted my avatar a few times and uploaded again, and I have the same results. I see it on my profile but not in my messages. As guest, i see it.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Shambles

Use the "View page source" option in your browser to see what's being inserted as html for your avatar image.

Additionally, right click where you expected your avatar to show and use the browser inspection tool to see if any console or network errors are being reported.

Dr Web

November 19, 2021, 02:44:03 PM #6 Last Edit: November 19, 2021, 03:24:11 PM by Dr Web
The image on top was logged in as admin. The one at the bottom was as a guest. I only hid the domain.

Below are the warnings when I used the browser inspection tool logged in as admin.

No errors, only warnings.

QuoteThis page uses the non standard property "zoom". Consider using calc() in the relevant property values, or using "transform" along with "transform-origin: 0 0". teste
Request to access cookie or storage on "<URL>" was blocked because it came from a tracker and content blocking is enabled. 11
Some cookies are misusing the recommended "SameSite" attribute 2
Content Security Policy: Ignoring "'unsafe-inline'" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "https:" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "http:" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "'unsafe-inline'" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "https:" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "http:" within script-src: 'strict-dynamic' specified

Edited: Ok, looking at the code in these screenshots, I see that one is taking the image from the theme's images folder, and the other one from the attachments folder, but I don't see my avatar there.

Then I remembered that a few days I was looking at the database where I could clean the cache of pretty urls, and then I saw there something about the avatars and I think it was there that i deleted something. Maybe a table or tables? If it was there, can I find and restore deleted db tables?

No, I just compared both dbs and the one that I installed today looks equal. I am confused now.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dr Web

I tried now a default avatar that comes with SMF default theme, and it happens exactly the same as with my custom avatar.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dr Web

Any ideas about this? What may be the problem here? Like I said above, the default avatars are available, but when I chose one of them, it happens exactly the same in all three themes I have installed, default, core and LikeIPB.

Thanks
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Sir Osis of Liver

Quote from: Dr Web on November 19, 2021, 01:57:56 PMNow I remembered that a few days ago I deleted something related to the avatars.

Deleted what?  A file?  Some code in a file?  Unless you have a lot of customizations, best bet is to upload clean files and reinstall mods.

"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

Dr Web

Quote from: Sir Osis of Liver on November 22, 2021, 11:48:38 AMDeleted what?  A file?  Some code in a file?  Unless you have a lot of customizations, best bet is to upload clean files and reinstall mods.

Like I said, I am not sure anymore. It was not a file because I can't find anything related in the trash. A piece of code is unlikely because I would not do it by myself, as I do not have enough knowledge to just decide to delete some piece of code.

I have about 10 Mods and I am so sick of this that I do not have patience to uninstall and install everything again.

The screenshots I attached above with the page source code do not give any hints?
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Shambles

Interesting observation in your screenshots.

When seen as guest, 'class="avatar"' appears in the avatar <img> tag. When logged in, the class is suppressed.

Might be worth a ganders at your Display.template.php to see why this is happening.

Dr Web

Quote from: Shambles on November 22, 2021, 02:57:32 PMInteresting observation in your screenshots.

When seen as guest, 'class="avatar"' appears in the avatar <img> tag. When logged in, the class is suppressed.

Might be worth a ganders at your Display.template.php to see why this is happening.

As this is happening in all three themes installed, Default, Core and LikeIPB , I will attach the three files.

I am using now the LikeIPB theme.

Thank you for looking into this.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dr Web

Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dr Web

And another bump. Maybe I have more luck today and someone looks at the files and maybe can see if there is something wrong with them.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Sir Osis of Liver

If it's happening in different themes that each have their own Display.template.php (Curve & Core), problem may be in Display.php.
"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

Dr Web

Thanks for the response. I attached here the display.php file.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Sir Osis of Liver

File works fine in Curve and Core.  Logging any forum errors?  Server errors?  Have you tried clearing forum and browser cache?  Different browser?  Change cookie name?

Where did you get Like IPB theme?  Not finding it on theme site.

"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

Dr Web

November 27, 2021, 05:13:44 AM #18 Last Edit: November 27, 2021, 05:38:01 AM by Dr Web
Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMLogging any forum errors?

The only error that may be related to this issue is the one on the error2 attachment, but I already looked at SMF original files, and there isn't any cache/images file. However I have a few errors like this one on the error log.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMServer errors?

No server errors.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMHave you tried clearing forum and browser cache?

Yes, maybe 10 times, without success.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMDifferent browser?

Yes, I tried with Firefox, Chrome, Edge, Opera and Brave(a new one). Also tried several times, cleaned the cache, tried again, without success.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMChange cookie name?

This I didn't try because in things I do not understand, I don't touch. I didn't know I can change this.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMWhere did you get Like IPB theme?  Not finding it on theme site.

It's one of Diego Andrés Themes. You can find it here: https://demo.smftricks.com/index.php?theme=54
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Steve

Have you tried https://wiki.simplemachines.org/smf/Repair_settings.php/en ?

In addition to finding errors, it can be used to change the cookie name. I'd fix any errors it suggests ...
Please do not PM me for support.

Advertisement: