- Trạng thái
- Đã giải quyết
Tổng quan về lỗi
Nếu bạn truy cập nguồn cấp dữ liệu của một danh mục bằng ngôn ngữ không phải mặc định và bạn phân trang sang ngôn ngữ thứ hai, thì bạn có thể gặp phải một lỗi như dưới đây:
PHP Catchable fatal error: Object of class WP_Error could not be converted to string in ...wp-includespluggable.php on line 1282
PHP Stack trace:
PHP 1. {main}() ...index.php:0
PHP 2. require() ...index.php:17
PHP 3. wp() ...wp-blog-header.php:16
PHP 4. WP->main() ...wp-includesfunctions.php:1105
PHP 5. WP->query_posts() ...wp-includesclass-wp.php:739
PHP 6. WP_Query->query() ...wp-includesclass-wp.php:622
PHP 7. WP_Query->get_posts() ...wp-includesclass-wp-query.php:3387
PHP 8. WP_Query->parse_query() ...wp-includesclass-wp-query.php:1723
PHP 9. do_action_ref_array() ...wp-includesclass-wp-query.php:1050
PHP 10. WP_Hook->do_action() ...wp-includesplugin.php:531
PHP 11. WP_Hook->apply_filters() ...wp-includesclass-wp-hook.php:310
PHP 12. SitePress->parse_query() ...wp-includesclass-wp-hook.php:286
PHP 13. WPML_Query_Parser->parse_query() ...wp-contentpluginssitepress-multilingual-cmssitepress.class.php:3310
PHP 14. WPML_Query_Parser->maybe_redirect_to_translated_taxonomy() ...wp-contentpluginssitepress-multilingual-cmsclassesquery-filteringclass-wpml-query-parser.php:345
PHP 15. WPML_WP_API->wp_safe_redirect() ...wp-contentpluginssitepress-multilingual-cmsclassesquery-filteringclass-wpml-query-parser.php:291
PHP 16. wp_safe_redirect() ...wp-contentpluginssitepress-multilingual-cmsclasseswpml-wpclass-wpml-wp-api.php:728
PHP 17. wp_sanitize_redirect() ...wp-includespluggable.php:1344
PHP 18. preg_replace_callback() ...wp-includespluggable.php:1282
Giải pháp tạm thời
Vấn đề này chỉ xảy ra đối với chuyên mục hoặc thuật ngữ phân loại ở ngôn ngữ phụ (không phải ngôn ngữ mặc định).
Các nhà phát triển của chúng tôi đã biết về vấn đề này và chúng tôi đang tiến hành khắc phục.