You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Home controller includes the following code snippet:
public function index()
{
$session = session();
$data = [];
// Check for post
if ($this->request->getMethod() === 'post') {
// Validate the user input
if (!($this->validate([
'cmsuserEmail' => ['label' => 'E-Mail', 'rules' => 'required|min_length[6]|max_length[50]|valid_email'],
'cmsuserPassword' => ['label' => 'Κωδικός πρόσβασης', 'rules' => 'required|min_length[8]|max_length[255]'],
]))) {
// Validation has failed, redirect the user back
return redirect()->to(base_url() . '/Backend/Home/index')->withInput();
}
$model = new CmsuserModel();
$user = $model->where('cmsuserEmail', $this->request->getPost('cmsuserEmail'))->first();
// If I try to var_dump user, var_dump is not displayed, if I print string "Debug" and die() one line above, string is printed.
We use GitHub issues to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.
PHP Version
8.0
CodeIgniter4 Version
4.1.5
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
No response
What happened?
I have a CodeIgniter project (version 4.1.5) installed with Composer and running on PHP 8.0.12.
Whenever I attempt to interact with the database, I encounter an Internal Server Error 500, and the logged message reads as follows:
The Home controller includes the following code snippet:
Steps to Reproduce
Also this https://preprocessor.space/questions/constant-mysqlistoreresult-is-not-defined-in-the-codeigniter-4-project-causing-an-error-in-the-mysqli-database
Expected Output
Does anyone know why this error is occurring? Do I need to define the constant MYSQLI_STORE_RESULT somewhere specific?
Anything else?
No response
The text was updated successfully, but these errors were encountered: