我一直在尝试解决此区域代码未设置错误的问题,并在此处引用了其他代码,但是在跟踪该代码时遇到了问题。
我一直在尝试将2.0.7升级到2.1.0,当我到达运行点时:
php bin / magento设置:升级-vvv
我得到这个作为错误。
[Magento \ Framework \ Exception \ SessionException]未设置区号:必须在开始会话之前设置区号。
异常跟踪:()位于/ opt / bitnami / apps /中的/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Session/SessionManager.php:176 Magento \ Framework \ Session \ SessionManager-> start() magento / htdocs / var / generation / Magento / Framework / Session / Generic / Interceptor.php:50 Magento \ Framework \ Session \ Generic \ Interceptor-> start()在/ opt / bitnami / apps / magento / htdocs / vendor / magento /framework/Session/SessionManager.php:130 Magento \ Framework \ Session \ SessionManager-> __ construct()位于/opt/bitnami/apps/magento/htdocs/var/generation/Magento/Framework/Session/Generic/Interceptor.php: 14 Magento \ Framework \ Session \ Generic \ Interceptor-> __ construct()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:93 Magento \ Framework \ Objectwork \ ObjectManager \ Factory \抽象工厂->在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php上的createObject()://上的89 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create() opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / ObjectManager.php:71 Magento \ Framework \ ObjectManager \ ObjectManager-> get()在/ opt / bitnami / apps / magento / htdocs / vendor / magento /framework/ObjectManager/Factory/AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:82 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create()在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php:71 Magento \ Framework \ ObjectManager \ ObjectManager \ ObjectManager- > get()在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()在/ opt / bitnami /apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:82 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer->在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php上创建():71 Magento \ Framework \ ObjectManager \ ObjectManager-> get()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager /Factory/Dynamic/Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:82在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php上的Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create():71 Magento \ Framework \ ObjectManager \ ObjectManager-> get()在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory- > resolveArgument()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments() /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:82 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / ObjectManager.php:71 Magento \ Framework \ ObjectManager \ ObjectManager->在(/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()处的get()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()在/ opt / bitnami / apps / magento / htdocs /vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:82 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / ObjectManager.php:71 Magento \ Framework \ ObjectManager \ ObjectManager-> get()位于/opt/bitnami/apps/magento/htdocs/app/code/J2t/Rewardpoints/Observer/ProcessSaveModel.php:21 J2t \ Rewardpoints \ Observer \ ProcessSaveModel-> execute()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php:73 Magento \ Framework \ Event \ Invoker \ InvokerDefault- > _callObserverMethod()在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php:61 Magento \ Framework \ Event \ Invoker \ InvokerDefault-> dispatch()在/ opt / bitnami /apps/magento/htdocs/vendor/magento/framework/Event/Manager.php:66 Magento \ Framework \ Event \ Manager-> dispatch()位于/ opt / bitnami / apps / magento / htdocs / var / generation / Magento / Framework / Event / Manager / Proxy.php:95 Magento \ Framework \ Event \ Manager \ Proxy-> dispatch()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Model/AbstractModel.php:800 Magento \ Framework \ Model \ AbstractModel->在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php:818 Magento \ Framework \ Model \ ResourceModel \ Db \ AbstractDb-> processAfterSaves()处的afterSave() opt / bitnami / apps / magento / htdocs / vendor / magento / framework / Model / ResourceModel / Db / AbstractDb.php:408 Magento \ Framework \ Model \ ResourceModel \ Db \ AbstractDb-> save()在/ opt / bitnami / apps /magento/htdocs/vendor/magento/framework/Model/AbstractModel.php:631 Magento \ Framework \ Model \ AbstractModel-> save(),位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / module-indexer / Setup / Recurring.php:108 Magento \ Indexer \ Setup \ Recurring-> install()位于/opt/bitnami/apps/magento/htdocs/setup/src/Magento/Setup/Model/Installer.php:871 Magento \ Setup \型号\安装程序->在/opt/bitnami/apps/magento/htdocs/setup/src/Magento/Setup/Model/Installer.php上的handleDBSchemaData():在/ opt / bitnami / apps /下的779 Magento \ Setup \ Model \ Installer-> installSchema() magento / htdocs / setup / src / Magento / Setup / Console / Command / UpgradeCommand.php:89 Magento \ Setup \ Console \ Command \ UpgradeCommand-> execute()在/ opt / bitnami / apps / magento / htdocs / vendor / symfony /console/Symfony/Component/Console/Command/Command.php:257 Symfony \ Component \ Console \ Command \ Command-> run()位于/ opt / bitnami / apps / magento / htdocs / vendor / symfony / console / Symfony / Component / Console / Application.php:874 Symfony \ Component \ Console \ Application-> doRunCommand()位于/opt/bitnami/apps/magento/htdocs/vendor/symfony/console/Symfony/Component/Console/Application.php:195 Symfony \ Component \ Console \ Application->位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Console/Cli.php的doRun():96 Magento \ Framework \ Console \ Cli->位于/ opt / bitnami / apps / magento /的doRun() htdocs / vendor / symfony / console / Symfony / Component / Console / Application.php:126 Symfony \ Component \ Console \ Application-> run()在/ opt / bitnami / apps / magento / htdocs / bin / magento:23
[Magento \ Framework \ Exception \ LocalizedException]未设置区号
异常跟踪:()位于/ opt / bitnami / apps /上的/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/App/State.php:139 Magento \ Framework \ App \ State-> getAreaCode() magento / htdocs / vendor / magento / framework / Session / SessionManager.php:174 Magento \ Framework \ Session \ SessionManager-> start()在/ opt / bitnami / apps / magento / htdocs / var / generation / Magento / Framework / Session /Generic/Interceptor.php:50 Magento \ Framework \ Session \ Generic \ Interceptor-> start()在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Session/SessionManager.php:130 Magento \ Framework \ Session \ SessionManager-> __ construct()在/opt/bitnami/apps/magento/htdocs/var/generation/Magento/Framework/Session/Generic/Interceptor.php:14 Magento \ Framework \ Session \ Generic \ Interceptor->__construct()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:93 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> createObject()位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:89 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create()在/ opt / bitnami / apps / magento / htdocs /vendor/magento/framework/ObjectManager/ObjectManager.php:71 Magento \ Framework \ ObjectManager \ ObjectManager-> get(),位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / AbstractFactory。 php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:82 Magento \ Framework \位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php上的ObjectManager \ Factory \ Dynamic \ Developer-> create(),位于:71 Magento \ Framework \ ObjectManager \ ObjectManager-> get() /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer->_resolveArguments()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:82 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create() opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / ObjectManager.php:71 Magento \ Framework \ ObjectManager \ ObjectManager-> get()在/ opt / bitnami / apps / magento / htdocs / vendor / magento /framework/ObjectManager/Factory/AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:82 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create()在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php:71 Magento \ Framework \ ObjectManager \ ObjectManager \ ObjectManager- > get()在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()在/ opt / bitnami /apps/magento/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:82 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer->在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php上创建():71 Magento \ Framework \ ObjectManager \ ObjectManager-> get()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / AbstractFactory.php:126 Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> resolveArgument()位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager /Factory/Dynamic/Developer.php:53 Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _ resolveArguments()位于/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / ObjectManager / Factory / Dynamic / Developer.php:82在/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php上的Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create():71 Magento \ Framework \ ObjectManager \ ObjectManager-> get()在/opt/bitnami/apps/magento/htdocs/app/code/J2t/Rewardpoints/Observer/ProcessSaveModel.php:21 J2t \ Rewardpoints \ Observer \ ProcessSaveModel-> execute ()位于/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php:73 Magento \ Framework \ Event \ Invoker \ InvokerDefault-> _ callObserverMethod()位于/ opt / bitnami / apps /magento/htdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php:61 Magento \ Framework \ Event \ Invoker \ InvokerDefault-> dispatch()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / Event / Manager.php:66 Magento \ Framework \ Event \ Manager-> dispatch()位于/opt/bitnami/apps/magento/htdocs/var/generation/Magento/Framework/Event/Manager/Proxy.php:95 Magento \ Framework \ Event \ Manager \ Proxy->/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Model/AbstractModel.php上的dispatch():/ opt / bitnami / apps / magento /上的800 Magento \ Framework \ Model \ AbstractModel-> afterSave() htdocs / vendor / magento / framework / Model / ResourceModel / Db / AbstractDb.php:818 Magento \ Framework \ Model \ ResourceModel \ Db \ AbstractDb-> processAfterSaves()在/ opt / bitnami / apps / magento / htdocs / vendor / magento /framework/Model/ResourceModel/Db/AbstractDb.php:408 Magento \ Framework \ Model \ ResourceModel \ Db \ AbstractDb-> save()在/ opt / bitnami / apps / magento / htdocs / vendor / magento / framework / Model /在/opt/bitnami/apps/magento/htdocs/vendor/magento/module-indexer/Setup/Recurring.php上的AbstractModel.php:631 Magento \ Framework \ Model \ AbstractModel-> save()。php:108 Magento \ Indexer \ Setup \重复->install()位于/opt/bitnami/apps/magento/htdocs/setup/src/Magento/Setup/Model/Installer.php:871 Magento \ Setup \ Model \ Installer-> handleDBSchemaData()位于/ opt / bitnami / apps / magento / htdocs / setup / src / Magento / Setup / Model / Installer.php:779 Magento \ Setup \ Model \ Installer-> installSchema()位于/ opt / bitnami / apps / magento / htdocs / setup / src / Magento / Setup /Console/Command/UpgradeCommand.php:89 Magento \ Setup \ Console \ Command \ UpgradeCommand-> execute()位于/ opt / bitnami / apps / magento / htdocs / vendor / symfony / console / Symfony / Component / Console / Command / Command.php:257 Symfony \ Component \ Console \ Command \ Command-> run()位于/opt/bitnami/apps/magento/htdocs/vendor/symfony/console/Symfony/Component/Console/Application.php:874 Symfony \组件\控制台\应用程序->/opt/bitnami/apps/magento/htdocs/vendor/symfony/console/Symfony/Component/Console/Application.php上的doRunCommand():/ 195 / opt / bitnami /上的Symfony \ Component \ Console \ Application-> doRun() apps / magento / htdocs / vendor / magento / framework / Console / Cli.php:96 Magento \ Framework \ Console \ Cli-> doRun()位于/ opt / bitnami / apps / magento / htdocs / vendor / symfony / console / Symfony /Component/Console/Application.php:126 Symfony \ Component \ Console \ Application-> run()位于/ opt / bitnami / apps / magento / htdocs / bin / magento:23在(/ opt / bitnami / apps / magento / htdocs / bin / magento:23处运行()在(/ opt / bitnami / apps / magento / htdocs / bin / magento:23处运行()
设置:升级[-保持生成] [--magento-init-params =“ ...”]
因此,如果有人可以在哪里寻找帮助,那就太好了
提前致谢