agmadt / craft-delivery-date

MIT License
0 stars 1 forks source link

Create new timeslot result error #12

Closed nickwanhere closed 4 years ago

nickwanhere commented 4 years ago

Stack trace:
#0 /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php(431): ReflectionClass->__construct('craft\\web\\asset...')
#1 /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php(365): yii\di\Container->getDependencies('craft\\web\\asset...')
#2 /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('craft\\web\\asset...', Array, Array)
#3 /usr/share/nginx/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('craft\\web\\asset...', Array, Array)
#4 /usr/share/nginx/vendor/yiisoft/yii2/web/AssetManager.php(264): yii\BaseYii::createObject(Array)
#5 /usr/share/nginx/vendor/yiisoft/yii2/web/AssetManager.php(237): yii\web\AssetManager->loadBundle('craft\\web\\asset...', Array, true)
#6 /usr/share/nginx/vendor/yiisoft/yii2/web/View.php(286): yii\web\AssetManager->getBundle('craft\\web\\asset...')
#7 /usr/share/nginx/vendor/twig/twig/src/Extension/CoreExtension.php(1495): yii\web\View->registerAssetBundle('craft\\web\\asset...')
#8 /usr/share/nginx/vendor/craftcms/cms/src/helpers/Template.php(105): twig_get_attribute(Object(craft\web\twig\Environment), Object(Twig\Source), Object(craft\web\View), 'registerAssetBu...', Array, 'method', false, false)
#9 /usr/share/nginx/storage/runtime/compiled_templates/e8/e871b3e7ca868672a7ae85625fd2a0415b15f02960055780a1d96e715de40f92.php(47): craft\helpers\Template::attribute(Object(craft\web\twig\Environment), Object(Twig\Source), Object(craft\web\View), 'registerAssetBu...', Array, 'method')
#10 /usr/share/nginx/vendor/twig/twig/src/Template.php(407): __TwigTemplate_f06b2a9ba8cb280cbcc5691cc830e01ff88d3b04309e0808cb3d4a04b11c17cb->doDisplay(Array, Array)
#11 /usr/share/nginx/vendor/twig/twig/src/Template.php(380): Twig\Template->displayWithErrorHandling(Array, Array)
#12 /usr/share/nginx/vendor/twig/twig/src/Template.php(392): Twig\Template->display(Array)
#13 /usr/share/nginx/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render(Array, Array)
#14 /usr/share/nginx/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render(Array)
#15 /usr/share/nginx/vendor/craftcms/cms/src/web/View.php(344): Twig\Environment->render('craft-delivery-...', Array)
#16 /usr/share/nginx/vendor/craftcms/cms/src/web/View.php(393): craft\web\View->renderTemplate('craft-delivery-...', Array)
#17 /usr/share/nginx/vendor/craftcms/cms/src/web/Controller.php(243): craft\web\View->renderPageTemplate('craft-delivery-...', Array)
#18 /usr/share/nginx/plugins-custom/craft-delivery-date/src/controllers/TimeslotController.php(58): craft\web\Controller->renderTemplate('craft-delivery-...', Array)
#19 [internal function]: digitalbutter\craftdeliverydate\controllers\TimeslotController->actionIndex()
#20 /usr/share/nginx/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#21 /usr/share/nginx/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#22 /usr/share/nginx/vendor/craftcms/cms/src/web/Controller.php(187): yii\base\Controller->runAction('index', Array)
#23 /usr/share/nginx/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('index', Array)
#24 /usr/share/nginx/vendor/craftcms/cms/src/web/Application.php(299): yii\base\Module->runAction('craft-delivery-...', Array)
#25 /usr/share/nginx/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('craft-delivery-...', Array)
#26 /usr/share/nginx/vendor/craftcms/cms/src/web/Application.php(284): yii\web\Application->handleRequest(Object(craft\web\Request))
#27 /usr/share/nginx/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#28 /usr/share/nginx/web/index.php(21): yii\base\Application->run()
#29 {main}

