XF 2.2 Error in PhpStorm terminal building addon

LPH

Well-known member
The following error happens in PhpStorm terminal when attempting to build an addon.

Code:
Fatal error: Uncaught Error: Call to undefined function mysqli_report() in C:\MAMP\htdocs\community\src\XF.php:113
Stack trace:
#0 C:\MAMP\htdocs\community\src\XF.php(75): XF::standardizeEnvironment()
#1 C:\MAMP\htdocs\community\cmd.php(12): XF::start('C:\\MAMP\\htdocs\\...')
#2 {main}
  thrown in C:\MAMP\htdocs\community\src\XF.php on line 113

Line 113 is a conditional.

PHP:
        if (PHP_VERSION_ID >= 80100)
        {
            mysqli_report(MYSQLI_REPORT_OFF);
        }

I've switched off of 8.1 and back to 7.4.16, restarted the server, IDE, and the error continues.

Does anyone have any other suggestions?
 

LPH

Well-known member
This was the solution, in case someone else runs into this problem.

MAMP Pro php.ini had the mysqli driver commented. I uncommented it and restarted the server. However, this didn't work. It took a complete reboot of the machine and now the add on rebuilt properly under 7.4.16.
 
Top