cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to set ini option session.use_only_cookies

SOLVED

Failed to set ini option session.use_only_cookies

Hi

Everyone I have problem after I install magento 2.3 on godady hosting

Showing me this error


Failed to set ini option session.use_only_cookies
3 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Failed to set ini option session.use_only_cookies

Hello @ahmed_alhammadi ,

 

Please do following changes for me, If you still got an issue then let me know

 

Add below session code php.ini file at end of file

session.save_handler = files
;session.save_path = "/tmp"

-->

session.save_handler = files
session.save_path = "var/www/magento2/var/session"

Edited php.env file:

'session' =>
array (
'save' => 'files',
),

--

'session' =>
array (
'save' => 'files',
'save_path' => '/var/www/magento2/var/session',
),

--
If my answer is useful, please Accept as Solution & give Kudos

View solution in original post

Re: Failed to set ini option session.use_only_cookies

There has been an error processing your request

Failed to set ini option session.use_only_cookies to value 1. 

Error log record number: 542455341487

im using godaddy hosting 

{"0":"Failed to set ini option session.use_only_cookies to value 1. ","1":"#0 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Session\/SessionManager.php(181): Magento\\Framework\\Session\\SessionManager->initIniOptions()\n#1 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\Session\\SessionManager->start()\n#2 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Framework\\Session\\Generic\\Interceptor->___callParent('start', Array)\n#3 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\Session\\Generic\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#4 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/Session\/Generic\/Interceptor.php(52): Magento\\Framework\\Session\\Generic\\Interceptor->___callPlugins('start', Array, Array)\n#5 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Session\/SessionManager.php(127): Magento\\Framework\\Session\\Generic\\Interceptor->start()\n#6 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/Session\/Generic\/Interceptor.php(14): Magento\\Framework\\Session\\SessionManager->__construct(Object(Magento\\Framework\\App\\Request\\Http), Object(Magento\\Framework\\Session\\SidResolver\\Proxy), Object(Magento\\Framework\\Session\\Config), Object(Magento\\Framework\\Session\\SaveHandler), Object(Magento\\Framework\\Session\\Validator), Object(Magento\\Framework\\Session\\Storage), Object(Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager), Object(Magento\\Framework\\Stdlib\\Cookie\\CookieMetadataFactory), Object(Magento\\Framework\\App\\State\\Interceptor))\n#7 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(116): Magento\\Framework\\Session\\Generic\\Interceptor->__construct(Object(Magento\\Framework\\App\\Request\\Http), Object(Magento\\Framework\\Session\\SidResolver\\Proxy), Object(Magento\\Framework\\Session\\Config), Object(Magento\\Framework\\Session\\SaveHandler), Object(Magento\\Framework\\Session\\Validator), Object(Magento\\Framework\\Session\\Storage), Object(Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager), Object(Magento\\Framework\\Stdlib\\Cookie\\CookieMetadataFactory), Object(Magento\\Framework\\App\\State\\Interceptor))\n#8 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(66): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Framewo...', Array)\n#9 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#10 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(160): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#11 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'session', 'Magento\\\\Framewo...')\n#12 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('Magento\\\\Framewo...', Array, Array)\n#13 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Framewo...', Array, Array)\n#14 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#15 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(160): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#16 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'formKey', 'Magento\\\\Framewo...')\n#17 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('Magento\\\\Framewo...', Array, Array)\n#18 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Framewo...', Array, Array)\n#19 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#20 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(160): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#21 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'formKeyValidato...', 'CsrfRequestVali...')\n#22 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('CsrfRequestVali...', Array, Array)\n#23 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('CsrfRequestVali...', Array, Array)\n#24 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('CsrfRequestVali...')\n#25 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(196): Magento\\Framework\\ObjectManager\\ObjectManager->get('CsrfRequestVali...')\n#26 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(172): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->parseArray(Array)\n#27 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, NULL, NULL, 'validators', 'RequestValidato...')\n#28 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('RequestValidato...', Array, Array)\n#29 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('RequestValidato...', Array, Array)\n#30 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('RequestValidato...')\n#31 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/App\/FrontController.php(71): Magento\\Framework\\ObjectManager\\ObjectManager->get('RequestValidato...')\n#32 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(14): Magento\\Framework\\App\\FrontController->__construct(Object(Magento\\Framework\\App\\RouterList), Object(Magento\\Framework\\App\\Response\\Http\\Interceptor), NULL, NULL, NULL)\n#33 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(116): Magento\\Framework\\App\\FrontController\\Interceptor->__construct(Object(Magento\\Framework\\App\\RouterList), Object(Magento\\Framework\\App\\Response\\Http\\Interceptor), NULL, NULL, NULL)\n#34 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(66): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Framewo...', Array)\n#35 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#36 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/App\/Http.php(134): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#37 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#38 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/App\/Bootstrap.php(258): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#39 \/home\/a7med\/public_html\/m2\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#40 {main}","url":"\/m2\/","script_name":"\/m2\/index.php"}

