Before you ask please READ THIS

Notice with new version of vc composer

edited May 2015 in Blame Posts: 29
I just updated my Blame theme to 1.4.6

When I updated the VC composer to Version 4.5.2 the error below appeared.

Notice: Undefined index: values in /blame/advance/plugins/js_composer_mod/config.php on line 396

this notice references this code:

$copy_param = WPBMap::getParam('vc_masonry_grid', 'exclude_filter');
$copy_param['settings']['values'] = $param['settings']['values']; ----- THIS IS LINE 396 ------
WPBMap::mutateParam('vc_masonry_grid', $copy_param);
WPBMap::mutateParam('vc_basic_grid', $copy_param);

As a side note to this new update, I had to manually update LayerSlider because every time I tried to do the auto update it did not work.

Comments

  • AirAir
    Posts: 10,970
    Hi there:)
    jkellerer said: As a side note to this new update, I had to manually update LayerSlider because every time I tried to do the auto update it did not work.
    Indeed, I have checked this just now, and it doesn't update. However I don't know yet, where exactly lay issue. Thanks for info anyway:-)

    About your main issue it looks like something is interfering here. Maybe it is settings from "Grid Elements " menu. If it troubles you then change this code:

    $copy_param = WPBMap::getParam('vc_masonry_grid', 'exclude_filter');
    $copy_param['settings']['values'] = $param['settings']['values'];
    WPBMap::mutateParam('vc_masonry_grid', $copy_param);
    WPBMap::mutateParam('vc_basic_grid', $copy_param);
    to

    $copy_param = WPBMap::getParam('vc_masonry_grid', 'exclude_filter');
    //checks if we have any values to overwrite
    if(isset($copy_param['settings']['values']) && isset($param['settings']['values'])){
    $copy_param['settings']['values'] = $param['settings']['values'];
    WPBMap::mutateParam('vc_masonry_grid', $copy_param);
    WPBMap::mutateParam('vc_basic_grid', $copy_param);
    }
    With kind regards.
  • Posts: 29
    Thanks that worked!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion