Error in error_log file after creat a new post
-
My site has no problem in front page, but in the error_log file record error after I creat a new post (same error for each of post).
Example for a error on 26Jul:
[26-Jul-2016 18:05:55 UTC] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/vntb210a/public_html/wp-includes/formatting.php on line 3384
[26-Jul-2016 19:30:32 UTC] C? s? d? li?u c?a WordPress g?p l?i Illegal mix of collations for operation ‘ IN ‘ v?i truy v?n
SELECT
target.post_id, sum(target.weight * log(26 / least(26, freqs.freq))) as score
FROM
wp2_zem_rp_tags as target,
(SELECT label, count(1) as freq FROM wp2_zem_rp_tags
WHERE label IN (‘P_c? gái cam’, ‘P_gi? l?i h?a’, ‘C_kinh nghi?m s?ng’, ‘A_anh’, ‘A_gi’, ‘A_cu’, ‘A_trai’, ‘A_ngai’, ‘A_trong’, ‘A_gia’, ‘A_gin’, ‘A_vin’, ‘A_ng’, ‘A_vo’, ‘A_cho’, ‘A_quan’, ‘A_nh’, ‘A_yu’)
GROUP BY label
) as freqs
WHERE
target.post_id NOT IN (‘1066’) ANDtarget.label=freqs.label AND
target.label IN (‘P_c? gái cam’, ‘P_gi? l?i h?a’, ‘C_kinh nghi?m s?ng’, ‘A_anh’, ‘A_gi’, ‘A_cu’, ‘A_trai’, ‘A_ngai’, ‘A_trong’, ‘A_gia’, ‘A_gin’, ‘A_vin’, ‘A_ng’, ‘A_vo’, ‘A_cho’, ‘A_quan’, ‘A_nh’, ‘A_yu’)
GROUP BY target.post_id
ORDER BY score desc, target.post_id desc
LIMIT 8; yêu c?u b?i require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/vntp1/single.php’), get_template_part, locate_template, load_template, require(‘/themes/vntp1/content-single.php’), the_content, apply_filters(‘the_content’), call_user_func_array, zem_rp_add_related_posts_hook, zem_rp_get_related_posts, zem_rp_fetch_posts_and_title, zem_rp_append_posts, call_user_func, zem_rp_fetch_related_posts_v2Line 3384 in formatting.php:
$url = str_replace( ' ', '%20', $url );
How can I fix this error? Front page has no problem but the error_log file is more full day by day with new post.
Thanks.
- The topic ‘Error in error_log file after creat a new post’ is closed to new replies.