News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Smileys missing completely

Started by Storebror, February 12, 2019, 06:42:39 AM

Previous topic - Next topic

Storebror

Dear all,

I've successfully converted an existing 2.0.15 forum to 2.1 RC 1 and so far managed to make my way through the small issues I've faced alongside that conversion, but now I got to a point I somehow don't manage to solve:
My converted Forum doesn't show the available Smileys in the "Post" form.
Not at all.
It's not that the smileys aren't there (they are, and they are enabled and visible in the "Edit Smileys" settings page.
It's also not that the smileys which are installed won't work. When I manually enter the corresponding smiley "code", it will show in the message just normal.
It's just that the "bar" of smileys, which is usually shown on top of the "Post" form textbox, is missing completely.
Furthermore I've got the SMFPacks Shoutbox 1.4 installed (which is 2.1 RC 1 compatible), and it works well except for the fact that the smiley icon is missing on the shoutbox too.

I'm kinda lost here as all settings seem to be fine.
Any help would be appreciated!

Cheers!
Mike

Gwenwyfar

"It is impossible to communicate with one that does not wish to communicate"

Storebror

I've tried Chrome and Firefox so far.

Cheers!
Mike

Gwenwyfar

There's a bug with smileys not showing in IE, I guess that's not the case.

Have you made sure the smileys are set to display in the editor? They can be disabled on the quickreply box.

Edit: Theme settings -> "Use full editor toolbar in Quick Reply"
"It is impossible to communicate with one that does not wish to communicate"

Storebror

I don't even have that setting.
Here are my Theme Settings:


Cheers!
Mike

Gwenwyfar

"It is impossible to communicate with one that does not wish to communicate"

Storebror

There's even less of it:


Cheers!
Mike

Storebror

Ah I see, it's in each member's own "Look and Layout" settings.
Enabled that setting, doesn't change a thing.
I've also enabled the "Wysiwyg" setting, also no change.

Cheers!
Mike

maximus23

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

Storebror

Thanks, applied the fix, doesn't change things either.
I do have a clue now.
Looking at the smf_smileys database table, it starts with the smileys that have been defined on my old 2.0.15 board:

...then at the end of that (formerly working) list, something new comes up...


That new (non-working) part, and only that, is what I see in the "Edit Smileys" settings:


Seems to me like the Upgrade Process somehow messed up the smiley configuration.
Only question is: Which is the right way to get this fixed?

Cheers!
Mike

Storebror

For what it's worth, I've dropped both "smf_smileys" and "smf_smiley_files" tables and re-imported the smiley set from start, which restores both tables with apparently valid content, and it restores the smileys in the admin panel's smiley settings as well, however the result is still the same: No clickable smileys anywhere.

I'm lost again...

Cheers!
Mike

shawnb61

Which sets do you have? 

What happens if you change the default set?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Storebror

I've tried the preinstalled "Default" set and the (also standard me thinks) "Akyhne" set.
Changing them shows absolutely no effect on posting, but I can see that the corresponding smileys have been imported correctly in the database.

Cheers!
Mike

shawnb61

The 2.0 sets included the default directory (alienine, in .gifs), Aaron & Akyhne.

The 2.1 sets include fugue and alienine (in .pngs).  Those should have been copied over to the Smileys directory when you unpacked the install zip. 

A few more questions -

What are the permissions settings for your Smileys folders & files?

Do you see alienine & fugue in the dropdown when you use the New Smiley Set function under Smiley Sets?

Do you see alienine & fugue folders in your file system?

What do you see when you Inspect (right click, choose Inspect) the smileys bar in the editor?   (Should look something like the attached...)
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Storebror

Quote from: shawnb61 on February 12, 2019, 12:55:47 PM
The 2.0 sets included the default directory (alienine, in .gifs), Aaron & Akyhne.

The 2.1 sets include fugue and alienine (in .pngs).  Those should have been copied over to the Smileys directory when you unpacked the install zip.
Okay, that's understood.
Yes, the new 2.1 sets are there (in .pngs), I've selected "fugue" now so we're all on the same page and have set this to be the only (and therefore default) smiley set there is.

Quote from: shawnb61 on February 12, 2019, 12:55:47 PM
What are the permissions settings for your Smileys folders & files?
This particular system is a Windows Server 2016 (IIS) and in order to make sure that this cannot be an issue, I've added full permission to "everyone" to the whole SMF 2.1 folder and subfolders for the time being.
I've tried on another Windows Machine with XAMPP locally and get the very same issue.

Quote from: shawnb61 on February 12, 2019, 12:55:47 PM
Do you see alienine & fugue in the dropdown when you use the New Smiley Set function under Smiley Sets?

Do you see alienine & fugue folders in your file system?
Yes to both, seen and selected.

Quote from: shawnb61 on February 12, 2019, 12:55:47 PM
What do you see when you Inspect (right click, choose Inspect) the smileys bar in the editor?   (Should look something like the attached...)
There's the issue: I don't have no smileys bar in the editor.
My editor looks like this:


The only place where I can see the smileys bar is in the admin settings:


I can inspect that bar and it looks fine to me:


The problem is that I cannot for my life get that bar to show in the editor...

Cheers!
Mike

shawnb61

I think we may need to eliminate the possibility the Shoutbox is the problem... 

Could you try de-installing Shoutbox?



Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Storebror

Did so before already, no change.

Cheers!
Mike

SychO

So you can't even see the smileys when creating a new topic ?
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Shambles

I'd be inspecting the browser tool's "console" for JS errors.

Storebror

Okay, we're a tad further.
Today I have started from scratch again, with the full backup of my SMF 2.0.15 forum, then uninstalled all mods, made sure that the log was (and stayed) error-free and then performed the upgrade again.
Smileys were there.
Then I installed the shoutbox mod.
Smileys were gone.
Then I uninstalled the shoutbox mod.
Smileys were there, but I got errors about missing hooks.
Removed the hooks, smileys were there, errors gone.
Installed shoutbox, smileys were gone.
Left the shoutbox installed but deactivated in settings: Smileys were there, no errors.
Activated shoutbox again: Smileys are gone.

And indeed there are JS errors, two of them.

First error:
Error parsing header X-XSS-Protection: 1, 1; mode=block: expected semicolon at character position 1. The default protections will be applied.
index.php?action=post;topic=60554.0;last_msg=666330:1

Clicking on the error link shows that it complains about the main source's doctype, this "error" cannot be taken serious apparently:
<!DOCTYPE html>

Second error:
colorpicker.js:78 Error parsing header X-XSS-Protection: 1, 1; mode=block: expected semicolon at character position 1. The default protections will be applied.
ColorPicker_ColorBox @ colorpicker.js:78

The complaint concerns this line of code:
document.write('<div>');
and it complains about anything past the dot after "document".
This seems odd to me.
"document.write" should not be allowed anymore?

Cheers!
Mike

Advertisement: