• Resolved joaomluz

    (@joaomluz)


    Please some help here. Thanks.

    Not expected HTTP response:
    Status-Code: 200
    X-powered-by: PHP/5.6.19
    Cache-control: public, max-age=3
    Expires: Mon, 24 Apr 2017 18:21:41 GMT
    Content-type: text/html; charset=UTF-8
    Content-length: 0
    Date: Mon, 24 Apr 2017 18:21:38 GMT
    Accept-ranges: bytes
    Server: LiteSpeed

    Server Apache
    Operating System Linux
    PHP SAPI cgi-fcgi
    Current PHP user uniahgor
    Maximum execution time 300 seconds
    Alternative WP Cron Off
    Disabled WP Cron Off
    CHMOD Dir 0755
    Server Time 18:37
    Blog Time 15:37
    Blog Timezone America/Sao_Paulo
    Blog Time offset -3 hours
    Blog language pt-BR
    MySQL Client encoding utf8
    Blog charset UTF-8
    PHP Memory limit 640M
    WP memory limit 40M
    WP maximum memory limit 640M
    Memory in use 37,50 MB
    Loaded PHP Extensions: Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, soap, sockets, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, zip, zlib

    • This topic was modified 7 years, 7 months ago by joaomluz.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @joaomluz,

    Can you temporarily enable WP_DEBUG and see if Server self connect changes then? Let us know the value you get.

    Thread Starter joaomluz

    (@joaomluz)

    I have dumped some values here (bakupwpup/inc/class-page-settigs.php):

    
    $raw_response = BackWPup_Job::get_jobrun_url( 'test' );
    var_dump($raw_response);
    $response_code = wp_remote_retrieve_response_code( $raw_response );
    $response_body = wp_remote_retrieve_body( $raw_response );
    

    Value of $raw_response:

    array(6) { ["headers"]=> object(Requests_Utility_CaseInsensitiveDictionary)#20885 (1) { ["data":protected]=> array(8) { ["x-powered-by"]=> string(10) "PHP/5.6.19" ["cache-control"]=> string(17) "public, max-age=3" ["expires"]=> string(29) "Mon, 24 Apr 2017 19:14:14 GMT" ["content-type"]=> string(24) "text/html; charset=UTF-8" ["content-length"]=> string(1) "0" ["date"]=> string(29) "Mon, 24 Apr 2017 19:14:11 GMT" ["accept-ranges"]=> string(5) "bytes" ["server"]=> string(9) "LiteSpeed" } } ["body"]=> bool(false) ["response"]=> array(2) { ["code"]=> int(200) ["message"]=> string(2) "OK" } ["cookies"]=> array(0) { } ["filename"]=> NULL ["http_response"]=> object(WP_HTTP_Requests_Response)#20889 (5) { ["response":protected]=> object(Requests_Response)#20888 (10) { ["body"]=> bool(false) ["raw"]=> string(275) "HTTP/1.1 200 OK X-Powered-By: PHP/5.6.19 Cache-Control: public, max-age=3 Expires: Mon, 24 Apr 2017 19:14:14 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 0 Date: Mon, 24 Apr 2017 19:14:11 GMT Accept-Ranges: bytes Server: LiteSpeed Connection: close " ["headers"]=> object(Requests_Response_Headers)#20887 (1) { ["data":protected]=> array(8) { ["x-powered-by"]=> array(1) { [0]=> string(10) "PHP/5.6.19" } ["cache-control"]=> array(1) { [0]=> string(17) "public, max-age=3" } ["expires"]=> array(1) { [0]=> string(29) "Mon, 24 Apr 2017 19:14:14 GMT" } ["content-type"]=> array(1) { [0]=> string(24) "text/html; charset=UTF-8" } ["content-length"]=> array(1) { [0]=> string(1) "0" } ["date"]=> array(1) { [0]=> string(29) "Mon, 24 Apr 2017 19:14:11 GMT" } ["accept-ranges"]=> array(1) { [0]=> string(5) "bytes" } ["server"]=> array(1) { [0]=> string(9) "LiteSpeed" } } } ["status_code"]=> int(200) ["protocol_version"]=> float(1.1) ["success"]=> bool(true) ["redirects"]=> int(0) ["url"]=> string(101) "https://**MYSITE**/wp-cron.php?doing_wp_cron=1493061250.1566278934478759765625&backwpup_run=test" ["history"]=> array(0) { } ["cookies"]=> object(Requests_Cookie_Jar)#20890 (1) { ["cookies":protected]=> array(0) { } } } ["filename":protected]=> NULL ["data"]=> NULL ["headers"]=> NULL ["status"]=> NULL } }

    [“body”] came false (boolean) it should came “BackWPup test request” right?

    • This reply was modified 7 years, 7 months ago by joaomluz.

    Thank you. Did you enable WP_DEBUG though? I want to see if there are any PHP errors that would cause the response body to be empty.

    @joaomluz, seems you deleted your last reply. ?? I appreciate the debug information.

    Thread Starter joaomluz

    (@joaomluz)

    Sorry about that. I dumped some variables (in plugins/backwpup/inc/class-page-settings.php)

    $raw_response = BackWPup_Job::get_jobrun_url( 'test' );
    var_dump($raw_response);
    $response_code = wp_remote_retrieve_response_code( $raw_response );
    $response_body = wp_remote_retrieve_body( $raw_response );

    $raw_response:

    array(6) { ["headers"]=> object(Requests_Utility_CaseInsensitiveDictionary)#20885 (1) { ["data":protected]=> array(8) { ["x-powered-by"]=> string(10) "PHP/5.6.19" ["cache-control"]=> string(17) "public, max-age=3" ["expires"]=> string(29) "Mon, 24 Apr 2017 19:14:14 GMT" ["content-type"]=> string(24) "text/html; charset=UTF-8" ["content-length"]=> string(1) "0" ["date"]=> string(29) "Mon, 24 Apr 2017 19:14:11 GMT" ["accept-ranges"]=> string(5) "bytes" ["server"]=> string(9) "LiteSpeed" } } ["body"]=> bool(false) ["response"]=> array(2) { ["code"]=> int(200) ["message"]=> string(2) "OK" } ["cookies"]=> array(0) { } ["filename"]=> NULL ["http_response"]=> object(WP_HTTP_Requests_Response)#20889 (5) { ["response":protected]=> object(Requests_Response)#20888 (10) { ["body"]=> bool(false) ["raw"]=> string(275) "HTTP/1.1 200 OK X-Powered-By: PHP/5.6.19 Cache-Control: public, max-age=3 Expires: Mon, 24 Apr 2017 19:14:14 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 0 Date: Mon, 24 Apr 2017 19:14:11 GMT Accept-Ranges: bytes Server: LiteSpeed Connection: close " ["headers"]=> object(Requests_Response_Headers)#20887 (1) { ["data":protected]=> array(8) { ["x-powered-by"]=> array(1) { [0]=> string(10) "PHP/5.6.19" } ["cache-control"]=> array(1) { [0]=> string(17) "public, max-age=3" } ["expires"]=> array(1) { [0]=> string(29) "Mon, 24 Apr 2017 19:14:14 GMT" } ["content-type"]=> array(1) { [0]=> string(24) "text/html; charset=UTF-8" } ["content-length"]=> array(1) { [0]=> string(1) "0" } ["date"]=> array(1) { [0]=> string(29) "Mon, 24 Apr 2017 19:14:11 GMT" } ["accept-ranges"]=> array(1) { [0]=> string(5) "bytes" } ["server"]=> array(1) { [0]=> string(9) "LiteSpeed" } } } ["status_code"]=> int(200) ["protocol_version"]=> float(1.1) ["success"]=> bool(true) ["redirects"]=> int(0) ["url"]=> string(101) "**my_site**/wp-cron.php?doing_wp_cron=1493061250.1566278934478759765625&backwpup_run=test" ["history"]=> array(0) { } ["cookies"]=> object(Requests_Cookie_Jar)#20890 (1) { ["cookies":protected]=> array(0) { } } } ["filename":protected]=> NULL ["data"]=> NULL ["headers"]=> NULL ["status"]=> NULL } }

    [“body”]=> bool(false) thats seems wrong..

    Thread Starter joaomluz

    (@joaomluz)

    There is no ERROR in my logs WP_DEBUG only warnings and strict standars not related..

    
    
    [24-Apr-2017 18:58:06 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method ACFCustom::create_empresa_post_type() should not be called statically in ******/wp-includes/class-wp-hook.php on line 298
    
    [24-Apr-2017 18:58:07 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'BBPressCustom' does not have a method 'mb_profile_menu_tabs' in ******/wp-includes/class-wp-hook.php on line 298
    
    [24-Apr-2017 18:58:07 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method UniUserRoles::add_new_roles() should not be called statically in ******/wp-includes/class-wp-hook.php on line 298
    
    [24-Apr-2017 18:58:07 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method bphelp_remove_profile_links::remove_xprofile_links() should not be called statically in ******/wp-includes/class-wp-hook.php on line 298
    [24-Apr-2017 18:58:07 UTC] PHP Warning:  Illegal string offset 'enabled_post_types' in ******/wp-content/plugins/frontend-uploader/frontend-uploader.php on line 706
    
    [24-Apr-2017 18:58:07 UTC] PHP Notice:  Uninitialized string offset: 0 in ******/wp-content/plugins/frontend-uploader/frontend-uploader.php on line 706
    
    [24-Apr-2017 18:58:07 UTC] PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method UniUserRoles::remove_itens_toolbars_instructor_role() should not be called statically in ******/wp-includes/class-wp-hook.php on line 298
    • This reply was modified 7 years, 7 months ago by joaomluz.
    Thread Starter joaomluz

    (@joaomluz)

    In my DEVELOPMENT environment is working perfect. This error occurs in my PRODUCTION environment. The files are the same (im using GIT). Maybe some PHP configuration?

    Thread Starter joaomluz

    (@joaomluz)

    The url of the dump

    **my_site**/wp-cron.php?doing_wp_cron=1493061250.1566278934478759765625&backwpup_run=test

    Returns a page with a body “BackWPup test request”.

    Thread Starter joaomluz

    (@joaomluz)

    – PROBLEM SOLVED – REMOVED INFOS/LOGS –

    • This reply was modified 7 years, 7 months ago by joaomluz.
    • This reply was modified 7 years, 7 months ago by joaomluz.
    • This reply was modified 7 years, 7 months ago by joaomluz.
    Thread Starter joaomluz

    (@joaomluz)

    Problem solved. Its not related to plugin itself. It was a problem with configuration in my server.

    • This reply was modified 7 years, 7 months ago by joaomluz.

    Thanks @joaomluz. I’m glad it was resolved. If you think it’s applicable, would you mind mentioning any more specifics of the solution? There have been a few threads here and there with similar issues and it might help with debugging.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Job “BackupSite” has started, but not responded for 10 seconds.’ is closed to new replies.