Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Plantje on December 03, 2022, 05:09:02 PM

Title: No default smileys on production
Post by: Plantje on December 03, 2022, 05:09:02 PM
On my production environment the default smileys are not available. I have loaded a few sets of smileys and the default ones are not found. All others in sub directories of the same directory as where the default smileys reside they are working. This is for vliegvissers.com
On my test environment (https://www.vliegvissers.nl/SMForum/index.php) everything is working fine. Including the default ones. I have checked the settings and everything seems the same.

Running 2.1.3 on both environments
Title: Re: No default smileys on production
Post by: Steve on December 18, 2022, 07:07:43 PM
Is this still a problem @Plantje?
Title: Re: No default smileys on production
Post by: Plantje on December 29, 2022, 11:28:24 AM
And again... unfortunately no notification E-mail. :(

Well.... I've found my way here... :)

Yes, it's still a problem. I have removed the default smiley set and added it again. By default now, if I go to the page to change the smileys it looks like this:
Schermafbeelding 2022-12-29 172601.png

And then I have to manually navigate to the location of the image:
Schermafbeelding 2022-12-29 172242.png   

Title: Re: No default smileys on production
Post by: Plantje on December 29, 2022, 11:29:53 AM
Not sure what is safe to share here when it comes to settings of file locations.
Title: Re: No default smileys on production
Post by: Steve on December 29, 2022, 12:58:15 PM
As long as no password information is posted you should be safe in most cases. When in doubt, ask.

Have you run https://wiki.simplemachines.org/smf/Repair_settings.php at any point?
Title: Re: No default smileys on production
Post by: Plantje on December 31, 2022, 03:26:30 AM
I have not run https://wiki.simplemachines.org/smf/Repair_settings.php

Let me see, if I can show why I believe the default smileys should be working...

Let's focus on the wink smiley...
Files on server.png
These are the files on the server. For every picture: the left one is my Test environment that IS working and on the right side is my Production environment that is NOT working.

The settings:
Settings.png
Test environment: /customers/4/2/c/vliegvissers.nl/httpd.www/SMForum/Smileys 
Production environment: /customers/3/2/5/vliegvissers.com/httpd.www/SMForum/Smileys

Smiley sets:
Smiley sets.png
(Doesn't work either if I add all smiley sets to the Production environment)

Edit smileys screen:
Wink smiley.png

For some reason it doesn't search for the file "wink.gif" which is really there! As a matter of fact: on my Production environment all folders hold the entire set of files. 
Title: Re: No default smileys on production
Post by: Illori on December 31, 2022, 05:47:31 AM
can you try running repair_settings.php? it may help to fix the issue.
Title: Re: No default smileys on production
Post by: Plantje on December 31, 2022, 05:55:32 AM
Ran it, didn't fix the issue...
Title: Re: No default smileys on production
Post by: Kindred on December 31, 2022, 12:58:11 PM
I almost guarantee that the issue is your url and/or database.

I assume that you set up in staging and then copied to production. Right?

You need to copy the database to a production database AND then change Settings.php in production to the NEW database.
Then, after that,  you need to set the paths using repair_settings
ALL the paths and URLs.
Also http vs https
Title: Re: No default smileys on production
Post by: Plantje on December 31, 2022, 01:40:24 PM
Quote from: Kindred on December 31, 2022, 12:58:11 PMI almost guarantee that the issue is your url and/or database.
Where should I check in the database?
Quote from: Kindred on December 31, 2022, 12:58:11 PMI assume that you set up in staging and then copied to production. Right?
Nope. These are two independent environments. If I do something, I first do it on the Test environment, I make notes of the steps. And after testing for a while, I perform the same steps on Production. No copy/pasting from one environment to another.
Quote from: Kindred on December 31, 2022, 12:58:11 PMYou need to copy the database to a production database AND then change Settings.php in production to the NEW database.
Then, after that,  you need to set the paths using repair_settings
ALL the paths and URLs.
Also http vs https
Why http vs https? I got some complaints of people getting the message that the site was not secure. And if for example I open the wink smiley on this (community) site it opens in https as well: https://static.simplemachinesweb.com/smf/smileys/default/wink.gif Or am I on a wrong track?

Enjoy new year's eve!
Title: Re: No default smileys on production
Post by: Steve on December 31, 2022, 03:44:23 PM
I sure @Kindred meant https vs http ... meaning your paths should be https.
Title: Re: No default smileys on production
Post by: Kindred on December 31, 2022, 07:40:21 PM
Exactly...    if your smilies are using http, but your site is https, the smilies won't show
Title: Re: No default smileys on production
Post by: Plantje on January 01, 2023, 07:33:55 AM
Ah, like that. Currently everything is running https. So the current setting of https should be ok.
Title: Re: No default smileys on production
Post by: Kindred on January 01, 2023, 05:47:00 PM
If people are getting warnings, then not everything is actually https.

Is vliegvissers.com your production site?
Title: Re: No default smileys on production
Post by: Plantje on January 02, 2023, 03:16:41 AM
No fortunately that is fixed. English is not my native language, so I can make some mistakes here and there.
I got some complaints of people that got the notification my forum was not secure. I fixed that and with the migration to SMF 2.1.3 (from 2.0.18) now the last bits and pieces are also on HTTPS. So, I'm good there.

Yes, vliegvissers.com is the Production one.

Yesterday I was comparing the databases. But the thing is: as soon as I login on my control panel on One.com and open the database for vliegvissers.nl, if I then open another Edge screen and navigate to One.com and open the database for vliegvissers.com it is stuck in the same session. And I cannot control the vliegvissers.nl DB anymore. Makes it harder to compare.
Title: Re: No default smileys on production
Post by: Dave J on January 02, 2023, 05:54:33 AM
Quote from: Plantje on January 02, 2023, 03:16:41 AMNo fortunately that is fixed. English is not my native language, so I can make some mistakes here and there.
I got some complaints of people that got the notification my forum was not secure. I fixed that and with the migration to SMF 2.1.3 (from 2.0.18) now the last bits and pieces are also on HTTPS. So, I'm good there.

Yes, vliegvissers.com is the Production one.

Yesterday I was comparing the databases. But the thing is: as soon as I login on my control panel on One.com and open the database for vliegvissers.nl, if I then open another Edge screen and navigate to One.com and open the database for vliegvissers.com it is stuck in the same session. And I cannot control the vliegvissers.nl DB anymore. Makes it harder to compare.


Use a different browser for each site location.