Skip to content
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

A PHP Error occured #4

Open
GrandM1961 opened this issue Jan 10, 2023 · 1 comment
Open

A PHP Error occured #4

GrandM1961 opened this issue Jan 10, 2023 · 1 comment

Comments

@GrandM1961
Copy link

In php 8.2 i get this error:

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated

Filename: database/DB_driver.php

Line Number: 371

Backtrace:

File: /Users/hans/Sites/CMS/application/config/config.php
Line: 536
Function: DB

File: /Users/hans/Sites/CMS/index.php
Line: 327
Function: require_once

I have checked the file in question and it says this:

public function __construct($params)
{
if (is_array($params))
{
foreach ($params as $key => $val)
{
$this->$key = $val;
}
}

	log_message('info', 'Database Driver Class Initialized');
}

$this->$key=>$val is where the php gives the error, any way how to resolve this??

@CUZAMARK
Copy link

Use php v7.4 at maximum or less than it...but not high then it, because this script only support php v7.4 at maximum...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants