Title: Some functionality issues with the plugin
Last modified: February 9, 2019

---

# Some functionality issues with the plugin

 *  Resolved [chithract](https://wordpress.org/support/users/chithract/)
 * (@chithract)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/)
 * Hi,
 * I’m facing some functionality issues when I installed the plugin.
 * The page rules dropdown is empty
 * [https://www.dropbox.com/s/h30j3jfe3cwsdtw/Screen%20Shot%202019-02-09%20at%209.47.39%20AM.png?dl=0](https://www.dropbox.com/s/h30j3jfe3cwsdtw/Screen%20Shot%202019-02-09%20at%209.47.39%20AM.png?dl=0)
 * It shows the below script error in console:
 * [https://www.dropbox.com/s/jbtrjq9mfawwzr8/Screen%20Shot%202019-02-08%20at%204.47.13%20PM.png?dl=0](https://www.dropbox.com/s/jbtrjq9mfawwzr8/Screen%20Shot%202019-02-08%20at%204.47.13%20PM.png?dl=0)
 * I’ve fixed the error by editing the plugin code. But the rules dropdown is empty.
 * Do you have any idea on this the exact cause of this issue? I’ve uninstalled 
   other plugins and also tried reinstalling the plugin. But that didn’t help. Can
   we reset the database when uninstalling the plugin?
 * Thanks & Regards,
    Chithra
    -  This topic was modified 7 years, 3 months ago by [chithract](https://wordpress.org/support/users/chithract/).

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11187721)
 * This issue should not happen. Looks like it is specific to your site.
 * The javascript error is because, wp socializer uses a javascript global variable
   called “wpsr” in admin pages which is not printed. That is the reason no location
   rules is displayed.
 * This global variable which contains info about location rules is printed by this
   function.
 * [https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/admin/admin.php#L262](https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/admin/admin.php#L262)
 * `public static function inline_scripts(){`
 * which is hooked to `admin_print_scripts`
 * `add_action( 'admin_print_scripts', array( __CLASS__, 'inline_scripts' ) );`
 * [https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/admin/admin.php#L25](https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/admin/admin.php#L25)
 * Either this hook is not executed or removed by some other plugin (or) theme.
 * Please disable all other plugins and keep WP Socializer alone, you will not find
   the issue. Try enabling it one by one and see which is causing the issue.
 * Simply,
    please open view-source in any of the wp socializer admin page and you
   should see the the below line
 * `var wpsr = {`
 * if this is not there then some problem on your side.
 * If you are not able to find the issue, please create a temporary admin account
   and share me the username and password in my contact page: [https://www.aakashweb.com/contact/](https://www.aakashweb.com/contact/)
 * Thanks,
    Aakash
 *  Thread Starter [chithract](https://wordpress.org/support/users/chithract/)
 * (@chithract)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11191144)
 * Hi Aakash,
 * Thank you for the detailed reply.
 * I’ve checked for var wpsr = { in the source and it shows there without any issues.
 * [https://www.dropbox.com/s/7hdlwewn24kc49v/Screen%20Shot%202019-02-11%20at%2011.09.13%20AM.png?dl=0](https://www.dropbox.com/s/7hdlwewn24kc49v/Screen%20Shot%202019-02-11%20at%2011.09.13%20AM.png?dl=0)
 * A script error showing in console – [https://www.dropbox.com/s/ztqj0ysjzuv9puj/script.png?dl=0](https://www.dropbox.com/s/ztqj0ysjzuv9puj/script.png?dl=0)
 * So, all functionalities related to js are not working – [https://www.dropbox.com/s/5yc52kyekr0xyd7/Screen%20Shot%202019-02-11%20at%2011.18.34%20AM.png?dl=0](https://www.dropbox.com/s/5yc52kyekr0xyd7/Screen%20Shot%202019-02-11%20at%2011.18.34%20AM.png?dl=0)
 * The issue exists only on live site not the staging site in the same server. I’ve
   imported data from staging site to live site. So, the social icons are showing
   in front-end, but we cannot change the settings in live site. I’ll send you the
   admin details if needed.
 * The same plugins are used in staging and live site. But we’re facing this issue
   only in the live site.
 * Thanks & Regards,
    Chithra
 *  [kghugo2000](https://wordpress.org/support/users/kghugo2000/)
 * (@kghugo2000)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11195097)
 * Hi,
 * I am facing the same issue as well. No changes can be made in the setting except
   those in the drop down menu.
 * My staging site: staging2.howtostudycantonese.com
 * Thank you for reading.
 *  Thread Starter [chithract](https://wordpress.org/support/users/chithract/)
 * (@chithract)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11195141)
 * Hi Aakash,
 * We’re using managed wordpress hosting. Will this be related to any caching or
   compression in that server? I have contacted the server team. They have cleared
   all caching in the server. But still the issue exists. Do you have any idea on
   this?
 * Thanks & Regards,
    Chithra
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11195166)
 * Hi Chithra,
 * As requested earlier, please create a temporary admin account and share me the
   username and password in my contact page: [https://www.aakashweb.com/contact/](https://www.aakashweb.com/contact/)
 * This will help me find the issue.
 * Thanks,
    Aakash
 *  Thread Starter [chithract](https://wordpress.org/support/users/chithract/)
 * (@chithract)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11195214)
 * Hi Aakash,
 * Thank you for your help.
 * I’ve sent the details. Please let me know if you need any other info from us.
 * Thanks & Regards,
    Chithra
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11196343)
 * Hi,
 * I see that the issue is specific to PHP version 7+ where after modifying the 
   array value, accessing it is empty for some reason.
 * [https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/core/location_rules.php#L314](https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/core/location_rules.php#L314)
   
   [https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/core/location_rules.php#L324](https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/core/location_rules.php#L324)
   [https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/core/location_rules.php#L332](https://plugins.trac.wordpress.org/browser/wp-socializer/trunk/core/location_rules.php#L332)
 * In your website I’ve made the change to use normal variable instead and it is
   working now.
 * I’ll make the fix official ASAP and release the next version by this week.
 * Thanks for reporting the issue 🙂
 * Thanks,
    Aakash
 *  Thread Starter [chithract](https://wordpress.org/support/users/chithract/)
 * (@chithract)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11197448)
 * Hi Aakash,
 * Thank you for your help.
 * I am happy to hear that you found the exact cause of the issue and solved it 
   in our installation. We will update the plugin when the new version available.
 * I appreciate your support.
 * Thanks & Regards,
    Chithra
    -  This reply was modified 7 years, 3 months ago by [chithract](https://wordpress.org/support/users/chithract/).
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11232953)
 * [@chithract](https://wordpress.org/support/users/chithract/),
 * I’ve updated the plugin to v4.1.3 with the fix for the reported issue.
    Please
   update to it and let me know.
 * Thanks,
    Aakash

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Some functionality issues with the plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-socializer/assets/icon.svg?rev=1616975)
 * [WP Socializer - Simple & Easy Social Media Share Icons](https://wordpress.org/plugins/wp-socializer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-socializer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-socializer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-socializer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-socializer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-socializer/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/some-functionality-issues-with-the-plugin/#post-11232953)
 * Status: resolved