WordPress.org

Ready to get started?Download WordPress

Forums

Database Sync
Bug: Something may be wrong (2 posts)

  1. wrongware
    Member
    Posted 1 year ago #

    hello,

    thank you for a great plugin!

    <strike>I found a small bug. dbs_post() function returns the HTTP code (int), for example 200. But in the dbs_post_actions() to test whether the returns string 'OK'. thus the push throws error 'Something may be wrong'.</strike>

    patch:
    141: } elseif ($result == 'OK') { => } elseif ($result == 'OK' || $result == 200) {

    and maybe it would be better to turn on compression curl_setopt($ch, CURLOPT_ENCODING, "gzip");

    http://wordpress.org/plugins/database-sync/

  2. wrongware
    Member
    Posted 1 year ago #

    sorry, I did not notice that the code does not return, but the result of curl_exec.

    I curl_exec() returns the string "Cheatin 'uh?". how fix that?

    WordPress 3.5.2

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.