WPML

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

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

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

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.

Ask a support question

All known issues