I am trying to use user sync; however, I seem to be running

Hello,

I am trying to use user sync; however, I seem to be running into difficulties. I get mod_fcgid: stderr: PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vhosts/NewsIntranet.partners.org/httpdocs/wp-content/plugins/user-sync/user-sync.php on line 172, referer: http://newsintranet.partners.org/wp-admin/admin.php?page=user-sync error from my master site.

Comment 1

The error indicates that the "fclose()" function was given a boolean (true/false) value as a first parameter instead of a "resource" (file handle). This may happen if "fopen()" function returned "false" instead of resource handle and this would mean that it wasn't able to open given file (which I presume in this case is an URL).

I'd start with checking your PHP settings. To do this, please create a "phpinfo.php" file in a root folder of your site and put these lines inside:

<?php
phpinfo();
?>

Then access this file directly ("yourdomain.com/phpinfo.php&quot:wink: and look for

allow_url_fopen

directive that should be set to "On" (see screenshot below).

Since you're using WP User Sync plugin so there may be more than one server involved, please do this for each of the servers where your synced sites are hosted.

In case this option is set to OFF please check if you're able to change it to ON via cPanel and do this if possible. If you're not able to change it, please ask your host if they could do this for you.

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: