- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey everyone,
I'm running on the latest Magento build. So I tried to install a language pack via composer which after installation it wasn't allowing me to change the language.
I read that in order for me to be able to change the local section of my store config I should change to status to developer mode.
But when I changed it developer mode the website is not longer working no matter if its in production or developer.
I reinstalled my backup but again the website broke down.
Kindly Help....
Here is what I'm getting when I try to access the admin:
1 exception(s): Exception #0 (Exception): Deprecated Functionality: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in C:\xampp\htdocs\Entregaste\vendor\magento\framework\View\Element\Template\File\Validator.php on line 142 Exception #0 (Exception): Deprecated Functionality: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in C:\xampp\htdocs\Entregaste\vendor\magento\framework\View\Element\Template\File\Validator.php on line 142 <pre>#1 strpos('C:\xampp\htdocs\...', false) called at [vendor\magento\framework\View\Element\Template\File\Validator.php:142] #2 Magento\Framework\View\Element\Template\File\Validator->isPathInDirectories('C:/xampp/htdocs/...', array('C:/xampp/htdocs/...')) called at [vendor\magento\framework\View\Element\Template\File\Validator.php:117] #3 Magento\Framework\View\Element\Template\File\Validator->isValid('C:/xampp/htdocs/...') called at [vendor\magento\framework\View\Element\Template.php:268] #4 Magento\Framework\View\Element\Template->fetchView('C:/xampp/htdocs/...') called at [vendor\magento\framework\View\Element\Template.php:301] #5 Magento\Framework\View\Element\Template->_toHtml() called at [vendor\magento\module-backend\Block\Template.php:129] #6 Magento\Backend\Block\Template->_toHtml() called at [vendor\magento\framework\View\Element\AbstractBlock.php:1100] #7 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor\magento\framework\View\Element\AbstractBlock.php:1104] #8 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor\magento\framework\View\Element\AbstractBlock.php:674] #9 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor\magento\module-backend\Block\Dashboard\Grids.php:53] #10 Magento\Backend\Block\Dashboard\Grids->_prepareLayout() called at [vendor\magento\framework\View\Element\AbstractBlock.php:286] #11 Magento\Framework\View\Element\AbstractBlock->setLayout(&Magento\Framework\View\Layout\Interceptor#0000000061b80b0a000000000be661fa#) called at [generated\code\Magento\Backend\Block\Dashboard\Grids\Interceptor.php:570] #12 Magento\Backend\Block\Dashboard\Grids\Interceptor->setLayout(&Magento\Framework\View\Layout\Interceptor#0000000061b80b0a000000000be661fa#) called at [vendor\magento\framework\View\Layout.php:769] #13 Magento\Framework\View\Layout->createBlock('Magento\Backend\...', 'dashboard.grids', array('data' => array())) called at [generated\code\Magento\Framework\View\Layout\Interceptor.php:349] #14 Magento\Framework\View\Layout\Interceptor->createBlock('Magento\Backend\...', 'dashboard.grids', array('data' => array())) called at [vendor\magento\framework\View\Element\AbstractBlock.php:403] #15 Magento\Framework\View\Element\AbstractBlock->addChild('grids', 'Magento\Backend\...') called at [vendor\magento\module-backend\Block\Dashboard.php:56] #16 Magento\Backend\Block\Dashboard->_prepareLayout() called at [vendor\magento\framework\View\Element\AbstractBlock.php:286] #17 Magento\Framework\View\Element\AbstractBlock->setLayout(&Magento\Framework\View\Layout\Interceptor#0000000061b80b0a000000000be661fa#) called at [vendor\magento\framework\View\Layout\Generator\Block.php:149] #18 Magento\Framework\View\Layout\Generator\Block->process(&Magento\Framework\View\Layout\Reader\Context#0000000061b80ed9000000000be661fa#, &Magento\Framework\View\Layout\Generator\Context#0000000061b80ec3000000000be661fa#) called at [vendor\magento\framework\View\Layout\GeneratorPool.php:81] #19 Magento\Framework\View\Layout\GeneratorPool->process(&Magento\Framework\View\Layout\Reader\Context#0000000061b80ed9000000000be661fa#, &Magento\Framework\View\Layout\Generator\Context#0000000061b80ec3000000000be661fa#) called at [vendor\magento\framework\View\Layout.php:352] #20 Magento\Framework\View\Layout->generateElements() called at [generated\code\Magento\Framework\View\Layout\Interceptor.php:89] #21 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor\magento\framework\View\Layout\Builder.php:129] #22 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor\magento\framework\View\Page\Builder.php:55] #23 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor\magento\framework\View\Layout\Builder.php:65] #24 Magento\Framework\View\Layout\Builder->build() called at [vendor\magento\framework\View\Layout.php:259] #25 Magento\Framework\View\Layout->build() called at [vendor\magento\framework\View\Layout.php:884] #26 Magento\Framework\View\Layout->getBlock('menu') called at [generated\code\Magento\Framework\View\Layout\Interceptor.php:414] #27 Magento\Framework\View\Layout\Interceptor->getBlock('menu') called at [vendor\magento\module-backend\Model\View\Result\Page.php:26] #28 Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Backend:...') called at [generated\code\Magento\Backend\Model\View\Result\Page\Interceptor.php:24] #29 Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu('Magento_Backend:...') called at [vendor\magento\module-backend\Controller\Adminhtml\Dashboard\Index.php:39] #30 Magento\Backend\Controller\Adminhtml\Dashboard\Index->execute() called at [generated\code\Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor.php:24] #31 Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->execute() called at [vendor\magento\framework\App\Action\Action.php:108] #32 Magento\Framework\App\Action\Action->dispatch(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\module-backend\App\AbstractAction.php:231] #33 Magento\Backend\App\AbstractAction->dispatch(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\framework\Interception\Interceptor.php:58] #34 Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#)) called at [vendor\magento\framework\Interception\Interceptor.php:138] #35 Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\module-backend\App\Action\Plugin\Authentication.php:143] #36 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(&Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor#0000000061b80b4d000000000be661fa#, &Closure#0000000061b80b4c000000000be661fa#, &Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\framework\Interception\Interceptor.php:135] #37 Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\framework\Interception\Interceptor.php:153] #38 Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#), NULL) called at [generated\code\Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor.php:39] #39 Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->dispatch(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\framework\App\FrontController.php:162] #40 Magento\Framework\App\FrontController->processRequest(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#, &Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor#0000000061b80b4d000000000be661fa#) called at [vendor\magento\framework\App\FrontController.php:98] #41 Magento\Framework\App\FrontController->dispatch(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\framework\Interception\Interceptor.php:58] #42 Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', array(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#)) called at [vendor\magento\framework\Interception\Interceptor.php:138] #43 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\framework\Interception\Interceptor.php:153] #44 Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#), array(array('default_store_se...', 'page_cache_from_...', 'storeCookieValid...', 'install', 'configHash'))) called at [generated\code\Magento\Framework\App\FrontController\Interceptor.php:26] #45 Magento\Framework\App\FrontController\Interceptor->dispatch(&Magento\Framework\App\Request\Http#0000000061b80820000000000be661fa#) called at [vendor\magento\framework\App\Http.php:116] #46 Magento\Framework\App\Http->launch() called at [generated\code\Magento\Framework\App\Http\Interceptor.php:24] #47 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\magento\framework\App\Bootstrap.php:261] #48 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000061b8084e000000000be661fa#) called at [index.php:39] </pre>
Any ideas why this is happening?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If this will not work you has to switch to PHP 7.2 as still magento 2.3 has issues with php 7.3
as I can see this function already deprecated in php 7.3 but Magento still using this function.
https://www.php.net/manual/en/migration73.deprecated.php
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Enabling developer mode breaks the site
Hello @sahandsigm749e
https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/3579
it is related to your php version
first of check which magento version are you using, and based on that check which php version support
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Enabling developer mode breaks the site
Which Magento version are you using? can you upgrade it to latest and check PHP version too it should be as recommended only.
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Enabling developer mode breaks the site
It's on 2.3.5-p1 and the PHP its on 7.3.5.
Everything works fine but as soon as I enable dev mode breaks apart.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Enabling developer mode breaks the site
Can you try to run with below commands once:
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento c:f
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If this will not work you has to switch to PHP 7.2 as still magento 2.3 has issues with php 7.3
as I can see this function already deprecated in php 7.3 but Magento still using this function.
https://www.php.net/manual/en/migration73.deprecated.php
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Enabling developer mode breaks the site
Thank you Manish! The problem was with the PHP 7.3!
Wish you all the best...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content