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.ww.wp.xz.cn/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.ww.wp.xz.cn/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/
Thanks,
Aakash
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
A script error showing in console – 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
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
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.
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
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/
This will help me find the issue.
Thanks,
Aakash
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
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.ww.wp.xz.cn/browser/wp-socializer/trunk/core/location_rules.php#L314
https://plugins.trac.ww.wp.xz.cn/browser/wp-socializer/trunk/core/location_rules.php#L324
https://plugins.trac.ww.wp.xz.cn/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
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.
@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