View solution in original post

Re: Failed to set ini option session.use_only_cookies

email me 

 

mixvipbrands@gmail.com

View solution in original post

26 REPLIES 26

Failed to set ini option session.use_only_cookies

Hi

Everyone after I install magento 2.3 on my godady hosting
Showing me this error

There has been an error processing your request
Failed to set ini option session.use_only_cookies to value 1.
Error log record number: 1154399512761

Please help

Re: Failed to set ini option session.use_only_cookies

There has been an error processing your request
Failed to set ini option session.use_only_cookies to value 1.
Error log record number: 359491117016

Re: Failed to set ini option session.use_only_cookies

Hi @ahmed_alhammadi 

 

I understand the error you are facing !

 

Here i would say , go to the var/report directory of your magento 2 root directory and then you will able to find file name called - 1154399512761

 

open that file and check what error is showing over there ? and post the error over here , so its help us to troubleshoot the issue

 

Also i would say after installing magento 2.3 fresh installation - you will require to run below commands from the SSH terminal , kindly run command for the same 

 

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Failed to set ini option session.use_only_cookies

{"0":"Failed to set ini option session.use_only_cookies to value 1. ","1":"#0 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Session\/SessionManager.php(181): Magento\\Framework\\Session\\SessionManager->initIniOptions()\n#1 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\Session\\SessionManager->start()\n#2 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Framework\\Session\\Generic\\Interceptor->___callParent('start', Array)\n#3 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\Session\\Generic\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#4 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/Session\/Generic\/Interceptor.php(52): Magento\\Framework\\Session\\Generic\\Interceptor->___callPlugins('start', Array, Array)\n#5 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/Session\/SessionManager.php(127): Magento\\Framework\\Session\\Generic\\Interceptor->start()\n#6 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/Session\/Generic\/Interceptor.php(14): Magento\\Framework\\Session\\SessionManager->__construct(Object(Magento\\Framework\\App\\Request\\Http), Object(Magento\\Framework\\Session\\SidResolver\\Proxy), Object(Magento\\Framework\\Session\\Config), Object(Magento\\Framework\\Session\\SaveHandler), Object(Magento\\Framework\\Session\\Validator), Object(Magento\\Framework\\Session\\Storage), Object(Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager), Object(Magento\\Framework\\Stdlib\\Cookie\\CookieMetadataFactory), Object(Magento\\Framework\\App\\State\\Interceptor))\n#7 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(116): Magento\\Framework\\Session\\Generic\\Interceptor->__construct(Object(Magento\\Framework\\App\\Request\\Http), Object(Magento\\Framework\\Session\\SidResolver\\Proxy), Object(Magento\\Framework\\Session\\Config), Object(Magento\\Framework\\Session\\SaveHandler), Object(Magento\\Framework\\Session\\Validator), Object(Magento\\Framework\\Session\\Storage), Object(Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager), Object(Magento\\Framework\\Stdlib\\Cookie\\CookieMetadataFactory), Object(Magento\\Framework\\App\\State\\Interceptor))\n#8 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(66): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Framewo...', Array)\n#9 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#10 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(160): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#11 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'session', 'Magento\\\\Framewo...')\n#12 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('Magento\\\\Framewo...', Array, Array)\n#13 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Framewo...', Array, Array)\n#14 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#15 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(160): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#16 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'formKey', 'Magento\\\\Framewo...')\n#17 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('Magento\\\\Framewo...', Array, Array)\n#18 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Framewo...', Array, Array)\n#19 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#20 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(160): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#21 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'formKeyValidato...', 'CsrfRequestVali...')\n#22 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('CsrfRequestVali...', Array, Array)\n#23 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('CsrfRequestVali...', Array, Array)\n#24 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('CsrfRequestVali...')\n#25 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(196): Magento\\Framework\\ObjectManager\\ObjectManager->get('CsrfRequestVali...')\n#26 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(172): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->parseArray(Array)\n#27 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(246): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, NULL, NULL, 'validators', 'RequestValidato...')\n#28 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('RequestValidato...', Array, Array)\n#29 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('RequestValidato...', Array, Array)\n#30 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('RequestValidato...')\n#31 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/App\/FrontController.php(71): Magento\\Framework\\ObjectManager\\ObjectManager->get('RequestValidato...')\n#32 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(14): Magento\\Framework\\App\\FrontController->__construct(Object(Magento\\Framework\\App\\RouterList), Object(Magento\\Framework\\App\\Response\\Http\\Interceptor), NULL, NULL, NULL)\n#33 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(116): Magento\\Framework\\App\\FrontController\\Interceptor->__construct(Object(Magento\\Framework\\App\\RouterList), Object(Magento\\Framework\\App\\Response\\Http\\Interceptor), NULL, NULL, NULL)\n#34 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(66): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Framewo...', Array)\n#35 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\n#36 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/App\/Http.php(134): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\n#37 \/home\/a7med\/public_html\/m2\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#38 \/home\/a7med\/public_html\/m2\/vendor\/magento\/framework\/App\/Bootstrap.php(258): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#39 \/home\/a7med\/public_html\/m2\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#40 {main}","url":"\/m2\/","script_name":"\/m2\/index.php"}

