Php error

A PHP Error was encountered
Severity: Warning

Message: mysqli::real_connect(): MySQL server has gone away

Filename: mysqli/mysqli_driver.php

Line Number: 201

Backtrace:

File: /home/vol10_1/epizy.com/epiz_22452845/htdocs/application/core/MY_Controller.php
Line: 8
Function: __construct

File: /home/vol10_1/epizy.com/epiz_22452845/htdocs/application/controllers/Home.php
Line: 25
Function: __construct

File: /home/vol10_1/epizy.com/epiz_22452845/htdocs/index.php
Line: 315
Function: require_once

Please

I can’t say for certain without having to extensively digging through your code (that’s your responsibility), but it looks like your code might have already closed the database connection by the time you want to do any queries. Here is a topic from the CodeIgniter forums about this: CI_DB_driver Bug?

I still get the error

@Ceyandme said:
I still get the error

What did you actually change that didn’t help? I want to help you, but it would help a lot if you could write a full message, not just a few words.