Skip to content
Advertisement

Kartik export menu showing incompatible error message

I’m using kartik export menu and it’s showing the error below.

PHP Strict Warning – yiibaseErrorException

kartikgridGridView and kartikbaseBootstrapTrait define the same property ($bsVersion) in the composition of kartikgridGridView. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed

Code:

JavaScript

What can be the cause of this since i’ve followed the kartik instructions for using the export menu?

Advertisement

Answer

I had the same issue with kartik-v: yii2-grid 3.1.9 and yii2-export 1.3.0 recent releases. To solve this issue you have two options:

  1. Upgrade to PHP 7.X
  2. Set in composer.json the specific release that is compatible with PHP 5.6.x or 5.7.x.

composer.json

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement