跳过导航

Waiting for author

Overview of the issue

When using the Essentials theme‘s pixfort Core plugin with WPML, you might experience a fatal PHP error when the Auto Video Elementor widget is used. This results in a blank page or prevents the page from loading. The error message includes:
PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/pixfort-core/includes/elements/AutoVideo.php file.
  • Look for line 85.
  • Replace:
    $poster = apply_filters( 'wpml_object_id', $poster, 'attachment', true );
            
  • With:
    if ( is_int( $poster ) ) {
    	$poster = apply_filters( 'wpml_object_id', $poster, 'attachment', true );
    }
            

留下回复

紧扣主题并尊重他人。如果您需要帮助解决与本帖无关的问题,请使用我们的 Support Forum 开始聊天或提交票据。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>