ElkArte Community

Project Support => Support => Topic started by: DukeOfAwesome on December 21, 2019, 08:35:34 am

Title: Likes Not Working
Post by: DukeOfAwesome on December 21, 2019, 08:35:34 am
Hi Everyone,

Just migrated from SMF to ElkArte and everything went pretty smoothly. I am on version 1.1.6 and have discovered that the Likes don't work. I have enabled them in the admin section of the site and allowed people to Like a post after they've had 1 post.

I have tested in both Chrome and Firefox with the same result. All I see in each browser status bar at the bottom is:

javascript:void(0)

When I hover my mouse of the "Like" link. Doesn't that need a value?

Thanks

Duke

Title: Re: Likes Not Working
Post by: Spuds on December 21, 2019, 09:10:59 am
The like button is an ajax call so thats why you see that as the link and its correct. 

Check the notifications section in your admin panel and make sure that master notifications  is on and that likes notification is enabled
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 21, 2019, 05:39:29 pm
Quote from: Spuds – The like button is an ajax call so thats why you see that as the link and its correct. 

Check the notifications section in your admin panel and make sure that master notifications  is on and that likes notification is enabled

Thanks Spuds. I've checked the Notifications and it's enabled there as well, so that isn't the issue. Any other ideas?
Title: Re: Likes Not Working
Post by: Spuds on December 21, 2019, 05:41:36 pm
What exactly is not working then? 
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 21, 2019, 09:12:50 pm
Quote from: Spuds – What exactly is not working then? 

When you click the Like button nothing happens. I check the Likes I've applied in my profile and there are none. Am I missing something?
Title: Re: Likes Not Working
Post by: radu81 on December 22, 2019, 02:32:10 pm
Do you have any adblocker installed? One member on my forum could not use the Likes for this reason

Can you use the Likes on this forum?
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 22, 2019, 04:34:02 pm
Quote from: radu81 – Do you have any adblocker installed? One member on my forum could not use the Likes for this reason

Can you use the Likes on this forum?

Good idea. I disabled the adblocker, but that made no difference.  I can use the Likes on this site and have Liked your post as a test. I can see that the Like button has changed from a + sign to a red - and has the number 1 in green above it.

On my site neither of things occur. The green + appears when you hover over it with the mouse, but when you press it nothing happens.
Title: Re: Likes Not Working
Post by: Spuds on December 22, 2019, 05:09:05 pm
Can you provide a url and test account so we can take a look?
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 22, 2019, 06:17:41 pm
Quote from: Spuds – Can you provide a url and test account so we can take a look?

No problem. I've setup your test account. Details are as follows:

URL: https://www.carltonsc.com
Username: TestDude
Password: thanksforyourhelp

Get back to me if you need anything more...
Title: Re: Likes Not Working
Post by: Spuds on December 22, 2019, 06:22:41 pm
Quote"Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure script '<URL>'. This request has been blocked; the content must be served over HTTPS."

You need to go to your admin panel and check both theme settings and site setting and see if you have http:// in any of the directories and change them to https:// ... Your site is https and will not load script content that is not served over http.
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 22, 2019, 06:31:05 pm
Quote from: Spuds –
Quote"Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure script '<URL>'. This request has been blocked; the content must be served over HTTPS."

You need to go to your admin panel and check both theme settings and site setting and see if you have http:// in any of the directories and change them to https:// ... Your site is https and will not load script content that is not served over http.

I have checked both locations and everything I can find is set for https://www.carltonsc.com unless there is a section I'm missing...???
Title: Re: Likes Not Working
Post by: Spuds on December 22, 2019, 06:33:14 pm
Some things are being served from step1.carltonsc.com ?? those links are http not https?
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 22, 2019, 06:35:41 pm
Quote from: Spuds – Some things are being served from step1.carltonsc.com ?? those links are http not https?
That was the temporary URL I was using while migrating from the old SMF site. Where can I find those settings in the admin section?

Title: Re: Likes Not Working
Post by: Spuds on December 22, 2019, 06:41:59 pm
Please double check your theme settings for the theme you are using ...

https://www.carltonsc.com/index.php?action=admin;area=theme;sa=list

do you see any that have that step1 thing, if so change them.
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 22, 2019, 06:52:21 pm
Quote from: Spuds – Please double check your theme settings for the theme you are using ...

https://www.carltonsc.com/index.php?action=admin;area=theme;sa=list

do you see any that have that step1 thing, if so change them.

The default theme had step1 and changed all those and then emptied the site cache using the forum maintenance and then refreshed the page. Still no joy...

Any other ideas?
Title: Re: Likes Not Working
Post by: Spuds on December 22, 2019, 06:53:49 pm
now step1 is gone but its still http and needs to be https <-   ssssssssssssssssssssssssss ;)
Title: Re: Likes Not Working
Post by: DukeOfAwesome on December 22, 2019, 06:56:06 pm
Quote from: Spuds – Please double check your theme settings for the theme you are using ...

https://www.carltonsc.com/index.php?action=admin;area=theme;sa=list

do you see any that have that step1 thing, if so change them.

I just went back and checked and the default theme wasn't set for HTTPS. I changed that and now it's working. Thanks you so much Spuds! You're a God!!!
Title: Re: Likes Not Working
Post by: Spuds on December 22, 2019, 06:56:54 pm
LOL ... glad its fixed ... Now Welcome to ElkArte !