jqhph / dcat-admin-ueditor

Dcat Admin扩展 - 百度在线编辑器
MIT License
19 stars 9 forks source link

composer 安装ueditor报错 #7

Open jimmylin66 opened 4 years ago

jimmylin66 commented 4 years ago

Fatal error: Uncaught Error: Call to undefined method Dcat\Admin\Admin::extend() in /home/vagrant/code/cms/vendor/dcat-admin-extension/ueditor/src/bootstrap.php:4 Stack trace:

0 /home/vagrant/code/cms/vendor/composer/autoload_real.php(69): require()

1 /home/vagrant/code/cms/vendor/composer/autoload_real.php(59): composerRequire2777f953bda6b748e883e3991ec109ce()

2 /home/vagrant/code/cms/vendor/autoload.php(7): ComposerAutoloaderInit2777f953bda6b748e883e3991ec109ce::getLoader()

3 /home/vagrant/code/cms/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php(43): require_once('/home/vagrant/c...')

4 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(305): Illuminate\Foundation\ComposerScripts::postAutoloadDump()

5 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(209): Composer\EventDispatcher\EventDispatcher->executeEventPhpScript()

6 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(96): Composer\EventDispatcher\E in /home/vagrant/code/cms/vendor/dcat-admin-extension/ueditor/src/bootstrap.php on line 4

vagrant@homestead:~/code/cms$ php artisan admin:import ueditor PHP Fatal error: Uncaught Error: Call to undefined method Dcat\Admin\Admin::extend() in /home/vagrant/code/cms/vendor/dcat-admin-extension/ueditor/src/bootstrap.php:4 Stack trace:

0 /home/vagrant/code/cms/vendor/composer/autoload_real.php(69): require()

1 /home/vagrant/code/cms/vendor/composer/autoload_real.php(59): composerRequire2777f953bda6b748e883e3991ec109ce()

2 /home/vagrant/code/cms/vendor/autoload.php(7): ComposerAutoloaderInit2777f953bda6b748e883e3991ec109ce::getLoader()

3 /home/vagrant/code/cms/artisan(18): require('/home/vagrant/c...')

4 {main}

thrown in /home/vagrant/code/cms/vendor/dcat-admin-extension/ueditor/src/bootstrap.php on line 4

Fatal error: Uncaught Error: Call to undefined method Dcat\Admin\Admin::extend() in /home/vagrant/code/cms/vendor/dcat-admin-extension/ueditor/src/bootstrap.php:4 Stack trace:

0 /home/vagrant/code/cms/vendor/composer/autoload_real.php(69): require()

1 /home/vagrant/code/cms/vendor/composer/autoload_real.php(59): composerRequire2777f953bda6b748e883e3991ec109ce()

2 /home/vagrant/code/cms/vendor/autoload.php(7): ComposerAutoloaderInit2777f953bda6b748e883e3991ec109ce::getLoader()

3 /home/vagrant/code/cms/artisan(18): require('/home/vagrant/c...')

4 {main}

thrown in /home/vagrant/code/cms/vendor/dcat-admin-extension/ueditor/src/bootstrap.php on line 4

leeyisoft commented 4 years ago

遇到同样的问题,求解答

jimmylin66 commented 4 years ago

@leeyisoft 我最后用了文档上的wangeditor http://www.dcatadmin.com/docs/2.x/model-form-field-management.html#%E9%9B%86%E6%88%90%E5%AF%8C%E6%96%87%E6%9C%AC%E7%BC%96%E8%BE%91%E5%99%A8wangEditor-h3

mrjie123 commented 3 years ago

遇到同样的问题,求解答

GiveUpPHP commented 2 years ago

这个扩展是不是只适用于dcat 1.x,我的2.0没法用呢

lyne007 commented 2 years ago

遇到同样的问题,求解答