FAQ not works when social marketing is activated

Hi,

When Social Marketing plugin is activated. I'm not able to open FAQs on website when its activated, but when i deactivate Social Marketing plugin my FAQ works fine again.

Should i grant you access to site for try to have a look at this ?

  • Milan

    Hello @Mikkel,

    Thanks for granting me support staff access.

    All configuration seems fine to me. But while social marketing and SLS both are enabled on site, then some of the scripts which social marketing loads internally loads over http not over https. So major browser like chrome, firefox and IE don't load resources( scripts and files ) which are loaded over http on SSL enabled site.

    To solve this issue you need to edit some of the core files of Social Marketing plugin. I've already edited necessary core files to make it load over https. Please replace files in your wp-content/plugins/social-marketing/lib/services folder with attached ones.

    Let me know how it goes for you. :slight_smile:

    Cheers

  • Milan

    Hello @Mikkel.

    I hope you are having a good day and sorry for being late here.

    Would you be able to send in your FTP and wp-admin credentials so I could take a look?

    You can send the info through our private contact form: https://premium.wpmudev.org/contact/

    Select "I have a different question" for your topic - this and the subject line ensure that it gets assigned to me :slight_smile:

    Send in:

    Subject: "Attn: Milan Savaliya"
    -WordPress admin username
    -WordPress admin password
    -login url
    -FTP credentials (host/username/password)
    -link back to this thread for reference
    -any other relevant urls

    Once we have this information then I can debug the issue further :slight_smile:

    Look forward to hearing back!

    Cheers,
    Milan.

  • Milan

    Hello @Mikkel,

    I hope you are having a good day and sorry for being late here.

    Thanks for providing me required information. Had you replaced files of wp-content/plugins/social-marketing/lib/services directory with attached once. ? I think you might have forgot to do so. Because I've just replaced files and it started working fine. Could you please confirm that your issue has been resolved ?

    Please take backup of folder wp-content/plugins/social-marketing/lib/services for future changes.

    Cheers,
    Milan Savaliya

    • Mikkel

      Hi Milan,

      Yes it look like the FAQ works fine now, but now another problem is started on site.
      I have not seen this error before after that change it made, so can you maybe tell me if that error is something about this, or if this is something else i need to make a new topic for?

      When going to main site now and also some other pages i get this error message:
      Fatal error: Call to undefined function get_current_screen() in /var/www/clients/client0/web1/web/wp-admin/includes/class-wp-screen.php on line 348

      Best regards,
      Mikkel

  • Milan

    Hello @Mikkel,

    Hope you are doing well. :slight_smile:

    Should i update files when you make new updates for social marketing plugin or is the change something you will put in new update?

    Dear member right now I've updated core plugins files so if you update plugin when update become available you'll lose changes I've made. But it doesn't mean you should not update plugin. Update comes with many bug fixed and improved version of product. So I suggesst you update plugin but before you do so just take backup of files which are under wp-content/plugins/social-marketing/lib/services.

    Now here I want to make one thing clear, changes I've made is not something which affect plugin's internal functionality, there are some files which I've changed to make required scripts load via https rather than http protocol.

    Once plugin gets updated you can manual change those files as below,

    You'll find mentioned files under wp-content/plugins/social-marketing/lib/services folder.

    #1) class_wdsm_facebook_service.php
    Replace line,

    wp_enqueue_script('facebook-all', 'http://connect.facebook.net/' . $locale . '/all.js');

    with

    wp_enqueue_script('facebook-all', 'https://connect.facebook.net/' . $locale . '/all.js');

    #2) class_wdsm_google_service.php
    Replace line,

    echo '<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>';

    with

    echo '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>';

    #3) class_wdsm_linkedin_service.php
    Replace line,

    echo '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>';

    with

    echo '<script src="https://platform.linkedin.com/in.js" type="text/javascript"></script>';

    #4) class_wdsm_twitter_service.php
    Replace line,

    echo '<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>';

    with

    echo '<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>';

    I hope this helps you.

    Cheers,
    Milan Savaliya.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.