The HTTP response test get a false http status (403)
-
Hi there!
I was using this plugin without any problem for several weeks. Also I have not changed any permission or authentication of files but today I receive this error when I try to run a new backup :
The HTTP response test get a false http status (403).How can I solve this issue?
-
I also get false http status (403), using BackWPup version 3.1.2
Would be helpful if error message said what URL/Query/file was prohibited.
Just updated all plugins and themes, still using WP3.9.2 (I want to Back Up First!)
Debug mode gives endless repetition of these errors, on the top of every page, and throughout BackWPup pages (three jobs defined, errors repeat on many pages 3 times).
Debug Toolbar plugin gives this:
WARNING: wp-admin/admin-header.php:9 - Cannot modify header information - headers already sent by (output started at /home/USERNAME/public_html/wp-content/plugins/backwpup/inc/class-job.php:440) require_once('wp-admin/admin.php'), require_once('wp-admin/admin-header.php'), header WARNING: wp-includes/option.php:747 - Cannot modify header information - headers already sent by (output started at /home/USERNAME/public_html/wp-content/plugins/backwpup/inc/class-job.php:440) require_once('wp-admin/admin.php'), require_once('wp-admin/admin-header.php'), wp_user_settings, setcookie WARNING: wp-includes/option.php:748 - Cannot modify header information - headers already sent by (output started at /home/USERNAME/public_html/wp-content/plugins/backwpup/inc/class-job.php:440) require_once('wp-admin/admin.php'), require_once('wp-admin/admin-header.php'), wp_user_settings, setcookie NOTICE: wp-content/plugins/backwpup/inc/class-job.php:440 - Undefined offset: 0 require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url NOTICE: wp-content/plugins/backwpup/inc/class-job.php:440 - Trying to get property of non-object require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url NOTICE: wp-includes/pluggable.php:693 - Trying to get property of non-object require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url, wp_generate_auth_cookie NOTICE: wp-includes/pluggable.php:695 - Trying to get property of non-object require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url, wp_generate_auth_cookie NOTICE: wp-includes/pluggable.php:696 - Trying to get property of non-object require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url, wp_generate_auth_cookie NOTICE: wp-includes/pluggable.php:698 - Trying to get property of non-object require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url, wp_generate_auth_cookie NOTICE: wp-content/plugins/backwpup/inc/class-job.php:441 - Undefined offset: 0 require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url NOTICE: wp-content/plugins/backwpup/inc/class-job.php:441 - Trying to get property of non-object require_once('wp-admin/admin.php'), do_action('backwpup_page_backwpupjobs'), call_user_func_array, BackWPup_Page_Jobs::page, WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_List_Table->display_rows, WP_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, BackWPup_Page_Jobs->column_jobname, BackWPup_Job::get_jobrun_url
Change
$wp_admin_user = get_users( array( 'role' => 'administrator', 'number' => 1 ) ); //get a user for cookie auth
to
$wp_admin_user = get_users( array( 'role' => 'backwpup_admin', 'number' => 1) ); //get a user for cookie auth
in class-job.php
in public static function get_jobrun_url( $starttype, $jobid = 0 )(or test for either? On my system, only one Administrator, but the role is set to backwpup_admin, there are None with ‘administrator’)
Eliminates the Debug messages, but still getting ‘The HTTP response test get a false http status (403)’
in class-page-jobs.php
about line 697
find this code:if ( is_wp_error( $raw_response ) ) $test_result .= sprintf( __( 'The HTTP response test get an error "%s"','backwpup' ), $raw_response->get_error_message() ); elseif ( 200 != wp_remote_retrieve_response_code( $raw_response ) && 204 != wp_remote_retrieve_response_code( $raw_response ) ) $test_result .= sprintf( __( 'The HTTP response test get a false http status (%s)','backwpup' ), wp_remote_retrieve_response_code( $raw_response ) );
after those lines, $raw_response contains:
[body] => Forbidden You don't have permission to access /wp-cron.php on this server.
Looks like the path is not being set properly? Should the path be /home/USERNAME/public_html/ to call /home/USERNAME/public_html/wp-cron.php ?
It is not as I guessed yesterday a problem with the path.
In the WordPress folder, /wp-cron.php runs as HTTP/1.0
Part of my .htaccess security blocked calls that aren’t HTTP/1.1. Making an exception for wp-cron.php the backup works as expected.I changed these lines in .htaccess:
# <IfModule mod_rewrite.c> # RewriteCond %{THE_REQUEST} ^POST(.*)HTTP/(0\.9|1\.0)$ [NC] # RewriteRule .* - [F,L] # </IfModule>
to
SetEnvIf Request_Protocol (.*)HTTP/(0\.9|1\.0)$ badRequestMethod=RequestProtocol$0 # But WordPress wp-cron.php uses HTTP/1.0 SetEnvIf Request_URI ^/wp-cron.php$ !badRequestMethod RewriteCond %{ENV:badRequestMethod} >"" RewriteCond %{REQUEST_URI} !/shared/403.php$ [NC] RewriteRule (.*) /shared/403\.php [L]
Hi George!
It was a server problem around files access and solved now.
Thanks!
Hi otoraby,
how did you solve it?
as i have the same issue.thanks a lot
michaelHi mf76130,
My server administrator had been noticed CPU overloading and then had been restricted access to xmlrpc.php even for me! After removing this restriction this issue is solved.
Hope this helps
Hi otoraby,
Sounds like a good tipp, i will check.Thanks a lot
- The topic ‘The HTTP response test get a false http status (403)’ is closed to new replies.