Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2016
    Location
    Guangzhou
    Posts
    11
    Plugin Contributions
    0

    Default Call to undefined function: mysqli_connect(). Please install the MySQL Connector for

    hello
    I used godaddy vps with cPanel,just installed zen cart 1.54 by cPanel software,after finished,can't open admin area and the website,this is the website:http://shop-abc.com/,appear error:
    Call to undefined function: mysqli_connect(). Please install the MySQL Connector for
    PHP 5.5.35
    Mysql 5.6.30
    Apache 2.4.18
    Zencart v1.5.4
    cPanel easy Apache v3.32.13
    I attached the image,could you help?fix the question,
    thanks
    Click image for larger version. 

Name:	zencart1.54.jpg 
Views:	239 
Size:	29.1 KB 
ID:	16723
    Last edited by andybags; 10 Oct 2016 at 03:46 AM.

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

    Default Re: Call to undefined function: mysqli_connect(). Please install the MySQL Connector

    Don't know if able to execute, but would suggest posting the first third or so of the results from the following:

    Create a file that echo's the phpinfo() such as:

    Filename.php
    Code:
    <?php echo phpinfo();
    Seems like would be wanting to see the configuration(s) for your mysql portion of the system.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2016
    Location
    Guangzhou
    Posts
    11
    Plugin Contributions
    0

    Default Re: Call to undefined function: mysqli_connect(). Please install the MySQL Connector

    thank you,I created,the file is http://www.shop-abc.com/2.php

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Call to undefined function: mysqli_connect(). Please install the MySQL Connector

    Would say that some of the pertinent data is the following:
    Code:
    PHP Version 5.5.35
    
    
    System	Linux s166-62-93-48.secureserver.net 2.6.32-042stab093.4 #1 SMP Mon Aug 11 18:47:39 MSK 2014 x86_64
    Build Date	May 10 2016 09:36:30
    Configure Command	 './configure' '--disable-fileinfo' '--disable-opcache' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
    Server API	CGI/FastCGI
    Virtual Directory Support	disabled
    Configuration File (php.ini) Path	/usr/local/lib
    Loaded Configuration File	/usr/local/lib/php.ini
    Scan this dir for additional .ini files	(none)
    Additional .ini files parsed	(none)
    PHP API	20121113
    PHP Extension	20121212
    Zend Extension	220121212
    Zend Extension Build	API220121212,NTS
    PHP Extension Build	API20121212,NTS
    Debug Build	no
    Thread Safety	disabled
    Zend Signal Handling	disabled
    Zend Memory Manager	enabled
    Zend Multibyte Support	disabled
    IPv6 Support	enabled
    DTrace Support	disabled
    Registered PHP Streams	https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar
    Registered Stream Socket Transports	tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters	zlib.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
    And the fact that mysqli_ is not addressed, activated, or enabled. There are some "credits" for mysqli, but that's not enough for the code to operate. Don't know who owns or operates the server, but need to enable mysqli for it. There should be a list of minimum server capabilities on the main page of this site as well as feedback from the zc installer for installing ZC and specifically related to this issue...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Sep 2016
    Location
    Guangzhou
    Posts
    11
    Plugin Contributions
    0

    Default Re: Call to undefined function: mysqli_connect(). Please install the MySQL Connector

    I find out it's same question:MySQL Support = OFF
    I rebuild Easy Apache and choose Mysql "Improved" extension,it can visit the website,but can't visit admin,it appeared:Click image for larger version. 

Name:	mysql improved.jpg 
Views:	192 
Size:	57.0 KB 
ID:	16725
    WARNING: An Error occurred, please refresh the page and try again.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Call to undefined function: mysqli_connect(). Please install the MySQL Connector

    Two things to help see your way through: one because of the blank page/sql error: http://www.zen-cart.com/content.php?124-blank-page

    The other because of the known bugs with installing ZC 1.5.4 instead of the latest ZC 1.5.5: http://www.zen-cart.com/showthread.p...s)-with-v1-5-4
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Sep 2016
    Location
    Guangzhou
    Posts
    11
    Plugin Contributions
    0

    Default Re: Call to undefined function: mysqli_connect(). Please install the MySQL Connector

    my log file:
    myDEBUG-adm-1476121377-944591.log
    ASCII text, with very long lines
    [10-Oct-2016 12:42:57 America/Chicago] PHP Fatal error: 1101:BLOB/TEXT column 'logmessage' can't have a default value :: ALTER TABLE zc_admin_activity_log ADD COLUMN logmessage mediumtext NOT NULL default '' ==> (as called by) /home/shopabc/public_html/r1j6ez0lqv0ku0rd/includes/classes/class.admin.zcObserverLogWriterDatabase.php on line 90 <== in /home/shopabc/public_html/includes/classes/mysql/query_factory.php on line 155

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

    Default Re: Call to undefined function: mysqli_connect(). Please install the MySQL Connector

    Already answered that question in your other thread: https://www.zen-cart.com/showthread....70#post1319770

    You REALLY should use v1.5.5 instead.
    .

    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. 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
  2. v138a error on very end of the checkout process - Call to undefined function zen_catalog_h
    By tomphillipspcs in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 16 Aug 2012, 02:30 PM
  3. Replies: 4
    Last Post: 9 Mar 2011, 02:07 PM
  4. Replies: 1
    Last Post: 8 May 2010, 04:43 PM
  5. Replies: 0
    Last Post: 24 Dec 2008, 01:13 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