AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!
I'm new to server management and setting up systems for Metin2, and I've been running into a persistent issue when trying to set up a web panel using a CMS template. Specifically, I'm encountering the following error:
Here’s the relevant part of my news.php file:
I have configured the database connection in config.php, where I've defined the settings for the game's database. However, I'm not sure if I need to create any additional databases specifically for the CMS, or if the existing game database is sufficient.
Could someone clarify if a separate database is needed for the CMS, and if so, what additional steps are required? Also, any insights on why the $db object might be null would be greatly appreciated.
Thanks in advance!
Fatal error: Uncaught Error: Call to a member function prepare() on null in /usr/local/www/apache24/data/include/classes/news.php:115
Stack trace:
#0 /usr/local/www/apache24/data/pages/news.php(53): paginate->dataview('SELECT * FROM n...', 'Are you sure?', 0, 9, 'http://ip...', 'Read more')
#1 /usr/local/www/apache24/data/index.php(249): include('/usr/local/www/...')
#2 {main} thrown in /usr/local/www/apache24/data/include/classes/news.php on line 115
Here’s the relevant part of my news.php file:
class paginate
{
private $db;
public function __construct()
{
$database = new Database();
$this->db = $database->dbConnection("", "", "", "", "yes");
}
// Other functions...
}I have configured the database connection in config.php, where I've defined the settings for the game's database. However, I'm not sure if I need to create any additional databases specifically for the CMS, or if the existing game database is sufficient.
Could someone clarify if a separate database is needed for the CMS, and if so, what additional steps are required? Also, any insights on why the $db object might be null would be greatly appreciated.
Thanks in advance!

