jQuery(document).ready (function() { //add a new style 'gestipinfo' jQuery.notify.addStyle('gestipinfo', { html: "
" + "
" + "
" + "
" }); jQuery(document).ajaxSuccess(function( event, xhr, settings ) { if (typeof(settings.data) !== 'undefined') { // If the ajax is NOT related to the present plugin if (settings.data.indexOf("action=gestip_ajax_error_get_json")==-1) { // If the ajax is related to the other gestip plugins if (settings.data.indexOf("action=gestip_ajax")!=-1) { gestip_javascript_error_check() ; } } } }); gestip_javascript_error_check_loop() ; }) ; function gestip_javascript_error_check_loop() { setTimeout( function() { gestip_javascript_error_check_loop() ; } , 3000) ; gestip_javascript_error_check() ; } function gestip_javascript_error_check() { // On lance une recherche sur les erreurs var arguments = { action: 'gestip_ajax_error_get_json' } var ajaxurl2 = "https://dev.sedlex.fr/wp-admin/admin-ajax.php" ; jQuery.post(ajaxurl2, arguments, function(response) { // Test if array if (response.constructor === Array) { for (var r of Object.values(response)) { jQuery.notify( { title: r.description, localisation: r.localisation }, { style: 'gestipinfo', globalPosition: 'bottom right', autoHide: true, autoHideDelay: 9000, clickToHide: false }); } } else { console.log ("This is not an array") ; console.log(response) ; } }) ; }
Fatal error: Uncaught Error: Call to undefined method gestip_error::add_inline_js() in /home/gruson/www/dev/wp-content/plugins/gestip/gestip-error/gestip-error.php:207 Stack trace: #0 /home/gruson/www/dev/wp-includes/class-wp-hook.php(298): gestip_error->_public_js_load('') #1 /home/gruson/www/dev/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/gruson/www/dev/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/gruson/www/dev/wp-includes/script-loader.php(1300): do_action('wp_enqueue_scri...') #4 /home/gruson/www/dev/wp-includes/class-wp-hook.php(298): wp_enqueue_scripts('') #5 /home/gruson/www/dev/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /home/gruson/www/dev/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7 /home/gruson/www/dev/wp-includes/general-template.php(2589): do_action('wp_head') #8 /home/gruson/www/dev/wp-content/themes/responsivo/header.php(34): wp_head() #9 /home/gruson/www/dev/wp-includes/template.php(688): require_once('/ho in /home/gruson/www/dev/wp-content/plugins/gestip/gestip-error/gestip-error.php on line 207

Notice: Unknown: Can't open mailbox : no such mailbox (errflg=2) in Unknown on line 0