Suddenly I have error for

Installation

Osticket 0.9.12

Centos with PHP 5.4.16 (cli) (built: Jun 23 2015 21)

Checked with file but no clue,

everything before is running fine, mysqli.ini is loaded, and web is running ok, anything that need to check?

Final-Recipient: rfc822; lewi@email

Original-Recipient: rfc822;lewi@email

Action: failed

Status: 5.3.0

Diagnostic-Code: x-unix; PHP Fatal error: Call to undefined function

mysqli_init() in /var/www/support/include/mysqli.php on line 28

# php -i |grep php.ini

Configuration File (php.ini) Path => /etc

Loaded Configuration File => /etc/php.ini

# php -i |grep mysqli

/etc/php.d/mysqli.ini,

mysqli

mysqli.allow_local_infile => On => On

mysqli.allow_persistent => On => On

mysqli.default_host => no value => no value

mysqli.default_port => 3306 => 3306

mysqli.default_pw => no value => no value

mysqli.default_socket => no value => no value

mysqli.default_user => no value => no value

mysqli.max_links => Unlimited => Unlimited

mysqli.max_persistent => Unlimited => Unlimited

mysqli.reconnect => Off => Off

mysqli_init() is a built into PHP function.If its not working then the extension is not enabled in your php.ini.Are you sure that you are looking at the right .ini file?Make a file called test.php and put this in it:<?phpinfo(); ?>put it in the webtree and broswe to it. 

<? phpinfo(); ?>

Show same info as php -i, main config /etc/php.ini and show for mysqli.ini

Pls ignored

Just reinstall php all packages, and found that suhosin installation not clean remove,

Solved now.

Thanks

If you have it installed and enabled then I have no idea why your instance of PHP wouldn't find a PHP function.What happens when you 'locate mysqli' ?

4 years later

Its been a while, but I am facing similar situation. Anyone has a solution other than re-installing all php package ?

What are the diagonostic steps to find out the real reason ?

  • RBGE replied to this.

    Killing zombie thread with a head shot.

    Write a Reply...