kartik-v / yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).
http://demos.krajee.com/widget-details/select2
Other
323 stars 145 forks source link

initSOpen not defined #46

Closed esquire900 closed 9 years ago

esquire900 commented 9 years ago

Newest version gives a JS error:

Uncaught ReferenceError: initS2Open is not defined

And leaves the spinning icon hanging, without loading select2

kartik-v commented 9 years ago

You have an outdated version - upgrade.

ghost commented 9 years ago

Same error coming even after "composer update -v --prefer-dist" My composer file has following require: "php": ">=5.4.0", "2amigos/yii2-chartjs-widget": "", "2amigos/yii2-google-maps-library": "", "2amigos/yii2-tinymce-widget": "", "aws/aws-sdk-php": "", "facebook/php-sdk-v4": "_", "iron-io/ironworker": "", "kartik-v/yii2-detail-view": "", "kartik-v/yii2-icons": "", "kartik-v/yii2-social": "", "kartik-v/yii2-widgets": "", "rsr/yii2-button-dropdown-sorter": "", "yiisoft/yii2": "", "yiisoft/yii2-authclient": "", "yiisoft/yii2-bootstrap": "", "yiisoft/yii2-imagine": "", "yiisoft/yii2-swiftmailer": ""

Do I need to add anything?

kartik-v commented 9 years ago

You need to check your composer.json.

You may do some reading on composer dependencies. If you are not sure... then an approach you could take is to remove all extension packages from require section except the yii core ones. Then slowly add extensions one by one and see if the latest version is getting updated. If it is not then you may need to check your version you are configuring OR reorder them correctly.

DishaA commented 9 years ago

hello kartik-v, I am having the same problem as questioned by esquire900..... can you please tell me how to upgrade to the newer version? I'm new to yii2 framework. So please help!