Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Apr 2016
    Posts
    2
    Plugin Contributions
    0

    Default Problems with your MySQL (mysqli) support

    HI

    Trying to install Zencart onto my domain and not getting past the following.

    Any idea what to do?

    ISP / Host says that my hosting platform does support musqli


    System Inspection
    TIP: For some errors and warnings below, more information may be available by clicking on the error/warning title.
    Some problems that need fixing before we continue
    Problems with your MySQL (mysqli) support

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Problems with your MySQL (mysqli) support

    You might ask your current web-host why they've chosen not to support mysqli, given that the mysql support in PHP has been removed starting with PHP 7.0.

    It they're not bendable on that, you'll need to find a new web-host for your later-than-v1.5.2 Zen Cart.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Problems with your MySQL (mysqli) support

    Perhaps you could generate the php settings to see what is currently seen by your ZC site area.

    Create a file with a "random" name of your choosing with the extension .php and store it at a location accessible by your store's url (ie. In the root of your store) with the following contents:
    Code:
    <?php echo phpinfo(); ?>
    Then point your browser to that file, copy and paste the result then remove the file.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Apr 2016
    Posts
    2
    Plugin Contributions
    0

    Default Re: Problems with your MySQL (mysqli) support

    I have asked them and they said it is supported. Will confirm again, and that in fact my domain has feature.

    as per myphp

    Web server

    cpsrvd 11.54.0.21
    Database client version: libmysql - 5.1.73
    PHP extension: mysqli Documentation

  5. #5
    Join Date
    May 2023
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Re: Problems with your MySQL (mysqli) support

    I am also getting this error when I try to create a new install at MYDOMAIN/1.5.8 I set that folder to use PHP version: 8.2.13 whereas the root folder (which is still running Zen Cart 1.5.4) still has PHP version: 5.6.40

    in cPanel > Select PHP Version I see mysqli enabled. Running phpinfo(); in MYDOMAIN/1.5.8 throws hundreds of lines of content. The Configure Command section does have:

    Code:
    './configure' '--prefix=/usr' ... '--without-mysqli'
    I will keep exploring Stack Overflow and the PHP and MySQL documentation.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,671
    Plugin Contributions
    123

    Default Re: Problems with your MySQL (mysqli) support

    There was a time when you had to run the PHP Configuration tool in cPanel and check a box that you wanted mysqli. Perhaps your hoster has something similar.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Problems with your MySQL (mysqli) support

    Additionally, may want to consider setting up this additional store using a sub domain. The sub domain could still be in this sub directory off your main site, but the alternate php configuration may play better.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    May 2023
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Re: Problems with your MySQL (mysqli) support

    cPanel shows mysqli as enabled with the default PHP version. The host is tweaking some things and they may have a recommended fix.

    Zen Cart seems to expect that a few files like favicon.io are in specific places relative to the root.

    Creating a site in a subdomain like store.DOMAINNAME.TLD is kind of trendy.

  9. #9
    Join Date
    May 2023
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Re: Problems with your MySQL (mysqli) support

    The host seems to have set it up so that nd_mysqli overrides mysqli. "nd_pdo_mysql appears to be a custom plugable extension provided by the cPanel hosting platform in order to opt-in the MySQL Native Driver in run-time. " (Stack Overflow) Nobody on the ZC support forum seems to have had trouble with a host using nd_mysqli instead of the basic mysqli extension until now so I am talking to the host.

    The Zen Cart 1.5.4 install seems to still work with PHP 7.4 but we have not tried moving all the way to 8.2 since the language changed so much.

  10. #10
    Join Date
    May 2023
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Re: Problems with your MySQL (mysqli) support

    When we remove the .htaccess rule trying to enable a different PHP version than the server default, the errors about missing PHP extensions go away, and there is just a warning "For maximum security and compatibility you should be using PHP 8.0 or newer. " (Currently the default is PHP 7.4 so that the ZC 1.5.4 install continues to work).

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Problems with .htaccess support.
    By pixelpadre in forum General Questions
    Replies: 21
    Last Post: 22 Jun 2017, 02:57 PM
  2. v154 Need help for fix MySQL to MySQLi Error on old moudles
    By explorer1979 in forum General Questions
    Replies: 10
    Last Post: 22 Apr 2016, 02:57 AM
  3. Problems with manually upgrading MySQL 4 to MySQL 5
    By 2004g35 in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 29 Oct 2009, 02:15 AM
  4. MYSQL vs MYSQLi
    By Bad Dingo in forum Installing on a Windows Server
    Replies: 2
    Last Post: 9 Aug 2009, 03:43 AM

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