[HELP] Revcms errors, line errors .....
Hello ragezone,
I have this error that i get an error in my cms, the line is:
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\xampp\htdocs\app\class.engine.php on line 48
Here is an image: http://prntscr.com/3mll1w
Please help me fix it, i have tried // behind the line but more erros just occur then, help pls :(
Re: [HELP] Revcms errors, line errors .....
Use a '@' to disable the error
@Mysql_pconnect
Its not right, but it will work xD
Re: [HELP] Revcms errors, line errors .....
Quote:
Originally Posted by
Jeanzinh0
Use a '@' to disable the error
@
Mysql_pconnect
Its not right, but it will work xD
WHere do i put the @ ?
Re: [HELP] Revcms errors, line errors .....
In front of mysql_pconnect
Example:
PHP Code:
@mysql_pconnect("something here");
Re: [HELP] Revcms errors, line errors .....
Quote:
Originally Posted by
Jeanzinh0
In front of mysql_pconnect
Example:
PHP Code:
@mysql_pconnect("something here");
This is my config.php line:
$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
And this is the line where the error is:
$this->connection = $this->mysql[$type]($_CONFIG['mysql']['hostname'], $_CONFIG['mysql']['username'], $_CONFIG['mysql']['password']);
Re: [HELP] Revcms errors, line errors .....
Try it
PHP Code:
$this->connection = @$this->mysql[$type]($_CONFIG['mysql']['hostname'], $_CONFIG['mysql']['username'], $_CONFIG['mysql']['password']);
Re: [HELP] Revcms errors, line errors .....
Quote:
Originally Posted by
Jeanzinh0
Try it
PHP Code:
$this->connection = @$this->mysql[$type]($_CONFIG['mysql']['hostname'], $_CONFIG['mysql']['username'], $_CONFIG['mysql']['password']);
I only get this error :
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in C:\xampp\htdocs\app\class.engine.php on line 48
Re: [HELP] Revcms errors, line errors .....
Place the original code and try to use error_reporting(0);
Re: [HELP] Revcms errors, line errors .....
It tells its deprecated. Either upgrade it to MySQLi or PDO.
If you really don't give a fuck then add this to your index page:
Code:
error_reporting(0);
Re: [HELP] Revcms errors, line errors .....
Quote:
Originally Posted by
The General
It tells its deprecated. Either upgrade it to MySQLi or PDO.
If you really don't give a fuck then add this to your index page:
Code:
error_reporting(0);
I try but it still dosent't work! Here is the index.php:
Code:
<?php
error_reporting(0);
define('IN_INDEX', 1);
require_once 'global.php';
$core->handleCall($engine->secure($_GET['url']));
$template->html->get($engine->secure($_GET['url']));
$template->outputTPL();
?>
Re: [HELP] Revcms errors, line errors .....
There is probably another error_reporting called after it. Probably somewhere in global.php.
Just upgrade it to MySQLi (which isn't that hard to do) or downgrade your PHP (Highly not recommended)