Домой Wp-Recall WP-Recall: Проблемы и решения После обновления плагина произошла следующая ошибка, что делать
5ответ(ов) в теме
konyrevkirill
не в сети 2 месяца
На сайте с 20.09.2024
Участник
Тем 1
Сообщения 3
1
11:27
Версия WP-Recall: 16.26.5
Ссылка на страницу, с которой нужна помощь: https://buy-profit.ru/all/

Fatal error: Uncaught Error: Call to undefined function rcl_count_noread_notifications() in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/functions.php:690 Stack trace: #0 /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/header.php(166): notification_item(Array) #1 /home/g/garaevza/buyprofit/public_html/wp-includes/template.php(810): require_once('/home/g/garaevz...') #2 /home/g/garaevza/buyprofit/public_html/wp-includes/template.php(745): load_template('/home/g/garaevz...', true, Array) #3 /home/g/garaevza/buyprofit/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #4 /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/all.php(7): get_header() #5 /home/g/garaevza/buyprofit/public_html/wp-includes/template-loader.php(106): include('/home/g/garaevz...') #6 /home/g/garaevza/buyprofit/public_html/wp-blog-header.php(19): require_once('/home/g/garaevz...') #7 /home/g/garaevza/buyprofit/public_html/index.php(18): require('/home/g/garaevz.. in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/functions.php on line 690

0
Андрей CS
не в сети 5 часов
На сайте с 30.11.-0001
Администратор
Тем 71
Сообщения 16928
2
15:03

ошибка идет из файлов вашей темы

themes/mytheme/functions.php on line 690

смотрите что там не так

но я бы сначала проверил, что все нужные допы активированы, видимо чат деактивировался

0
konyrevkirill
не в сети 2 месяца
На сайте с 20.09.2024
Участник
Тем 1
Сообщения 3
3
15:49

Да был не активирован плагин, но почему - то вывело эту ошибку после активации
Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/single.php on line 23 Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/single.php on line 23
Ошибка базы данных WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's PlaceSt. James's PlaceSt. James's PlaceSt. James's Place<%') OR (wp_posts.post_title LIKE '%"St. James's Place"%') OR (wp_posts.post_content LIKE '%"St. James's Place"%') OR (wp_posts.post_title LIKE '% St. James's Place %') OR (wp_posts.post_content LIKE '% St. James's Place %')) AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC

Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/single.php on line 23
Ошибка базы данных WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Reilly AutoO'Reilly AutoO'Reilly AutoO'Reilly Auto<%') OR (wp_posts.post_title LIKE '%"O'Reilly Auto"%') OR (wp_posts.post_content LIKE '%"O'Reilly Auto"%') OR (wp_posts.post_title LIKE '% O'Reilly Auto %') OR (wp_posts.post_content LIKE '% O'Reilly Auto %')) AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC

Ошибка базы данных WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sMoody'sMoody'sMoody's<%') OR (wp_posts.post_title LIKE '%"Moody's"%') OR (wp_posts.post_content LIKE '%"Moody's"%') OR (wp_posts.post_title LIKE '% Moody's %') OR (wp_posts.post_content LIKE '% Moody's %')) AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC

Ошибка базы данных WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sMcDonald'sMcDonald'sMcDonald's<%') OR (wp_posts.post_title LIKE '%"McDonald's"%') OR (wp_posts.post_content LIKE '%"McDonald's"%') OR (wp_posts.post_title LIKE '% McDonald's %') OR (wp_posts.post_content LIKE '% McDonald's %')) AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC

Ошибка базы данных WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sLowe'sLowe'sLowe's<%') OR (wp_posts.post_title LIKE '%"Lowe's"%') OR (wp_posts.post_content LIKE '%"Lowe's"%') OR (wp_posts.post_title LIKE '% Lowe's %') OR (wp_posts.post_content LIKE '% Lowe's %')) AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC

Ошибка базы данных WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's PizzaDomino's PizzaDomino's PizzaDomino's Pizza<%') OR (wp_posts.post_title LIKE '%"Domino's Pizza"%') OR (wp_posts.post_content LIKE '%"Domino's Pizza"%') OR (wp_posts.post_title LIKE '% Domino's Pizza %') OR (wp_posts.post_content LIKE '% Domino's Pizza %')) AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC

Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/single.php on line 23 Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/single.php on line 23 Warning: array_map(): Expected parameter 2 to be an array, bool given in /home/g/garaevza/buyprofit/public_html/wp-content/themes/mytheme/single.php on line 23

0
konyrevkirill
не в сети 2 месяца
На сайте с 20.09.2024
Участник
Тем 1
Сообщения 3
4
15:57

post_author);
$target_forums = [];

global $post;

$forums = get_posts([
'post_type' => 'forum',
'posts_per_page' => -1,
'post_status' => 'publish'
]);
foreach ($forums as $forum) {
$forum_name = $forum->post_title;
$forum_tickers = array_map(fn($ticker) => $ticker->name, get_the_terms($forum->ID, 'ticker'));
$query_string = "SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID = $post->ID AND ((wp_posts.post_content LIKE '%>$forum_name$forum_nameget_results($query_string);
if (
$ticker_query_res ||
count($second_query) > 0
) {

$post_content_with_links = $post->post_content;
array_push($target_forums, $forum);
$post_content_with_links = str_replace('@' . $ticker, "@ID) . "'>" . $ticker . "", $post_content_with_links);
$post_content_with_links = str_replace('@' . strtolower($ticker), "@ID) . "'>" . $ticker . "", $post_content_with_links);
$post->post_content = $post_content_with_links;
}
}

$is_by_company = boolval(get_post_meta($post->ID, 'is_by_company', true));
if ($is_by_company){
$company_parent = get_post($user_data->company_parent);
}
?>
Место кода где он выдает ошибку

0
Андрей CS
не в сети 5 часов
На сайте с 30.11.-0001
Администратор
Тем 71
Сообщения 16928
5
16:29

ошибки из кода вашей темы, не пойму при чем тут плагин

0
Вы не имеете права на публикацию сообщений в этой теме