[HELP] Revcms errors, line errors .....

Results 1 to 11 of 11
  1. #1
    Member Are Ferkingstad is offline
    MemberRank
    Nov 2012 Join Date
    NorwayLocation
    49Posts

    [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 :(


  2. #2
    Elite Member Jeanzinh0 is offline
    Member +Rank
    May 2009 Join Date
    BrazilLocation
    175Posts

    Re: [HELP] Revcms errors, line errors .....

    Use a '@' to disable the error
    @Mysql_pconnect

    Its not right, but it will work xD

  3. #3
    Member Are Ferkingstad is offline
    MemberRank
    Nov 2012 Join Date
    NorwayLocation
    49Posts

    Re: [HELP] Revcms errors, line errors .....

    Quote Originally Posted by Jeanzinh0 View Post
    Use a '@' to disable the error
    @Mysql_pconnect

    Its not right, but it will work xD
    WHere do i put the @ ?

  4. #4
    Elite Member Jeanzinh0 is offline
    Member +Rank
    May 2009 Join Date
    BrazilLocation
    175Posts

    Re: [HELP] Revcms errors, line errors .....

    In front of mysql_pconnect

    Example:
    PHP Code:
    @mysql_pconnect("something here"); 

  5. #5
    Member Are Ferkingstad is offline
    MemberRank
    Nov 2012 Join Date
    NorwayLocation
    49Posts

    Re: [HELP] Revcms errors, line errors .....

    Quote Originally Posted by Jeanzinh0 View Post
    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']);

  6. #6
    Elite Member Jeanzinh0 is offline
    Member +Rank
    May 2009 Join Date
    BrazilLocation
    175Posts

    Re: [HELP] Revcms errors, line errors .....

    Try it
    PHP Code:
    $this->connection = @$this->mysql[$type]($_CONFIG['mysql']['hostname'], $_CONFIG['mysql']['username'], $_CONFIG['mysql']['password']); 

  7. #7
    Member Are Ferkingstad is offline
    MemberRank
    Nov 2012 Join Date
    NorwayLocation
    49Posts

    Re: [HELP] Revcms errors, line errors .....

    Quote Originally Posted by Jeanzinh0 View Post
    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

  8. #8
    Elite Member Jeanzinh0 is offline
    Member +Rank
    May 2009 Join Date
    BrazilLocation
    175Posts

    Re: [HELP] Revcms errors, line errors .....

    Place the original code and try to use error_reporting(0);

  9. #9
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    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);

  10. #10
    Member Are Ferkingstad is offline
    MemberRank
    Nov 2012 Join Date
    NorwayLocation
    49Posts

    Re: [HELP] Revcms errors, line errors .....

    Quote Originally Posted by The General View Post
    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();
    ?>

  11. #11
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    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)



Advertisement