-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting this error at 2:42:12 in tutorial while clicking the open video link #3
Comments
@Kingwrites I think it's because you're calling "yii\bootstrap\BootstrapAsset" on your dependencies on AppAsset.php... Hope this fixes your issue! ;) |
I already done this but doesn't work
…On Wed, 16 Dec, 2020, 7:45 pm lopeshelder, ***@***.***> wrote:
@Kingwrites <https://github.com/Kingwrites> I think it's because you're
calling "yii\bootstrap\BootstrapAsset" on your dependencies on
AppAsset.php...
Try replacing it to "yii\bootstrap4\BootstrapAsset"...
Hope this fixes your issue! ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBIDPFD6XSPUN65HKZFNDDSVC6GTANCNFSM4UITMS2A>
.
|
Have you replaced it on both frontend and backend? Let me know if this fixes it... |
Database Exception – yii\db\Exception |
An Error occurred while handling another error:
ReflectionException: Class yii\bootstrap\BootstrapAsset does not exist in G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\di\Container.php:508
Stack trace:
#0 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\di\Container.php(508): ReflectionClass->__construct('yii\bootstrap\B...')
#1 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\di\Container.php(386): yii\di\Container->getDependencies('yii\bootstrap\B...')
#2 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\di\Container.php(171): yii\di\Container->build('yii\bootstrap\B...', Array, Array)
#3 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('yii\bootstrap\B...', Array, Array)
#4 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\AssetManager.php(264): yii\BaseYii::createObject(Array)
#5 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\AssetManager.php(237): yii\web\AssetManager->loadBundle('yii\bootstrap\B...', Array, true)
#6 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\View.php(287): yii\web\AssetManager->getBundle('yii\bootstrap\B...')
#7 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\View.php(292): yii\web\View->registerAssetBundle('yii\bootstrap\B...', NULL)
#8 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\AssetBundle.php(125): yii\web\View->registerAssetBundle('frontend\assets...')
#9 G:\WAMP64\www\Youtube-Clone\frontend\views\layouts\main.php(13): yii\web\AssetBundle::register(Object(yii\web\View))
#10 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\View.php(348): require('G:\WAMP64\www\Y...')
#11 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\View.php(257): yii\base\View->renderPhpFile('G:\WAMP64\www\Y...', Array)
#12 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Controller.php(425): yii\base\View->renderFile('G:\WAMP64\www\Y...', Array, Object(frontend\controllers\SiteController))
#13 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Controller.php(411): yii\base\Controller->renderContent('<div class="sit...')
#14 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\ErrorAction.php(139): yii\base\Controller->render('error', Array)
#15 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\ErrorAction.php(118): yii\web\ErrorAction->renderHtmlResponse()
#16 [internal function]: yii\web\ErrorAction->run()
#17 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Action.php(94): call_user_func_array(Array, Array)
#18 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Controller.php(181): yii\base\Action->runWithParams(Array)
#19 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('error', Array)
#20 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\ErrorHandler.php(109): yii\base\Module->runAction('site/error')
#21 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\ErrorHandler.php(135): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException))
#22 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException))
#23 {main}
Next yii\di\NotInstantiableException: Failed to instantiate component or class "yii\bootstrap\BootstrapAsset". in G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\di\Container.php:510
Stack trace:
#0 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\di\Container.php(386): yii\di\Container->getDependencies('yii\bootstrap\B...')
#1 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\di\Container.php(171): yii\di\Container->build('yii\bootstrap\B...', Array, Array)
#2 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('yii\bootstrap\B...', Array, Array)
#3 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\AssetManager.php(264): yii\BaseYii::createObject(Array)
#4 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\AssetManager.php(237): yii\web\AssetManager->loadBundle('yii\bootstrap\B...', Array, true)
#5 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\View.php(287): yii\web\AssetManager->getBundle('yii\bootstrap\B...')
#6 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\View.php(292): yii\web\View->registerAssetBundle('yii\bootstrap\B...', NULL)
#7 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\AssetBundle.php(125): yii\web\View->registerAssetBundle('frontend\assets...')
#8 G:\WAMP64\www\Youtube-Clone\frontend\views\layouts\main.php(13): yii\web\AssetBundle::register(Object(yii\web\View))
#9 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\View.php(348): require('G:\WAMP64\www\Y...')
#10 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\View.php(257): yii\base\View->renderPhpFile('G:\WAMP64\www\Y...', Array)
#11 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Controller.php(425): yii\base\View->renderFile('G:\WAMP64\www\Y...', Array, Object(frontend\controllers\SiteController))
#12 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Controller.php(411): yii\base\Controller->renderContent('<div class="sit...')
#13 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\ErrorAction.php(139): yii\base\Controller->render('error', Array)
#14 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\ErrorAction.php(118): yii\web\ErrorAction->renderHtmlResponse()
#15 [internal function]: yii\web\ErrorAction->run()
#16 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Action.php(94): call_user_func_array(Array, Array)
#17 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Controller.php(181): yii\base\Action->runWithParams(Array)
#18 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('error', Array)
#19 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\ErrorHandler.php(109): yii\base\Module->runAction('site/error')
#20 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\ErrorHandler.php(135): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException))
#21 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException))
#22 {main}
Previous exception:
yii\base\InvalidRouteException: Unable to resolve the request "/storage/videos/d0qSe90p.mp4". in G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Module.php:537
Stack trace:
#0 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\Application.php(104): yii\base\Module->runAction('/storage/videos...', Array)
#1 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#2 G:\WAMP64\www\Youtube-Clone\frontend\web\index.php(17): yii\base\Application->run()
#3 {main}
Next yii\web\NotFoundHttpException: Page not found. in G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\web\Application.php:116
Stack trace:
#0 G:\WAMP64\www\Youtube-Clone\vendor\yiisoft\yii2\base\Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#1 G:\WAMP64\www\Youtube-Clone\frontend\web\index.php(17): yii\base\Application->run()
#2 {main}
The text was updated successfully, but these errors were encountered: