Jump to content
MakeWebGames

Database connection error


Samurai Legend

Recommended Posts

Hello, on my offline development environment I receive no errors. However, on my online environment it throws an error.


Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /home/shahgyzl/samuraiconflict.com/globals_nonauth.php on line 12

Fatal error: Uncaught Error: Call to undefined function mysqli_report() in /home///class/class_db_mysqli.php:18 Stack trace: #0 /home/shahgyzl//class/class_db_mysqli.php(44): database->__construct() #1 /home/shahgyzl//class/class_db_mysqli.php(100): database::getInstance() #2 /home///globals_nonauth.php(34): require('/home//...') #3 /home/shahgyzl//login.php(4): require_once('/home//...') #4 {main} thrown in /home///class/class_db_mysqli.php on line 18

 

I don't know what' the problem?

Okay, I got the second error fix however now it just shows 

 

Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /home///globals_nonauth.php on line 12

 

<?php

if (strpos($_SERVER['PHP_SELF'], "globals_nonauth.php") !== false) {
    exit;
}

session_name('MCCSID');
@session_start();
if (!isset($_SESSION['started'])) {
    session_regenerate_id(); 
    $_SESSION['started'] = true;
}
ob_start();
if (function_exists("get_magic_quotes_gpc") == false) {

    function get_magic_quotes_gpc() {
        return 0;
    }
}

 

Link to comment
Share on other sites

On 9/8/2021 at 5:49 AM, Samurai Legend said:

Hello, on my offline development environment I receive no errors. However, on my online environment it throws an error.


Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /home/shahgyzl/samuraiconflict.com/globals_nonauth.php on line 12

Fatal error: Uncaught Error: Call to undefined function mysqli_report() in /home///class/class_db_mysqli.php:18 Stack trace: #0 /home/shahgyzl//class/class_db_mysqli.php(44): database->__construct() #1 /home/shahgyzl//class/class_db_mysqli.php(100): database::getInstance() #2 /home///globals_nonauth.php(34): require('/home//...') #3 /home/shahgyzl//login.php(4): require_once('/home//...') #4 {main} thrown in /home///class/class_db_mysqli.php on line 18

 

I don't know what' the problem?

Okay, I got the second error fix however now it just shows 

 

Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /home///globals_nonauth.php on line 12

 

<?php if (strpos($_SERVER['PHP_SELF'], "globals_nonauth.php") !== false) { exit; } session_name('MCCSID'); @session_start(); if (!isset($_SESSION['started'])) { session_regenerate_id(); $_SESSION['started'] = true; } ob_start(); if (function_exists("get_magic_quotes_gpc") == false) { function get_magic_quotes_gpc() { return 0; } }

<?php

if (strpos($_SERVER['PHP_SELF'], "globals_nonauth.php") !== false) {
    exit;
}

session_name('MCCSID');
@session_start();
if (!isset($_SESSION['started'])) {
    session_regenerate_id(); 
    $_SESSION['started'] = true;
}
ob_start();
if (function_exists("get_magic_quotes_gpc") == false) {

    function get_magic_quotes_gpc() {
        return 0;
    }
}

 

why are you using Deprecated function on website --> https://www.php.net/manual/en/function.get-magic-quotes-gpc.php 

Link to comment
Share on other sites

  • 1 year later...

I keep getting this error. 

Installer Error

A critical error has occurred, and installation has stopped. Below are the details:
PHP Warning: mysql_connect(): No such file or directory (2)

Action taken: Line executed: /srv/disk22/4182841/www/demonsandangels.royalwebhosting.net/class/class_db_mysql.php:82

 

 

please help 😃

 
   
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...