[SOLVED] Social button and ssl

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106771

Howto enable the social button for ssl.

In my case the pinterest button shows to interrupt

[blocked] The page at https://www.ilmondodiwit.com/de/shop/artigianali/1415-armband-in-messing.html ran insecure content from http://assets.pinterest.com/js/pinit.js.
 1415-armband-in-messing.html:1
The page at https://www.ilmondodiwit.com/de/shop/artigianali/1415-armband-in-messing.html displayed insecure content from http://assets.pinterest.com/images/PinExt.png.
 1415-armband-in-messing.html:587
This is the putput i get on chrome browser ALT+CTRL J

Thanks for reply

Last edit: 11 years 5 months ago by kubwit.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #106785

Hi there,

Could you end us a link to the page where this occurs so we can take a look at it?
You can already try this solution: go in your plugins folder content/hikashopsocial and edit the hikashopsocial.php file
Then just replace this line

$body=str_replace('</head>', '<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script></head>', $body);
with this one:
$body=str_replace('</head>', '<script type="text/javascript" src="https://assets.pinterest.com/js/pinit.js"></script></head>', $body);

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106864

here is one link.

https:// www. ilmondodiwit. com/shop /artigianali /product_id-1794/name-orecchini-etnici-con-clips-o-senza.html (take out the spaces)

It occurs on each product page where the plugin appears

I'll wait to change your changes because i think this will help. So you can examine what you need. after you reply this i'll change

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #106872

Try the code I gave you it should work.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106879

ok this did it. Do i have to change now each time i make an update manually?

I have a new issue with pin after updating to business version. when i pin and product i get and error on pin it which i didn't get before update.

What can be wrong?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #106881

Don't worry about the update, I fixed the bug on our end and it will be included in the next release.
The final line will be:

$body=str_replace('</head>', '<script type="text/javascript" src="http'.$this->https.'://assets.pinterest.com/js/pinit.js"></script></head>', $body);

if you want to replace it, it should work as well.
About the error message and according to this topic: www.inmotionhosting.com/support/communit...t-button-not-working it looks like it comes from pinterest and their specific restriction on images so I'm not sure we can help you on this point.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106893

are you sure. i pinned [url=http://pinterest.com/pin/517562182147340430/?fb_action_ids=3104574149818&fb_action_types=pinterestapp%3Apin&fb_source=other_multiline&action_object_map=[279412582202623]&action_type_map=[%22pinterestapp%3Apin%22]&action_ref_map=[]&fb_collection_id=10151306687677165]this[/url] some days before form here https://www .ilmondodiwit .com/ shop/ artigianali/1418-bracciale-elba-ottone-e-argento.html and it worked. after this i updated to busines and i have this issue

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #106894

We'll tried on our end but we haven't heard about a similar problem.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106906

is the watermark option in the free hikashop version available ?

Please Log in or Create an account to join the conversation.

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
11 years 5 months ago #106976

No, it is only in the Business edition.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106998

ok. So is it possibel that pinit works from the free version i used before yesterday and since i updated to busines version pinit don't accept anymore my images?? Because since i upgraded it doesn't work anymore.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #107042

Since the plugin used is the same there is no reason it behavior changed.
As I told you, the problem may come from pinterest, plus you can see the messages on the link I gave you are quite recent, so maybe they did some modification.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #107145

Hallo.

The issue that i cannot pin anymore my products after upgrading to business edition is true.

I installed for testing issues here: http:// crystal-therapy . info/index.php/shop/product /1-test (take out the spaces) the starter edition which i had on my site before upgrading to business edition.

And it works like a charm with the same image sizes that i use for my other site. Try here https:// www. ilmondodiwit . com/shop/artigianali/ 1418-bracciale-elba-ottone-e-argento.html (take out spaces) this product i pinned with the starter edition and now unchanged with business it's not working anymore.

I think i can only be an issue form hikashop

Could you please verify this.
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #107155

Could you try to reinstall your business version? or upgrade the test version you setted?
Also, are you sure the images are the same?
I can't figure where this is coming from.

The following user(s) said Thank You: kubwit

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #107176

Welcome back online !! Hope there were no serious troubles with your site.

I reinstalled the business version and nothing no change. The images couldn't be pinned. I changed the http https like you mentioned in a post before and nothing. I looked for more http in the social file and there were was the line

$html=$div.'<a href="http://pinterest.com/pin/create/button/?url='.hikashop_currentURL().'&media='.$imageUrl.'&description='$return $html;
and i changed the http to https just for curiosity and ??? it works.

don't ask me what was really the problem but now it works.

Thanks for support

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #107390

Hi there,

Indeed, I didn't thought about this! You can replace the beginning of the line by this, it should work as well (and it's the one we'll use for coming versions):

$html=$div.'<a href="http'.$this->https.'://pinterest.com/pin/create/button/?url='.hikashop_currentURL()

The following user(s) said Thank You: kubwit

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #107392

Thanks for reply. i'm glad that you found something.

i have the line 132 in that file that looks like:

$html=$div.'<a href="https://pinterest.com/pin/create/button/?url='.hikashop_currentURL().'&media='.$imageUrl.'&description='.htmlspecialchars(strip_tags($product->product_description), ENT_COMPAT,'UTF-8').'" class="pin-it-button" count-layout="'.$count.'"><img border="0" src="https://assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></span>';

What should i do ? (the https: was changed by me manually

thanks for reply

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #107397

Yes that's the right line. Just replace the 's' you added with this:

'.$this->https.'

The following user(s) said Thank You: kubwit

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 2 months ago #120183

Hallo.

After the last update i have the same initial issue. What do i have to do??

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 2 months ago #120190

Hi,

If you have a backup of your previous install you should compare the files.
I see no reason for the buttons to act like this. Could you also post here the file itself so I can take a look?
Also, you can try to reinstall the last version by downloading our package and installing again.

Please Log in or Create an account to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum