В общем проблема такая, переехал я у хостера своего с одного сервера, на другой, с тех пор на каждом сайте error_log полнится подобными записями:
Код
[19-Feb-2017 14:35:39 UTC] PHP Deprecated: Non-static method GalleryDataCache::containsKey() should not be called statically, assuming $this from incompatible context in /home/k17130/public_html/americanpower.ru/modules/core/classes/Gallery.class on line 922
[19-Feb-2017 14:35:39 UTC] PHP Deprecated: Non-static method GalleryDataCache::_getCache() should not be called statically, assuming $this from incompatible context in /home/k17130/public_html/americanpower.ru/modules/core/classes/GalleryDataCache.class on line 203
[19-Feb-2017 14:35:39 UTC] PHP Strict Standards: Non-static method GalleryCoreApi::requireOnce() should not be called statically in /home/k17130/public_html/americanpower.ru/init.inc on line 46
[19-Feb-2017 14:35:39 UTC] PHP Strict Standards: Non-static method GalleryCoreApi::requireOnce() should not be called statically in /home/k17130/public_html/americanpower.ru/init.inc on line 47
[19-Feb-2017 14:35:39 UTC] PHP Strict Standards: Non-static method GalleryCoreApi::requireOnce() should not be called statically in /home/k17130/public_html/americanpower.ru/init.inc on line 48
[19-Feb-2017 14:35:39 UTC] PHP Strict Standards: Non-static method GalleryCoreApi::requireOnce() should not be called statically in /home/k17130/public_html/americanpower.ru/init.inc on line 49
[19-Feb-2017 14:35:39 UTC] PHP Strict Standards: Non-static method GalleryCoreApi::requireOnce() should not be called statically in /home/k17130/public_html/americanpower.ru/modules/core/classes/GalleryModule.class on line 21
[19-Feb-2017 14:35:39 UTC] PHP Strict Standards: Non-static method GalleryCoreApi::requireOnce() should not be called statically in /home/k17130/public_html/americanpower.ru/init.inc on line 55
[19-Feb-2017 14:35:39 UTC] PHP Strict Standards: Non-static method GalleryCoreApi::requireOnce() should not be called statically in /home/k17130/public_html/americanpower.ru/modules/core/classes/GalleryPlatform/UnixPlatform.class on line 21
Код
[16-Feb-2017 12:58:43 UTC] PHP Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/k17130/public_html/americanpower.ru/test/wp-content/themes/wpclassifieds/functions.php on line 43
[16-Feb-2017 12:58:43 UTC] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in /home/k17130/public_html/americanpower.ru/test/wp-content/themes/wpclassifieds/functions.php on line 43
[16-Feb-2017 12:58:43 UTC] PHP Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/k17130/public_html/americanpower.ru/test/wp-content/themes/wpclassifieds/functions.php on line 43
[16-Feb-2017 12:58:43 UTC] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in /home/k17130/public_html/americanpower.ru/test/wp-content/themes/wpclassifieds/functions.php on line 43
[18-Feb-2017 16:44:45 UTC] PHP Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/k17130/public_html/americanpower.ru/autosale/wp-content/themes/wpclassifieds/functions.php on line 43
[18-Feb-2017 16:44:45 UTC] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in /home/k17130/public_html/americanpower.ru/autosale/wp-content/themes/wpclassifieds/functions.php on line 43
[18-Feb-2017 16:44:45 UTC] База данных WordPress возвратила ошибку Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_unicode_520_ci,COERCIBLE) for operation '=' в ответ на запрос
SELECT
target.post_id, sum(target.weight * log(193 / least(193, freqs.freq))) as score
FROM
wp_wp_rp_tags as target,
(SELECT label, count(1) as freq FROM wp_wp_rp_tags
WHERE label IN ('P_1 000 000', 'P_1974', 'P_charger', 'P_dodge', 'C_charger/daytona', 'C_chevrolet', 'A_charger', 'A_dodg', 'A_2', 'A_1', 'A_000', 'A_1000', 'A_10', 'A_74', 'A_2007')
GROUP BY label
) as freqs
WHERE
target.post_id NOT IN ('1118') AND
target.label=freqs.label AND
target.label IN ('P_1 000 000', 'P_1974', 'P_charger', 'P_dodge', 'C_charger/daytona', 'C_chevrolet', 'A_charger', 'A_dodg', 'A_2', 'A_1', 'A_000', 'A_1000', 'A_10', 'A_74', 'A_2007') AND
target.post_id NOT IN (
SELECT post_id FROM wp_wp_rp_tags
WHERE label IN ('C_Новости')
)
GROUP BY target.post_id
ORDER BY score desc, target.post_id desc
LIMIT 12;, выполненный require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/wpclassifieds/single.php
На некоторых сайтах данные логи вырастают до пары гигабайт за несколько суток, но все бы ничего, имеется доска объявлений на WP все было прекрасно, после переезда начала выдавать ошибку (см. скриншот) при попытке размещения объявлений
Хотя при переносе на локальный сервер, там все это успешно работает. Хостер разводит руками:
Цитата
К сожалению, нам не удаётся решить данную проблему. У нас есть подозрения, что проблема в теме. Уточните, пожалуйста, у разработчиков темы от куда берутся данные подключения к БД и почему не используются те, что указаны в конфигурационном файле cms.
Так вот подскажите, либо хостинг проверенный, либо в чем может заключатся моя проблема. До переезда мой сайт работал успешно лет 5