Next yii\base\InvalidConfigException: Failed to instantiate component or class "craft\web\assets\admintable\AdminTableAsset". in /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php:433
Stack trace:
#0 /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php(365): yii\di\Container->getDependencies('craft\\web\\asset...')
#1 /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('craft\\web\\asset...', Array, Array)
#2 /usr/share/nginx/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('craft\\web\\asset...', Array, Array)
#3 /usr/share/nginx/vendor/yiisoft/yii2/web/AssetManager.php(264): yii\BaseYii::createObject(Array)
#4 /usr/share/nginx/vendor/yiisoft/yii2/web/AssetManager.php(237): yii\web\AssetManager->loadBundle('craft\\web\\asset...', Array, true)
#5 /usr/share/nginx/vendor/yiisoft/yii2/web/View.php(286): yii\web\AssetManager->getBundle('craft\\web\\asset...')
#6 /usr/share/nginx/vendor/twig/twig/src/Extension/CoreExtension.php(1495): yii\web\View->registerAssetBundle('craft\\web\\asset...')
#7 /usr/share/nginx/vendor/craftcms/cms/src/helpers/Template.php(105): twig_get_attribute(Object(craft\web\twig\Environment), Object(Twig\Source), Object(craft\web\View), 'registerAssetBu...', Array, 'method', false, false)
#8 /usr/share/nginx/storage/runtime/compiled_templates/e8/e871b3e7ca868672a7ae85625fd2a0415b15f02960055780a1d96e715de40f92.php(47): craft\helpers\Template::attribute(Object(craft\web\twig\Environment), Object(Twig\Source), Object(craft\web\View), 'registerAssetBu...', Array, 'method')
#9 /usr/share/nginx/vendor/twig/twig/src/Template.php(407): __TwigTemplate_f06b2a9ba8cb280cbcc5691cc830e01ff88d3b04309e0808cb3d4a04b11c17cb->doDisplay(Array, Array)
#10 /usr/share/nginx/vendor/twig/twig/src/Template.php(380): Twig\Template->displayWithErrorHandling(Array, Array)
#11 /usr/share/nginx/vendor/twig/twig/src/Template.php(392): Twig\Template->display(Array)
#12 /usr/share/nginx/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render(Array, Array)
#13 /usr/share/nginx/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render(Array)
#14 /usr/share/nginx/vendor/craftcms/cms/src/web/View.php(344): Twig\Environment->render('craft-delivery-...', Array)
#15 /usr/share/nginx/vendor/craftcms/cms/src/web/View.php(393): craft\web\View->renderTemplate('craft-delivery-...', Array)
#16 /usr/share/nginx/vendor/craftcms/cms/src/web/Controller.php(243): craft\web\View->renderPageTemplate('craft-delivery-...', Array)
#17 /usr/share/nginx/plugins-custom/craft-delivery-date/src/controllers/TimeslotController.php(58): craft\web\Controller->renderTemplate('craft-delivery-...', Array)
#18 [internal function]: digitalbutter\craftdeliverydate\controllers\TimeslotController->actionIndex()
#19 /usr/share/nginx/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#20 /usr/share/nginx/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#21 /usr/share/nginx/vendor/craftcms/cms/src/web/Controller.php(187): yii\base\Controller->runAction('index', Array)
#22 /usr/share/nginx/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('index', Array)
#23 /usr/share/nginx/vendor/craftcms/cms/src/web/Application.php(299): yii\base\Module->runAction('craft-delivery-...', Array)
#24 /usr/share/nginx/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('craft-delivery-...', Array)
#25 /usr/share/nginx/vendor/craftcms/cms/src/web/Application.php(284): yii\web\Application->handleRequest(Object(craft\web\Request))
#26 /usr/share/nginx/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#27 /usr/share/nginx/web/index.php(21): yii\base\Application->run()```

Steps:
1. Go to Plugin setting
2. Timeslot Delivery Days
3. Click add time slot
4. Create new time slot
5. Input data and save
nickwanhere commented 4 years ago

I think this is caused by the Craft version. Better to specific minimum Craft version ,e.g. your current Craft version.

nickwanhere commented 4 years ago

Works fine in 3.4.28.1