php - How do I fix these errors for the symfony framework demo? -
i have symfony installed , learning it. should note using ubuntu 15.04 on system.
so ran following command create demo:
symfony demo
then run
php app/console server:run
which lets me run demo. go given url server. click "browse application". app has errors on place. on page gives me following errors:
an exception occured in driver: not find driver 500 internal server error - driverexception 2 linked exceptions: pdoexception » pdoexception » [3/3] driverexception: exception occured in driver: not find driver + logs - 1 error info - matched route "blog_index". info - populated tokenstorage anonymous token. debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\debughandlerslistener::configure". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\profilerlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\dumplistener::configure". debug - notified event "kernel.request" listener "symfony\bundle\frameworkbundle\eventlistener\sessionlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\fragmentlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\routerlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\localelistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\translatorlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\security\http\firewall::onkernelrequest". debug - notified event "kernel.request" listener "appbundle\eventlistener\redirecttopreferredlocalelistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\bundle\asseticbundle\eventlistener\requestlistener::onkernelrequest". debug - notified event "kernel.request" listener "knp\bundle\paginatorbundle\subscriber\slidingpaginationsubscriber::onkernelrequest". debug - notified event "kernel.controller" listener "symfony\bundle\frameworkbundle\datacollector\routerdatacollector::onkernelcontroller". debug - notified event "kernel.controller" listener "codeexplorerbundle\eventlistener\controllerlistener::registercurrentcontroller". debug - notified event "kernel.controller" listener "symfony\component\httpkernel\datacollector\requestdatacollector::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\controllerlistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\paramconverterlistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\httpcachelistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\securitylistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\templatelistener::onkernelcontroller". debug - notified event "knp_pager.before" listener "knp\component\pager\event\subscriber\sortable\sortablesubscriber::before". debug - notified event "knp_pager.before" listener "knp\component\pager\event\subscriber\filtration\filtrationsubscriber::before". debug - notified event "knp_pager.before" listener "knp\component\pager\event\subscriber\paginate\paginationsubscriber::before". critical - uncaught php exception doctrine\dbal\exception\driverexception: "an exception occured in driver: not find driver" @ /var/www/html/symfony_demo/vendor/doctrine/dbal/lib/doctrine/dbal/driver/abstractsqlitedriver.php line 85 debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\debughandlerslistener::configure". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\profilerlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\dumplistener::configure". debug - notified event "kernel.request" listener "symfony\bundle\frameworkbundle\eventlistener\sessionlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\fragmentlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\routerlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\localelistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\httpkernel\eventlistener\translatorlistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\component\security\http\firewall::onkernelrequest". debug - notified event "kernel.request" listener "appbundle\eventlistener\redirecttopreferredlocalelistener::onkernelrequest". debug - notified event "kernel.request" listener "symfony\bundle\asseticbundle\eventlistener\requestlistener::onkernelrequest". debug - notified event "kernel.request" listener "knp\bundle\paginatorbundle\subscriber\slidingpaginationsubscriber::onkernelrequest". debug - notified event "kernel.controller" listener "symfony\bundle\frameworkbundle\datacollector\routerdatacollector::onkernelcontroller". debug - notified event "kernel.controller" listener "codeexplorerbundle\eventlistener\controllerlistener::registercurrentcontroller". debug - notified event "kernel.controller" listener "symfony\component\httpkernel\datacollector\requestdatacollector::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\controllerlistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\paramconverterlistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\httpcachelistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\securitylistener::onkernelcontroller". debug - notified event "kernel.controller" listener "sensio\bundle\frameworkextrabundle\eventlistener\templatelistener::onkernelcontroller".
k. try fix first error, pdoexception. find links. suggest installing:
sudo apt-get install php5-sqlite php5-mysql
mysql installed. sqlite says has unmet dependencies , stuff:
some packages not installed. may mean have requested impossible situation or if using unstable distribution required packages have not yet been created or been moved out of incoming. following information may resolve situation: following packages have unmet dependencies: php5-sqlite : depends: php5-common (= 5.6.4+dfsg-4ubuntu6) 5.6.4+dfsg-4ubuntu6.4 installed e: unable correct problems, have held broken packages.
not sure here.
i did :
sudo apt-get install php5-sqlite
and worked fine demo needs sqlite driver.
Comments
Post a Comment