PHP Issue.

Results 1 to 7 of 7
  1. #1
    Apprentice Damientju is offline
    MemberRank
    Aug 2017 Join Date
    6Posts

    PHP Issue.

    When I try to connect to my vps, it's giving me this error:

    Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in C:\xampp\htdocs\app\class.engine.php:48 Stack trace: #0 C:\xampp\htdocs\app\class.engine.php(31): Revolution\engine->connect('pconnect') #1 C:\xampp\htdocs\global.php(109): Revolution\engine->Initiate() #2 C:\xampp\htdocs\index.php(4): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\app\class.engine.php on line 48

    Anyone know what to do?


  2. #2
    Apprentice inbt is offline
    MemberRank
    Jul 2017 Join Date
    14Posts

    Re: PHP Issue.

    What version of XAMPP are you running?

  3. #3
    Apprentice Damientju is offline
    MemberRank
    Aug 2017 Join Date
    6Posts

    Re: PHP Issue.

    I a running v3.2.2

  4. #4
    Apprentice inbt is offline
    MemberRank
    Jul 2017 Join Date
    14Posts

    Re: PHP Issue.

    I believe that's using PHP5.5.X in which mysql_ is deprecated in favour of mysqli_, to test if that's the reason you could use an older XAMPP version (1.8.2-6), or more preferably use a CMS that utilises mysqli_ and is designed for PHP7.X.

    While okay for testing, I wouldn't recommend using XAMPP or an outdated version of PHP for a live hotel.

  5. #5
    ◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜ Taiga is offline
    DeveloperRank
    May 2007 Join Date
    InternetLocation
    2,464Posts

    Re: PHP Issue.

    Quote Originally Posted by inbt View Post
    I believe that's using PHP5.5.X in which mysql_ is deprecated in favour of mysqli_, to test if that's the reason you could use an older XAMPP version (1.8.2-6), or more preferably use a CMS that utilises mysqli_ and is designed for PHP7.X.
    He should let us know which CMS he is using.

    Here is a correction
    mysql_ is old and insecure and was deprecated in 5 and eventually removed in 7+.
    mysqli_ is the replacement for it not designed for 7.X

  6. #6
    Apprentice inbt is offline
    MemberRank
    Jul 2017 Join Date
    14Posts

    Re: PHP Issue.

    Quote Originally Posted by Taiga View Post
    He should let us know which CMS he is using.Here is a correctionmysql_ is old and insecure and was deprecated in 5 and eventually removed in 7+.mysqli_ is the replacement for it not designed for 7.X
    Yes, my bad I was missing a comma, I meant a CMS designed to run on >=7.
    Based on the folder name 'Revolution' in the error it seems he's using RevCMS.


    Edit: @Damientju Another user in this forum had the same problem - http://forum.ragezone.com/f333/error-revcms-1100153/ - and it was resolved by using XAMPP 1.7.3.

  7. #7
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: PHP Issue.

    I'd suggest not using XAMPP in a live environment in the first place.



Advertisement