diff --git a/edwiser-bridge/admin/assets/css/eb-admin.css b/edwiser-bridge/admin/assets/css/eb-admin.css index b8bda8f..ba4d0c1 100644 --- a/edwiser-bridge/admin/assets/css/eb-admin.css +++ b/edwiser-bridge/admin/assets/css/eb-admin.css @@ -98,10 +98,6 @@ text-decoration: underline; } -.run-diagnostics-start { - margin-top: 40px; -} - .run-diagnostics-start li { margin-bottom: 15px; } diff --git a/edwiser-bridge/admin/assets/js/eb-admin.js b/edwiser-bridge/admin/assets/js/eb-admin.js index 5f4488e..de8eaeb 100644 --- a/edwiser-bridge/admin/assets/js/eb-admin.js +++ b/edwiser-bridge/admin/assets/js/eb-admin.js @@ -886,7 +886,7 @@ }, success: function (response) { if ( isValidJsonString( response ) ) { - jQuery('.eb_json_valid_fix + .autofix_custom_message').text(eb_admin_js_object.turn_off_debug_log); + jQuery('.eb_json_valid_fix + .autofix_custom_message').html(eb_admin_js_object.turn_off_debug_log); jQuery('.eb_json_valid_fix + .autofix_custom_message').slideDown(); return; } diff --git a/edwiser-bridge/admin/assets/js/eb-setup-wizard.js b/edwiser-bridge/admin/assets/js/eb-setup-wizard.js index 04b7490..70854b6 100644 --- a/edwiser-bridge/admin/assets/js/eb-setup-wizard.js +++ b/edwiser-bridge/admin/assets/js/eb-setup-wizard.js @@ -600,7 +600,7 @@ */ $(document).on('click', '.eb_setup_test_connection_btn', function (event) { $("#eb-lading-parent").show(); - + $('.eb_setup_diagnostics_btn').show(); //get selected options var url = $('#eb_setup_test_conn_mdl_url').val(); var token = $('#eb_setup_test_conn_token').val(); @@ -761,7 +761,7 @@ }, success: function (response) { if ( isValidJsonString( response ) ) { - jQuery('.eb_json_valid_fix + .autofix_custom_message').text(eb_setup_wizard.turn_off_debug_log); + jQuery('.eb_json_valid_fix + .autofix_custom_message').html(eb_setup_wizard.turn_off_debug_log); jQuery('.eb_json_valid_fix + .autofix_custom_message').slideDown(); return; } diff --git a/edwiser-bridge/admin/class-eb-admin-settings.php b/edwiser-bridge/admin/class-eb-admin-settings.php index 2bff294..1d525d2 100644 --- a/edwiser-bridge/admin/class-eb-admin-settings.php +++ b/edwiser-bridge/admin/class-eb-admin-settings.php @@ -412,11 +412,9 @@ class="" if ( $show ) { ?> - - - - - + + + esc_html__( 'Is the moodle site webservice accessible?', 'edwiser-bridge' ), 'contact_support' => esc_html__( 'Invalid response from server. Please contact plugin support', 'edwiser-bridge' ), 'contact_hosting' => esc_html__( 'The plugin is receiving an invalid response code from Moodle website or is unable to connect. Please contact your hosting provider.', 'edwiser-bridge' ), - 'turn_off_debug_log' => esc_html__( 'Please turn off debug display(WP_DEBUG & WP_DEBUG_DISPLAY) in wp-config.php and disable debug mode on Moodle website as well to fix this issue.', 'edwiser-bridge' ), + 'turn_off_debug_log' => sprintf( esc_html__( 'Please turn off debug display(WP_DEBUG & WP_DEBUG_DISPLAY) in wp-config.php and disable debug mode on Moodle website as well to fix this issue. Click %s here %s to learn more.', 'edwiser-bridge' ), '', '' ), 'token_mismatch' => esc_html__( 'Token added does not match the token configured on the moodle site.', 'edwiser-bridge' ), - 'not_authorized' => esc_html__( 'The user(s) used to create token on Moodle is(are) not site administrator(s) or manager(s) and therefore has limited access. This might lead to some issues with data synchronization.', 'edwiser-bridge' ), + 'not_authorized' => esc_html__( 'The user(s) associated with the token creation in Moodle are either not included in the web service\'s authorized users list or lack the required site administrator or manager roles. Consequently, their access is limited, which may result in issues with data synchronization.', 'edwiser-bridge' ), 'please_refresh' => esc_html__( 'Please refresh the page and check again. If the issue is still not resolved please contact support.', 'edwiser-bridge' ), 'wp_version_issue' => esc_html__( 'Your WordPress version is not supported. Please upgrade to the latest version.', 'edwiser-bridge' ), 'rest_disable_issue' => esc_html__( 'The REST API is disabled by either a Security plugin or some other plugin using hooks. It might also have been disabled in your server configuration. Please disable any security plugins and search for conflicts. If the issue doesnt get resolved contact the hosting provider to confirm that server configuration is not causing any issues.', 'edwiser-bridge' ), diff --git a/edwiser-bridge/admin/settings/class-eb-settings-connection.php b/edwiser-bridge/admin/settings/class-eb-settings-connection.php index bbc6c94..117f494 100644 --- a/edwiser-bridge/admin/settings/class-eb-settings-connection.php +++ b/edwiser-bridge/admin/settings/class-eb-settings-connection.php @@ -223,11 +223,19 @@ public function get_settings( $current_section = '' ) { 'class' => 'button secondary', 'parent_row_class' => 'inline' ), + array( + 'html' => '
', + 'type' => 'cust_html', + ), + array( + 'html' => '
' . esc_html__( 'Are you are still facing issues related to connection?', 'edwiser-bridge' ) . '
', + 'type' => 'cust_html', + ), array( 'title' => '', 'desc' => '', 'id' => 'eb_diagnose_issues_button', - 'default' => __( 'Run Diagnostics', 'edwiser-bridge' ), + 'default' => __( 'Troubleshoot', 'edwiser-bridge' ), 'type' => 'button', 'desc_tip' => false, 'class' => 'button secondary', @@ -248,10 +256,6 @@ public function get_settings( $current_section = '' ) { 'show_condition' => 'no_token', 'parent_row_class' => 'inline' ), - array( - 'html' => '
', - 'type' => 'cust_html', - ), array( 'html' => ' ', 'type' => 'cust_html', diff --git a/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-functions.php b/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-functions.php index d4a57fc..51542cd 100644 --- a/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-functions.php +++ b/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-functions.php @@ -921,8 +921,8 @@ public function enqueue_scripts() { 'contact_support' => esc_html__( 'Invalid response from server. Please contact plugin support', 'edwiser-bridge' ), 'contact_hosting' => esc_html__( 'The plugin is receiving an invalid response code from Moodle website or is unable to connect. Please contact your hosting provider.', 'edwiser-bridge' ), 'token_mismatch' => esc_html__( 'Token added does not match the token configured on the moodle site.', 'edwiser-bridge' ), - 'not_authorized' => esc_html__( 'The user(s) used to create token on Moodle is(are) not site administrator(s) or manager(s) and therefore has limited access. This might lead to some issues with data synchronization.', 'edwiser-bridge' ), - 'turn_off_debug_log' => esc_html__( 'Please turn off debug display(WP_DEBUG & WP_DEBUG_DISPLAY) in wp-config.php and disable debug mode on Moodle website as well to fix this issue.', 'edwiser-bridge' ), + 'not_authorized' => esc_html__( 'The user(s) associated with the token creation in Moodle are either not included in the web service\'s authorized users list or lack the required site administrator or manager roles. Consequently, their access is limited, which may result in issues with data synchronization.', 'edwiser-bridge' ), + 'turn_off_debug_log' => sprintf( esc_html__( 'Please turn off debug display(WP_DEBUG & WP_DEBUG_DISPLAY) in wp-config.php and disable debug mode on Moodle website as well to fix this issue. Click %s here %s to learn more.', 'edwiser-bridge' ), '', '' ), 'please_refresh' => esc_html__( 'Please refresh the page and check again. If the issue is still not resolved please contact support.', 'edwiser-bridge' ), 'wp_version_issue' => esc_html__( 'Your WordPress version is not supported. Please upgrade to the latest version.', 'edwiser-bridge' ), 'rest_disable_issue' => esc_html__( 'The REST API is disabled by either a Security plugin or some other plugin using hooks. It might also have been disabled in your server configuration. Please disable any security plugins and search for conflicts. If the issue doesnt get resolved contact the hosting provider to confirm that server configuration is not causing any issues.', 'edwiser-bridge' ), diff --git a/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-templates.php b/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-templates.php index 2128a24..8014ee8 100644 --- a/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-templates.php +++ b/edwiser-bridge/admin/setup-wizard/class-eb-setup-wizard-templates.php @@ -562,11 +562,12 @@ public function eb_setup_test_connection( $ajax = '1' ) {
+
-
+
@@ -575,7 +576,6 @@ public function eb_setup_test_connection( $ajax = '1' ) { -
diff --git a/edwiser-bridge/includes/api/class-eb-connection-helper.php b/edwiser-bridge/includes/api/class-eb-connection-helper.php index 468d9ee..8103874 100644 --- a/edwiser-bridge/includes/api/class-eb-connection-helper.php +++ b/edwiser-bridge/includes/api/class-eb-connection-helper.php @@ -436,7 +436,7 @@ public function create_response_message( $url, $message ) {
' . $message . '
-
' . sprintf( esc_html__( "Click %s Run Diagnostics %s button to get more details.", "edwiser-bridge" ), '', '' ) . '
+
' . sprintf( esc_html__( "Click %s Troubleshoot %s button to get more details.", "edwiser-bridge" ), '', '' ) . '