Re: Failed to set ini option session.use_only_cookies

Hi @ahmed_alhammadi 

 

Here in this case i would say , open your env.php file.

 

Find below code snippets from the env.php file

 

array (
  'save' => 'files',
),

Replace above code snippet with the below posted new one code snippets :

 

array (
  'save' => 'files',
  'save_path' => 'var/session',
),

Then check , it will works !

 

For more details, refer this link - https://magento.stackexchange.com/questions/124199/magento-2-there-has-been-an-error-processing-your...

 

Hope it helps !

 

if issue solved,Click Kudos & Accept as Solution

Re: Failed to set ini option session.use_only_cookies

Hi @ahmed_alhammadi 

 

Here in this case i would say , open your env.php file.

 

Find below code snippets from the env.php file

 

array (
  'save' => 'files',
),

Replace above code snippet with the below posted new one code snippets :

 

array (
  'save' => 'files',
  'save_path' => 'var/session',
),

Then check , it will works !

 

For more details, refer this link - https://magento.stackexchange.com/questions/124199/magento-2-there-has-been-an-error-processing-your...

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Failed to set ini option session.use_only_cookies

still same 


@Manthan Dave wrote:

Hi @ahmed_alhammadi 

 

Here in this case i would say , open your env.php file.

 

Find below code snippets from the env.php file

 

array (
  'save' => 'files',
),

Replace above code snippet with the below posted new one code snippets :

 

array (
  'save' => 'files',
  'save_path' => 'var/session',
),

Then check , it will works !

 

For more details, refer this link - https://magento.stackexchange.com/questions/124199/magento-2-there-has-been-an-error-processing-your...

 

Hope it helps !

 


 

Re: Failed to set ini option session.use_only_cookies

Hello @ahmed_alhammadi 

 

array ( 'save' => 'files', 'save_path' => '/tmp', )

Save in files and save_path in tmp directory - also not works for you ?

if issue solved,Click Kudos & Accept as Solution

Re: Failed to set ini option session.use_only_cookies

/public_html/m2/app/etc/env.php
 
/public_html/m2/dev/tests/integration/testsuite/Magento/Config/_files/env.php
 
/public_html/m2/dev/tests/integration/testsuite/Magento/Framework/Console/_files/env.php
 
/public_html/m2/update/vendor/phpunit/phpunit/tests/TextUI/phpt-env.phpt
 
/public_html/m2/update/dev/tests/integration/tmp/magento/app/etc/env.php
 
see how many file i have