Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    166
    Plugin Contributions
    0

    Default error: Call to undefined function: mysql_connect(). Please install the MySQL Connecto

    Zen Version : 154
    PHP Version: 5.3

    A few days back, the server updated the PHP to version 7.1
    Since then the site is showing this error:
    Call to undefined function: mysql_connect(). Please install the MySQL Connector for PHP

    I cannot access the backend also.
    Please suggest a solution.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: error: Call to undefined function: mysql_connect(). Please install the MySQL Conn

    Upgrade ZC version. As a temporary measure (though may be hard to encourage them to do this at this point) is to downgrade the php version while working the upgrade.

    Sorry, still don't have the updated link bookmarked, but the "old" bookmark for doing an upgrade by rebuild is: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: error: Call to undefined function: mysql_connect(). Please install the MySQL Conn

    You could also go through your code and find out where mysql_connect is being called.
    Back in Zen Cart version 1.5.2 it was all changed to
    mysqli_connect (note the "i"). So if you're using 1.5.4 then likely you've got customizations or plugins that are doing their own thing instead of leveraging Zen Cart's database access. Maybe removing/disabling those things might give you relief.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v155 Call to undefined function: mysqli_connect(). Please install the MySQL Connector for
    By wvmarle in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 30 Apr 2020, 04:48 PM
  2. Replies: 4
    Last Post: 3 Sep 2018, 05:42 PM
  3. v154 Call to undefined function: mysqli_connect(). Please install the MySQL Connector
    By Jeff_Mash in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 2 Dec 2016, 12:02 AM
  4. v153 Call to undefined function: mysqli_connect(). Please install the MySQL Connector for
    By nigelt74 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 14 Oct 2014, 07:36 AM
  5. Replies: 1
    Last Post: 8 May 2010, 04:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR