Turn Live Link on and getting error

Issue Summary

With local when I try to create a live link I get the error attached

Error

Fatal error : Uncaught TypeError: Cannot access offset of type string on string in /Users/XXXX/Local Sites/XXX/app/public/wp-content/plugins/elementor/core/page-assets/data-managers/base.php:24

System

Macbook air M2
OS: 13.3.1
Local version: 6.7.2+6375
Wordpress: 6.2.2
Elementor: 3.13.3
Elementor Pro: 3.13.2

Important info

It seems that the error is related to known error as reported
here:

and here:

In particulary, according to this comment:

It seems that the method replace_host caused the problem.

Anyway, the fatal error provided above, It referrers to this function →

 /**
 	 * Get Saved Assets Data.
 	 *
 	 * Getting the assets data from the DB.
 	 *
 	 * @since 3.3.0
 	 * @access protected
 	 *
 	 * @return array
 	 */
 	protected function get_saved_assets_data() {
 		$assets_data = get_option( self::ASSETS_DATA_KEY, [] );
 
 		$content_type = $this->content_type;
 		$assets_category = $this->assets_category;
 
 		if ( ! isset( $assets_data[ $content_type ] ) ) {
 			$assets_data[ $content_type ] = [];
 		}
 
 		if ( ! isset( $assets_data[ $content_type ][ $assets_category ] ) ) {
 			$assets_data[ $content_type ][ $assets_category ] = [];
 		}
 		return $assets_data;
 	}

It seems that the function called from site link button, somehow, corrupted the database.

Hello @nicolaU - welcome to the Local community! :wave:

Thank you for your question.

Our team attempted to reproduce the error you received but we are able to successfully create a fresh site, use the (free) Elementor plugin, and access Live Links.

Are you able to provide specific reproduction steps?

Thank you!

Sam

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.