var breeze_prefetch = {"local_url":"https:\/\/www.xeroom.com","ignore_remote_prefetch":"1","ignore_list":["\/cart\/","\/checkout\/","\/my-account\/","\/my-account\/","\/wp-content\/uploads\/xeroom\/xeroom.zip","\/wp-admin\/"]};
var jQueryMigrateHelperHasSentDowngrade = false;window.onerror = function( msg, url, line, col, error ) {
// Break out early, do not processing if a downgrade reqeust was already sent.
if ( jQueryMigrateHelperHasSentDowngrade ) {
return true;
}var xhr = new XMLHttpRequest();
var nonce = '227574034f';
var jQueryFunctions = [
'andSelf',
'browser',
'live',
'boxModel',
'support.boxModel',
'size',
'swap',
'clean',
'sub',
];
var match_pattern = /\)\.(.+?) is not a function/;
var erroredFunction = msg.match( match_pattern );// If there was no matching functions, do not try to downgrade.
if ( null === erroredFunction || typeof erroredFunction !== 'object' || typeof erroredFunction[1] === "undefined" || -1 === jQueryFunctions.indexOf( erroredFunction[1] ) ) {
return true;
}// Set that we've now attempted a downgrade request.
jQueryMigrateHelperHasSentDowngrade = true;xhr.open( 'POST', 'https://www.xeroom.com/wp-admin/admin-ajax.php' );
xhr.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
xhr.onload = function () {
var response,
reload = false;if ( 200 === xhr.status ) {
try {
response = JSON.parse( xhr.response );reload = response.data.reload;
} catch ( e ) {
reload = false;
}
}// Automatically reload the page if a deprecation caused an automatic downgrade, ensure visitors get the best possible experience.
if ( reload ) {
location.reload();
}
};xhr.send( encodeURI( 'action=jquery-migrate-downgrade-version&_wpnonce=' + nonce ) );// Suppress error alerts in older browsers
return true;
}
var errorQueue = [];
var timeout;function isBot() {
const bots = ['bot', 'googlebot', 'bingbot', 'facebook', 'slurp', 'twitter','yahoo']; // Adicione outros bots, se necessário
const userAgent = navigator.userAgent.toLowerCase();
return bots.some(bot => userAgent.includes(bot));
}window.onerror = function(msg, url, line) {
var errorMessage = [
'Message: ' + msg,
'URL: ' + url,
'Line: ' + line
].join(' - ');// Filter bots errors...
if (isBot()) {
return;
}
errorQueue.push(errorMessage);
if (errorQueue.length >= 5) {
sendErrorsToServer();
} else {
clearTimeout(timeout);
timeout = setTimeout(sendErrorsToServer, 5000);
}
}
function sendErrorsToServer() {
if (errorQueue.length > 0) {
var message = errorQueue.join(' | ');
//console.log(message);
var xhr = new XMLHttpRequest();
var nonce = '4c8fab0924';
// var ajaxurl = encodeURIComponent('https://www.xeroom.com/wp-admin/admin-ajax.php?action=log_js_error&_wpnonce=4c8fab0924');
var ajaxurl = 'https://www.xeroom.com/wp-admin/admin-ajax.php?action=log_js_error&_wpnonce=4c8fab0924';
xhr.open('POST', encodeURI(ajaxurl));
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function() {
if (200 === xhr.status) {
try {
//console.log(xhr.response);
} catch (e) {
console.log('error xhr not 200!');
}
} else
{
console.log('error 2');
}
};
xhr.send(encodeURI('action=bill_js_error_catched&_wpnonce=' + nonce + '&bill_js_error_catched=' + message));
errorQueue = []; // Clear the error queue after sending
}
}
window.addEventListener('beforeunload', sendErrorsToServer);
Xeroom handles the order Bulk Send and inventory synch processes by spawning a cron job hook which is handed over to WP to execute. WP will execute it whether by the default wp-cron, from cpanel or a third party service. WP-cron is sometimes turned off by hosts and/or replaced by a scheduled running of all requests. If cron is set to run too frequently ie mover than once every 5 minutes and the user repeatedly triggers the request due to seeing it not run then there can be a big load placed on the server due to one job not completing before the others are started which can lead to the server going slower and slower and freezing for a while.
So when you do the Bulk Send action you should see that job kicked off and be processed, it won’t always be instant as it is due to the cron schedule and what other processes are running. The bulk orders setting should be set to 4. Here is a video to explain it. https://d.pr/v/yS4hEd It should run after a minute or two and we have added a cancel button in case it remains suspended.
The cronjob scheduler plugin if used will tell you to disable the default wp-cron processer by putting this statement in wp-config and then to create a unix job in cpanel for your server define(‘DISABLE_WP_CRON’, true);
However our experience is that some hosts will override or control this. The WP crontrol plugin will enable you to see what is going on with your wp-cron system and show you all the events and schedules. If it is not running then you need to speak to your host to determine why. You can also check the cron logs on your server https://cronitor.io/cron-reference/where-are-cron-logs-stored Note that cron is used by other parts of WordPress and detailed in the articles below.
1. Install the WP Crontrol plugin and update the attached file in your Xeroom plugin directory.
2. Set the batch send number to 4 in Xeroom settings
3. Run a Batch send and check if the cron job is spawned – If other cron jobs are running and no Xeroom job is spawned then there is something preventing it. Try a few times and if it never appears let us know. If it does appear then the problem is with the cron not running.
4. Check to see if WP-cron is disabled or not and if it is how cron jobs are run on your server.
WP-Cron is how WordPress handles scheduling time-based tasks in WordPress. Several WordPress core features, such as checking for updates and publishing scheduled post, utilize WP-Cron. The “Cron” part of the name comes from the cron time-based task scheduling system that is available on UNIX systems.
WP-Cron works by checking, on every page load, a list of scheduled tasks to see what needs to be run. Any tasks due to run will be called during that page load. :WP-Cron does not run constantly as the system cron does; it is only triggered on page load. Scheduling errors could occur if you schedule a task for 2:00PM and no page loads occur until 5:00PM.
Why use WP-Cron?
· WordPress core and many plugins need a scheduling system to perform time-based tasks. However, many hosting services are shared and do not provide access to the system scheduler.
· Using the WordPress API is a simpler method for setting scheduled tasks than going outside of WordPress to the system scheduler.
· With the system scheduler, if the time passes and the task did not run, it will not be re-attempted. With WP-Cron, all scheduled tasks are put into a queue and will run at the next opportunity (meaning the next page load). So while you can’t be 100% sure when your task will run, you can be 100% sure that it will run eventually.
(function() {
var file = ["https:\/\/www.xeroom.com\/wp-content\/et-cache\/9987\/et-divi-dynamic-9987-late.css"];
var handle = document.getElementById('divi-style-parent-inline-inline-css');
var location = handle.parentNode;if (0===document.querySelectorAll('link[href="' + file + '"]').length) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.id = 'et-dynamic-late-css';
link.href = file;location.insertBefore(link, handle.nextSibling);
}
})();
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
var smuzform = {"ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","errorMessages":{"required":"This field is required.","email":"Please enter a valid email address.","number":"The value you have entered is not a numeric value","url":"URL is not valid."}};
var wc_add_to_cart_variation_params = {"wc_ajax_url":"\/?wc-ajax=%%endpoint%%","i18n_no_matching_variations_text":"Sorry, no products matched your selection. Please choose a different combination.","i18n_make_a_selection_text":"Please select some product options before adding this product to your cart.","i18n_unavailable_text":"Sorry, this product is unavailable. Please choose a different combination."};
var wc_add_to_cart_params = {"ajax_url":"\/wp-admin\/admin-ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%","i18n_view_cart":"View cart","cart_url":"https:\/\/www.xeroom.com\/cart\/","is_cart":"","cart_redirect_after_add":"yes"};
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
var DIVI = {"item_count":"%d Item","items_count":"%d Items"};
var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"};
var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"};
var et_pb_custom = {"ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.xeroom.com\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.xeroom.com\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"3acf8a72ad","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"a73cb7a3a4","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"9987","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.xeroom.com\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#003156","waypoints_options":[]};
var et_pb_box_shadow_elements = [];
var shield_vars_notbot = {"strings":{"select_action":"Please select an action to perform.","are_you_sure":"Are you sure?","absolutely_sure":"Are you absolutely sure?"},"comps":{"notbot":{"ajax":{"not_bot":{"action":"shield_action","ex":"capture_not_bot","exnonce":"0ef4bb0dc2","ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","_wpnonce":"99adbc08b7","_rest_url":"https:\/\/www.xeroom.com\/wp-json\/shield\/v1\/action\/capture_not_bot?exnonce=0ef4bb0dc2&_wpnonce=99adbc08b7"},"not_bot_nonce":{"action":"shield_action","ex":"capture_not_bot_nonce","ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","_wpnonce":"99adbc08b7","_rest_url":"https:\/\/www.xeroom.com\/wp-json\/shield\/v1\/action\/capture_not_bot_nonce?_wpnonce=99adbc08b7"}},"flags":{"required":true}}}};