easycryptos / CMS-blog

CMS blog is a multi-purpose blog-magazine script 100% customizable. It has clean, responsive and user-friendly design. You can manage your posts, custom pages, categories, user comments, advanced settings and contact messages with its powerful Admin panel. Also it has a useful ad management system. You can manage your ad spaces with this system. It is secure, SEO optimized, fast and easy to use.
http://demo.easycryptos.org
BSD 3-Clause "New" or "Revised" License
18 stars 9 forks source link

A PHP Error occured #4

Open GrandM1961 opened 1 year ago

GrandM1961 commented 1 year ago

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 commented 2 weeks ago

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...