модуль WooMS XT (Extra) Перестает работать оплата на сайте

Добрый день! Подключаем модуль WooMS XT (Extra) Перестает работать оплата на сайте в логах вижу это:2020-10-28T21:24:00+00:00 CRITICAL Uncaught Error: Call to undefined function wc_get_cart_item_data_hash() in /home/i/ishock/ishock.me/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php:114 Stack trace: #0 /home/i/ishock/ishock.me/public_html/wp-includes/class-wp-hook.php(286): WC_Cart_Session->get_cart_from_session(\’\’) #1 /home/i/ishock/ishock.me/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/i/ishock/ishock.me/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/i/ishock/ishock.me/public_html/wp-settings.php(488): do_action(\’wp_loaded\’) #4 /home/i/ishock/ishock.me/public_html/wp-config.php(89): require_once(\’/home/i/ishock/…\’) #5 /home/i/ishock/ishock.me/public_html/wp-load.php(37): require_once(\’/home/i/ishock/…\’) #6 /home/i/ishock/ishock.me/public_html/wp-admin/admin.php(31): require_once(\’/home/i/ishock/…\’) #7 /home/i/ishock/ishock.me/public_html/wp-admin/user-edit.php(10): require_once(\’/home/i/ishock/…\’) #8 /home/i/ishock/ishock.me/pu в /home/i/ishock/ishock.me/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php на строке 114И вот такую ошибку еще нашел хелп плз 2020-11-28T07: 38: 41+00:00 критическая ошибка Uncaught: вызов неопределенной функции WooMS\ \ as_enqueue_async_action() в /home / i / ishock/ishock. me / public_html/wp-content / plugins/wooms-extra / inc/OrderSender. php:385 Трассировка стека: #0 /home/i/ishock/ishock.me/public_html/wp-content/plugins/wooms-extra/inc/OrderSender.php(370): WooMS\ \ OrderSender:: add_task_order_update(297) #1 /home/i/ishock/ishock.me/public_html/wp-includes/class-wp-hook.php(286): WooMS\ \ OrderSender:: batch_hadler() #2 /home/i/ishock/ishock.me/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters (\’\ ‘ , массив) #3 /home/i/ishock/ishock.me/public_html/wp-includes/plugin.php(515): WP_Hook — >do_action(массив) #4 /home/i/ishock/ishock.me/public_html/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Action.php(22): do_action_ref_array (\’wooms_check_ord…\’, массив) #5 /home/i/ishock/ishock.me/public_html/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Abstract_QueueRunner.php(59): ActionScheduler_Action->ex в /home/i/ishock/ishock.me/public_html/wp-content/plugins/wooms-extra/inc/OrderSender.php на строке 385 2020-11-28T07: 39: 51+00:00 критическая ошибка Uncaught: вызов неопределенной функции WooMS\ \ as_enqueue_async_action() в /home / i / ishock/ishock. me / public_html/wp-content / plugins/wooms-extra / inc/OrderSender. php:385 Трассировка стека: #0 /home/i/ishock/ishock.me/public_html/wp-content/plugins/wooms-extra/inc/OrderSender.php(370): WooMS\ \ OrderSender:: add_task_order_update(297) #1 /home/i/ishock/ishock.me/public_html/wp-includes/class-wp-hook.php(286): WooMS\ \ OrderSender:: batch_hadler() #2 /home/i/ishock/ishock.me/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters (\’\ ‘ , массив) #3 /home/i/ishock/ishock.me/public_html/wp-includes/plugin.php(515): WP_Hook — >do_action(массив) #4 /home/i/ishock/ishock.me/public_html/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Action.php(22): do_action_ref_array (\’wooms_check_ord…\’, массив) #5 /home/i/ishock/ishock.me/public_html/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Abstract_QueueRunner.php(59): ActionScheduler_Action->ex в /home/i/ishock/ishock.me/public_html/wp-content/plugins/wooms-extra/inc/OrderSender.php на строке 385

Подробнее…

оцените контент и участвуйте в выборе трендов

document.addEventListener(‘click’, function(event) {

var el = event.target;
var actionClassName = ‘action-like-post’;

if (el.parentNode.classList.contains(actionClassName)) {
el = el.parentNode;
}

// console.log(event.target.classList);
// console.log(event.target.parentNode.classList);
if (!el.classList.contains(actionClassName)) {
return;
}

var postId = el.getAttribute(«data-postid»);

var url = wpApiSettings.root + ‘u7/v1/likes/’ + postId;
// console.log(url);
var fetch_options = {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/json;charset=utf-8’
},
body: JSON.stringify({
‘postId’: postId
})
};

// console.log(url);

fetch(url, fetch_options)
.then(response => {

response.json().then(data => {
if (data.likes_count) {
// console.log(el.getElementsByTagName(‘span’)[0]);
el.getElementsByTagName(‘span’)[0].innerHTML = data.likes_count;
}
});
});

});

Источник: https://wpcraft.ru/blog/modul-wooms-xt-extra-perestaet-rabotat-oplata-na-sajte/

Добавить комментарий

%d такие блоггеры, как: