跳过导航

Resolved by 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 );
    }