cancel
Showing results for 
Search instead for 
Did you mean: 

trouble shooting issue

trouble shooting issue

I use the above mention method

"Solution for Exception Printing is Disabled by Default for Security Reasons in Magento 2:
Go to folder pub/errors find file local.xml.sample
Rename the file local.xml.sample to local.xml in the same folder pub/errors
Also, set developer mode using the following command :
php bin/magento deploy:mode:set developer
php bin/magento deploy:mode:set developer

Now feeling this problem
would u please help me to fix it.

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\magento\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\magento\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\framework\View\Element\AbstractBlock.php:1099]
#6 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor\magento\framework\View\Element\AbstractBlock.php:1103]
#7 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor\magento\framework\View\Element\AbstractBlock.php:673]
#8 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor\magento\framework\View\Result\Page.php:249]
#9 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\View\Result\Layout.php:171]
#10 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\Interception\Interceptor.php:58]
#11 Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#)) called at [vendor\magento\framework\Interception\Interceptor.php:138]
#12 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\Interception\Interceptor.php:153]
#13 Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated\code\Magento\Framework\View\Result\Page\Interceptor.php:130]
#14 Magento\Framework\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\App\Http.php:120]
#15 Magento\Framework\App\Http->launch() called at [generated\code\Magento\Framework\App\Http\Interceptor.php:24]
#16 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\magento\framework\App\Bootstrap.php:261]
#17 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000057f976e1000000004ef7c4a8#) called at [index.php:39]
</pre>

2 REPLIES 2

Re: trouble shooting issue


@ghschandal158d wrote:

I use the above mention method

"Solution for Exception Printing is Disabled by Default for Security Reasons in Magento 2:
Go to folder pub/errors find file local.xml.sample
Rename the file local.xml.sample to local.xml in the same folder pub/errors
Also, set developer mode using the following command :
php bin/magento deploy:mode:set developer
php bin/magento deploy:mode:set developer

Now feeling this problem
would u please help me to fix it.

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\magento\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\magento\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\framework\View\Element\AbstractBlock.php:1099]
#6 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor\magento\framework\View\Element\AbstractBlock.php:1103]
#7 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor\magento\framework\View\Element\AbstractBlock.php:673]
#8 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor\magento\framework\View\Result\Page.php:249]
#9 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\View\Result\Layout.php:171]
#10 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\Interception\Interceptor.php:58]
#11 Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#)) called at [vendor\magento\framework\Interception\Interceptor.php:138]
#12 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\Interception\Interceptor.php:153]
#13 Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated\code\Magento\Framework\View\Result\Page\Interceptor.php:130]
#14 Magento\Framework\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\App\Http.php:120]
#15 Magento\Framework\App\Http->launch() called at [generated\code\Magento\Framework\App\Http\Interceptor.php:24]
#16 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\magento\framework\App\Bootstrap.php:261]
#17 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000057f976e1000000004ef7c4a8#) called at [index.php:39]
</pre>


Solution for Exception Printing is Disabled by Default for Security Reasons in Magento 2:

Go to folder pub/errors find file local.xml.sample

Rename the file local.xml.sample to local.xml in the same folder pub/errors

Also, set developer mode using the following command :

 

php bin/magento deploy:mode:set developer

So, that’s it.

If you still have any doubts, do not hesitate to mention them in the Comments section below. I’d be happy to help.

source: https://myclesp.online

 

Re: trouble shooting issue

I use the above mention method

"Solution for Exception Printing is Disabled by Default for Security Reasons in Magento 2:
Go to folder pub/errors find file local.xml.sample
Rename the file local.xml.sample to local.xml in the same folder pub/errors
Also, set developer mode using the following command :
php bin/magento deploy:mode:set developer
php bin/magento deploy:mode:set developer

Now feeling this problem
would u please help me to fix it.

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\magento\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\magento\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\framework\View\Element\AbstractBlock.php:1099]
#6 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor\magento\framework\View\Element\AbstractBlock.php:1103]
#7 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor\magento\framework\View\Element\AbstractBlock.php:673]
#8 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor\magento\framework\View\Result\Page.php:249]
#9 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\View\Result\Layout.php:171]
#10 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\Interception\Interceptor.php:58]
#11 Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#)) called at [vendor\magento\framework\Interception\Interceptor.php:138]
#12 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\Interception\Interceptor.php:153]
#13 Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated\code\Magento\Framework\View\Result\Page\Interceptor.php:130]
#14 Magento\Framework\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000057f976e8000000004ef7c4a8#) called at [vendor\magento\framework\App\Http.php:120]
#15 Magento\Framework\App\Http->launch() called at [generated\code\Magento\Framework\App\Http\Interceptor.php:24]
#16 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\magento\framework\App\Bootstrap.php:261]
#17 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000057f976e1000000004ef7c4a8#) called at [index.php:39]
</pre>