Samurai Legend Posted September 8, 2021 Posted September 8, 2021 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; } } Quote
gamble Posted September 9, 2021 Posted September 9, 2021 (edited) ob_start() At line 2 of file (right after the php opening brackets) Should fix it. If not move session_start() to line 2 of file Edited September 9, 2021 by gamble Quote
Magictallguy Posted September 9, 2021 Posted September 9, 2021 Remove the error suppressant from the session_start() call and get the information you need Quote
Samurai Legend Posted September 12, 2021 Author Posted September 12, 2021 Error fix, there was an error with the cPanel. There was no issue with the files. Thank you all! Quote
rockwood Posted September 16, 2021 Posted September 16, 2021 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 Quote
Oracle Posted September 25, 2022 Posted September 25, 2022 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 😃 Quote
AdamHull Posted September 25, 2022 Posted September 25, 2022 Message me with that line of code that it says and I will have a look for you Quote
Veramys Posted September 26, 2022 Posted September 26, 2022 mysql_connect was deprecated as of php 5.5 and was removed as of PHP 7. You need to switch to mysqli. Quote
Magictallguy Posted September 26, 2022 Posted September 26, 2022 PHP versions! mysql_* functions were deprecated and removed. Use the mysqli_* functions - so, for you, alter your config.php and change "mysql" to "mysqli" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.