Hi dhock194,
We’re sorry to hear that you’re having trouble.
To track this down, we need to see what is causing the error. Do you have access to the web server (Apache?) logs on the Source? The error logs should be reporting some information that will be useful finding out what is causing this. If not, adding WordPress error logging on the Source could help. You can add or update the following in your wp-config.php file:
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
Then, re-enter the configuration settings and save them. This should add some information to the log file located at wp-content/debug.log. Please send us the debug.log and the wp-content/plugins/wpsitesynccontent/~log.txt file via our support form at https://serverpress.com/contact/ and we will investigate. Also, please include your .org forum name, “dhock194”, so we know what it’s referring to.
Thanks.
Thanks! Wanted to see if this was a known issue before going log diving, but no worries.
Since this is an HTTP error, I enabled apache debugging first, and isolated the error.log entries generated while saving the config:
[Fri Oct 28 22:44:07.617879 2016] [authz_core:debug] [pid 6010] mod_authz_core.c(802): [client 204.153.194.234:35329] AH01626: authorization result of Require all granted: granted, referer: http://XXX.YYY.com/wp-admin/options-general.php?page=sync
[Fri Oct 28 22:44:07.617911 2016] [authz_core:debug] [pid 6010] mod_authz_core.c(802): [client 204.153.194.234:35329] AH01626: authorization result of <RequireAny>: granted, referer: http://XXX.YYY.com/wp-admin/options-general.php?page=sync
[Fri Oct 28 22:44:07.816038 2016] [:error] [pid 6010] [client 204.153.194.234:35329] PHP Fatal error: Call to undefined function mcrypt_get_iv_size() in /var/www/wordpress/wp-content/plugins/wpsitesynccontent/classes/auth.php on line 129, referer: http://XXX.YYY.com/wp-admin/options-general.php?page=sync
Okay, the “Call to undefined function mcrypt_get_iv_size()” is the clue. WPSiteSync uses the mcrypt library to encrypt the password when authenticating with the Target site. And it looks like mycrypt is not configured with your PHP installation. You can install this with the following command:
sudo apt-get install php5-mcrypt
and then restarting your Apache server. If you need more help this might be useful: http://php.net/manual/en/mcrypt.installation.php
Once mcrypt is installed, it should work fine. Please let me know if that works or if you still need help.
Thanks!
Just to clarify — is this library needed on both source and target (assuming one way sync) or just on source?
I added the library on both sides, restarted apache both sides (service apache2 restart), but still getting the error
Call to undefined function mcrypt_get_iv_size()
Looking at the docs, mcrypt also needed config:
php5enmod mcrypt
Seems to be working now. Thanks!
Great! Glad to hear you got it working. Please let us know if you need anything else.
If this issue is resolved, would you please mark it as “resolved?” We’d appreciate it.
Thanks and have a great day.