error start and plugin MonsterInsights – eCommerce Addon

Hello Ilde.

When I deactivate Elementor I don’t get the error but the startup comes out without styles

If the page is created with Elementor you will have design problems if it is disabled.

The error that is shown when accessing clone is due to a class that is not defined in the file ” class-woostify-recent-post-thumbnail.php ” from your template found in ” wp-content -> themes -> woostify -> inc -> widget ” class-woostify-recent-post-thumbnail.php

You can try to comment the lines that give the error and check if it loads:

.- Access your cPanel account -> File Manager.

.- Accede to wp-content -> themes -> woostify -> inc -> widget and edit the file class-woostify-recent-post-thumbnail.php

.- On line 148 you will see these two lines:

$instance = wp_trip_all_tags( $new_instance );
$instance = wp_trip_all_tags( $new_instance );

Change them to the following:

/** $instance = wp_trip_all_tags( $new_instance );
$instance = wp_trip_all_tags( $new_instance ); */

What we do is comment those lines so that they have no effect

For the topic of MonsterInsights you can prove the same.

.- Go to wp-content -> plugins -> ga-ecommerce -> includes -> providers and edit the file ” ecommerce-integration.php

On line 78 you will see the following code:

public function print_dual_tracking_js() {
$v4_id = monsterinsights_get_v4_id_to_output();

if ( ! $v4_id ) {
return;
}

$attr_string = function_exists( ‘monsterinsights_get_frontend_analytics_script_atts’ )
? monsterinsights_get_frontend_analytics_script_atts()
: ‘ type=”text/javascript” data-cfasync=”false”‘;
?>
>window.MonsterInsightsDualTracker.helpers.mapProductItem = function( uaItem ) {var prefixIndex, prefixKey, mapIndex; var toBePrefixed = ; varitem = {}; var fieldMap = {‘price’: ‘price’,‘list_position’: ‘index’,‘quantity’: ‘quantity’,‘position’: ‘index’,}; for ( mapIndex in fieldMap ) {if ( uaItem.hasOwnProperty( mapIndex ) ) {item ]= uaItem;}} for ( prefixIndex = 0; prefixIndex < toBePrefixed.length; prefixIndex++ ) {prefixKey = toBePrefixed;if ( typeof uaItem !== ‘undefined’ ) {item = uaItem;}} returnitem;}; MonsterInsightsDualTracker.trackers = function( parameters ) {var items = parameters.items;var listName, itemIndex, item, itemListName;var lists = {‘_’: { items: , ‘send_to’: monsterinsights_frontend.v4_id },}; for ( itemIndex = 0; itemIndex < items.length; itemIndex++ ) {item = MonsterInsightsDualTracker.helpers.mapProductItem( items ); if ( typeof item === ‘undefined’ ) {lists.items.push( item );} else {itemListName = item;if ( typeof lists === ‘undefined’ ) {lists = {‘items’: ,‘item_list_name’: itemListName,‘send_to’: monsterinsights_frontend.v4_id,};} lists.items.push( item );}} for ( listName in lists ) {__gtagDataLayer( ‘event’, ‘view_item_list’, lists );}}; MonsterInsightsDualTracker.trackers = function( parameters ) {const items = parameters.items.map( MonsterInsightsDualTracker.helpers.mapProductItem );__gtagDataLayer( ‘event’, ‘select_item’, { items: items, send_to: parameters.send_to } );}; MonsterInsightsDualTracker.trackers = function( parameters ) {const items = parameters.items.map( MonsterInsightsDualTracker.helpers.mapProductItem );__gtagDataLayer( ‘event’, ‘view_item’, { items: items, send_to: parameters.send_to } );};

See also  The store search engine does not work correctly

You replace them with the following:

/* public function print_dual_tracking_js() {
$v4_id = monsterinsights_get_v4_id_to_output();

if ( ! $v4_id ) {
return;
}

$attr_string = function_exists( ‘monsterinsights_get_frontend_analytics_script_atts’ )
? monsterinsights_get_frontend_analytics_script_atts()
: ‘ type=”text/javascript” data-cfasync=”false”‘;
?>
>window.MonsterInsightsDualTracker.helpers.mapProductItem = function( uaItem ) {var prefixIndex, prefixKey, mapIndex; var toBePrefixed = ; varitem = {}; var fieldMap = {‘price’: ‘price’,‘list_position’: ‘index’,‘quantity’: ‘quantity’,‘position’: ‘index’,}; for ( mapIndex in fieldMap ) {if ( uaItem.hasOwnProperty( mapIndex ) ) {item ]= uaItem;}} for ( prefixIndex = 0; prefixIndex < toBePrefixed.length; prefixIndex++ ) {prefixKey = toBePrefixed;if ( typeof uaItem !== ‘undefined’ ) {item = uaItem;}} returnitem;}; MonsterInsightsDualTracker.trackers = function( parameters ) {var items = parameters.items;var listName, itemIndex, item, itemListName;var lists = {‘_’: { items: , ‘send_to’: monsterinsights_frontend.v4_id },}; for ( itemIndex = 0; itemIndex < items.length; itemIndex++ ) {item = MonsterInsightsDualTracker.helpers.mapProductItem( items ); if ( typeof item === ‘undefined’ ) {lists.items.push( item );} else {itemListName = item;if ( typeof lists === ‘undefined’ ) {lists = {‘items’: ,‘item_list_name’: itemListName,‘send_to’: monsterinsights_frontend.v4_id,};} lists.items.push( item );}} for ( listName in lists ) {__gtagDataLayer( ‘event’, ‘view_item_list’, lists );}}; MonsterInsightsDualTracker.trackers = function( parameters ) {const items = parameters.items.map( MonsterInsightsDualTracker.helpers.mapProductItem );__gtagDataLayer( ‘event’, ‘select_item’, { items: items, send_to: parameters.send_to } );}; MonsterInsightsDualTracker.trackers = function( parameters ) {const items = parameters.items.map( MonsterInsightsDualTracker.helpers.mapProductItem );__gtagDataLayer( ‘event’, ‘view_item’, { items: items, send_to: parameters.send_to } );};
}*/

What we do is the same, we comment the block to have no effect.

I personally don’t like this kind of plugin like MonsterInsights or Analytics since they have a very high consumption of resources and the page suffers, they are constantly making requests to the Google console and having the Google console itself where you can see many more statistics and in real time, it does not seem like a good alternative.

All the best

AnswerQuote

Loading Facebook Comments ...
Loading Disqus Comments ...