Title: 500 Error when saving the config
Last modified: October 28, 2016

---

# 500 Error when saving the config

 *  Resolved [dhock194](https://wordpress.org/support/users/dhock194/)
 * (@dhock194)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/)
 * All:
 * I have installed WPSiteSync on the source and target (test) instance. Tried configuring
   the source side url/login/password, and when saving the config, I get a general
   HTTP 500 error from the source server “XX.YY.com page isn’t responding” XX.YY.
   com is currently unable to handle this response.”
 * Any ideas what is occuring? I have tried disabling different plugins to see if
   there is an interaction, and checked connectivity between the source and target(
   no issues).

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

 *  Plugin Author [ServerPress](https://wordpress.org/support/users/serverpress/)
 * (@serverpress)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369659)
 * 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/](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.
 *  Thread Starter [dhock194](https://wordpress.org/support/users/dhock194/)
 * (@dhock194)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369704)
 * 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](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](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](http://XXX.YYY.com/wp-admin/options-general.php?page=sync)
 *  Plugin Author [ServerPress](https://wordpress.org/support/users/serverpress/)
 * (@serverpress)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369725)
 * 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](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.
 *  Thread Starter [dhock194](https://wordpress.org/support/users/dhock194/)
 * (@dhock194)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369751)
 * Thanks!
 * Just to clarify — is this library needed on both source and target (assuming 
   one way sync) or just on source?
 *  Thread Starter [dhock194](https://wordpress.org/support/users/dhock194/)
 * (@dhock194)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369761)
 * 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()`
 *  Thread Starter [dhock194](https://wordpress.org/support/users/dhock194/)
 * (@dhock194)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369766)
 * Looking at the docs, mcrypt also needed config:
 * `php5enmod mcrypt`
 * Seems to be working now. Thanks!
 *  Plugin Author [ServerPress](https://wordpress.org/support/users/serverpress/)
 * (@serverpress)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369819)
 * 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.

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

The topic ‘500 Error when saving the config’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsitesynccontent_ffffff.svg)
 * [WPSiteSync for Content](https://wordpress.org/plugins/wpsitesynccontent/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsitesynccontent/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsitesynccontent/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsitesynccontent/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsitesynccontent/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsitesynccontent/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [ServerPress](https://wordpress.org/support/users/serverpress/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/500-error-when-saving-the-config/#post-8369819)
 * Status: resolved