I am currently receiving the following error
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
Line of code ...
I am currently receiving the following error
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
Line of code ...
protected function callActivities() {
do_action( 'vc_mapper_call_activities_before' );
while ( $activity = each( $this->init_activity ) ) { // <<<< LINE 111
list( $object, $method, $params ) = $activity[1];
if ( 'mapper' === $object ) {
switch ( $method ) {
case 'map':
WPBMap::map( $params['tag'], $params['attributes'] );
break;
case 'drop_param':
WPBMap::dropParam( $params['name'], $params['attribute_name'] );
break;
case 'add_param':
WPBMap::addParam( $params['name'], $params['attribute'] );
break;
case 'mutate_param':
WPBMap::mutateParam( $params['name'], $params['attribute'] );
break;
case 'drop_all_shortcodes':
WPBMap::dropAllShortcodes();
break;
case 'drop_shortcode':
WPBMap::dropShortcode( $params['name'] );
break;
case 'modify':
WPBMap::modify( $params['name'], $params['setting_name'], $params['value'] );
break;
}
}
}
}
Would anyone know to help me solve this problem? How do I fix it?