-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem: #3686
Comments
|
|
It seems your code in BaseController is throwing errors when setting the session path. Can you paste the contents of your BaseController? |
`<?php /**
use CodeIgniter\Controller; class BaseController extends Controller
} |
I guess these line:
I don't know what's in it. |
From your answer I see you upgraded to 4.0.4 from lower version, so you don't have a check against It's either the wrong I will close this since the problem occurs only on your production server, but if none of the suggestions solve the problem, please feel free to continue the conversation. |
i face error when i deploy CodeIgniter 4 project on hosting
CRITICAL - 2020-09-26 07:18:24 --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
#0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'ini_set(): Head...', '/home/p...', 43, Array)
#1 /home/mlnacta/public_html/habib_site/app/Controllers/BaseController.php(43): ini_set('session.save_pa...', '')
#2 /home/mlnacta/public_html/habib_site/vendor/codeigniter4/framework/system/CodeIgniter.php(891): App\Controllers\BaseController->initController(Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response), Object(CodeIgniter\Log\Logger))
#3 /home/mlnacta/public_html/habib_site/vendor/codeigniter4/framework/system/CodeIgniter.php(399): CodeIgniter\CodeIgniter->createController()
#4 /home/mlnacta/public_html/habib_site/vendor/codeigniter4/framework/system/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#5 /home/mlnacta/public_html/habib_site/index.php(44): CodeIgniter\CodeIgniter->run()
#6 {main}
CRITICAL - 2020-09-26 07:18:24 --> Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at /home/mlnacta/public_html/habib_site/app/Config/Events.php:27) in /home/mlnacta/public_html/habib_site/vendor/codeigniter4/framework/system/Debug/Exceptions.php:164
Stack trace:
#0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', '/home/p...', 164, Array)
#1 /home/mlnacta/public_html/habib_site/vendor/codeigniter4/framework/system/Debug/Exceptions.php(164): header('HTTP/1.1 500 In...', true, 500)
#2 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException))
#3 {main}
thrown
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}
The text was updated successfully, but these errors were encountered: