• Resolved dhock194

    (@dhock194)


    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

    (@serverpress)

    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.

    Thread Starter dhock194

    (@dhock194)

    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: https://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: https://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: https://XXX.YYY.com/wp-admin/options-general.php?page=sync

    Plugin Author ServerPress

    (@serverpress)

    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: https://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

    (@dhock194)

    Thanks!

    Just to clarify — is this library needed on both source and target (assuming one way sync) or just on source?

    Thread Starter dhock194

    (@dhock194)

    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

    (@dhock194)

    Looking at the docs, mcrypt also needed config:

    php5enmod mcrypt

    Seems to be working now. Thanks!

    Plugin Author ServerPress

    (@serverpress)

    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.