Closed sauravsuman1 closed 7 years ago
Same error.
Me too.
The code have to change to:
class CKEditorWidgetAsset extends AssetBundle { public $sourcePath;
public $depends = [ 'dosamigos\ckeditor\CKEditorAsset' ];
public $js = [ 'dosamigos-ckeditor.widget.js' ];
public function init(){ $this->sourcePath = DIR . '/assets'; } }
Me too. Only in production server. Probably something to do with PHP config, but I believe it's better if it's fixed from source as it can be easily solved.
@nicosavini do you mind checking master? A contribution may have fixed the issue.
Seems to be working now.
Good! I will update the version then...
Version :: ^2.0 vendor/2amigos/yii2-ckeditor-widget/src/CKEditorWidgetAsset.php :: line 21
Got this error on first time use.
Resolve this by changing the original code
ORIGINAL CODE
`class CKEditorWidgetAsset extends AssetBundle { public $sourcePath = DIR . '/assets';
}`
NEW CODE
class CKEditorWidgetAsset extends AssetBundle { public $sourcePath;
}