- 상태
- 개발자가 해결함
- 관련 플러그인/테마
- ThemeREX Addons
- 주제 태그
- Compatibility
문제 개요
WPML과 함께 ThemeREX Addons를 사용할 때 Testimonials 위젯이 포함된 번역된 페이지에서 치명적인 PHP 오류가 발생할 수 있습니다. 오류 메시지는 다음과 같습니다.
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in .../wp-content/plugins/trx_addons/cpt/testimonials/tpl.default-item.php:33
임시 해결 방법
이 오류를 방지하려면 관련 사용자 정의 필드와 숏코드 속성을 번역 가능으로 설정하세요.
- WordPress 대시보드에서 WPML > 설정 > 사용자 정의 XML 구성으로 이동하세요.
- 다음 XML 구성을 추가하고 저장하세요:
<wpml-config> <custom-fields> <custom-field action="translate">trx_addons_options</custom-field> </custom-fields> <shortcodes> <shortcode> <tag>trx_sc_testimonials</tag> <attributes> <attribute type="taxonomy-ids" sub-type="cpt_testimonials_group">cat</attribute> <attribute type="post-ids" sub-type="cpt_testimonials">ids</attribute> <attribute>subtitle</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>