PascalCoin Forum

Forum => News & Notices => Topic started by: Skybuck on February 23, 2023, 12:56:27 PM

Title: (Solved) Editing icons are missing...
Post by: Skybuck on February 23, 2023, 12:56:27 PM
Browser affected:
Firefox
Opera

Operating system:
Windows 7 Home Edition

Browser mode:
Both with hardware acceleration disabled.

Themes tried/affected:
Default
Fusion

Cause of problem:

Unknown, maybe missing files ? maybe conflict with old HAVVO theme on server ? maybe failure to upload certain files ? Maybe icon file missing from Large Upgrade from SMF.

Possible diagnosis method/tests:
1. Re-Install SMF fully for a different forum and see if the issue occurs again with full clean install. This would then at least rule out: 1.1 Upgrade issue hypothesis and 1.2 Havvo theme conflict hypothesis.

2. Wrong folder permissions ?

3. Wrong upload ?

4. Deleted by upgrade ?
Title: Re: Editing icons are missing...
Post by: dbg on February 23, 2023, 02:07:04 PM
Quote from: Skybuck on February 23, 2023, 12:56:27 PMmaybe missing files ?
ayup
Title: Re: Editing icons are missing...
Post by: Skybuck on February 23, 2023, 08:27:22 PM
Thank you very much for your feedback ! and especially the screenshot and the hyperlink ! OH MY GOD you are a HERO ! =D

The strange thing is the file IS on the server, where it is supposed to be... hmmm....

The culprit:

/var/www/vhosts/skybuck.org/httpdocs/PascalCoin/Forum/Themes/default/images/icons/editor_sprite.png

^ Not being loaded ???, perhaps it's too big ? It's size is 13.134 bytes ?! :S

Maybe bug in PNG file, maybe buggy PNG loader/code ?

Any idea if folder/file permissions are set correctly, so far the forum seems to be working OK, except mail... but that could be a seperate issue with webhost e-mail transition to new e-mail system...
Title: Re: Editing icons are missing...
Post by: Skybuck on February 23, 2023, 08:50:17 PM
I do notice something else though.

The HAVVO theme has different folder permissions than the FUSION theme.

Perhaps this is the cause of it.

I am not yet sure what the correct permissions should be for SMF themes, I will dive into this tomorrow.

It's been a long day.

THANKS EVERBODY FOR HELP and shining some light on this ! ;) =D

TOGETHER WE CAN DO IT ! =D

HUMANITY POWER ! =D
Title: Re: Editing icons are missing...
Post by: dbg on February 23, 2023, 10:02:56 PM
The resolved path looks quite wrong to me

Untitled.png

This might need a code fix. In ./Themes/default/css/jquery.sceditor.css, find

.sceditor-button div {
background-image: url("../images/icons/editor_sprite.png");

Remove quotes

.sceditor-button div {
background-image: url(../images/icons/editor_sprite.png);

I have not faced this problem, so I hope it works.
Title: Re: Editing icons are missing...
Post by: Skybuck on February 24, 2023, 10:15:53 PM
1. Code fix does not help.

2. Permissions 777 does not help.

The mystery continues... ;)
Title: Re: Editing icons are missing...
Post by: dbg on February 25, 2023, 01:25:30 AM
Can you disable CSS minification?
Title: Re: Editing icons are missing...
Post by: Skybuck on February 26, 2023, 03:15:10 AM
Quote from: dbg on February 25, 2023, 01:25:30 AMCan you disable CSS minification?

Yes, thanks a lot ! This solved the problem ! LOL.

How long did it take you to figure this out ? And how did you figure this out ? ! =D WIEEE.

One step closer to correct functioning board ! ;) =D Just one more step to go ! ;)
Title: Re: (Solved) Editing icons are missing...
Post by: dbg on February 27, 2023, 05:48:05 AM
After you said the code edit didn't work, I thought of checking the actual CSS file. After unminifying it, I saw the rewritten URL there. And so I knew that  the problem was with the minifier and that it had to be turned off.