Teething Issues Upgrading to PHP 7.2 for Xenforo2

Chris Radford

Active member
Hi all,

We are trying to upgrade to PHP 7.2 however when we do, the following errors occur and website ceases to display;

Code:
Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home/onefootb/public_html/src/XF/Db/Mysqli/Adapter.php:152 Stack trace: #0 /home/onefootb/public_html/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array) #1 /home/onefootb/public_html/src/XF/Error.php(85): XF\Db\Mysqli\Adapter->getConnection() #2 /home/onefootb/public_html/src/XF/App.php(1902): XF\Error->logException(Object(Error), true, '') #3 /home/onefootb/public_html/src/XF.php(145): XF\App->logException(Object(Error), true) #4 [internal function]: XF::handleException(Object(Error)) #5 {main} thrown in /home/onefootb/public_html/src/XF/Db/Mysqli/Adapter.php on line 152

Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /home/onefootb/public_html/src/XF/Db/Mysqli/Adapter.php:152 Stack trace: #0 /home/onefootb/public_html/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array) #1 /home/onefootb/public_html/src/XF/Error.php(85): XF\Db\Mysqli\Adapter->getConnection() #2 /home/onefootb/public_html/src/XF/App.php(1902): XF\Error->logException(Object(ErrorException), false, '') #3 /home/onefootb/public_html/src/XF.php(184): XF\App->logException(Object(ErrorException)) #4 [internal function]: XF::handleFatalError() #5 {main} thrown in /home/onefootb/public_html/src/XF/Db/Mysqli/Adapter.php on line 152

Can anyone shed some light on what these errors mean?

Thank you.
 
Website now appears to be operating largely OK- however, on thread view page loads we are hit with this;

Code:
An exception occurred: [Error] Call to undefined function Symfony\Polyfill\Mbstring\iconv_substr() in src/vendor/symfony/polyfill-mbstring/Mbstring.php on line 558

[LIST=1]
[*]Symfony\Polyfill\Mbstring\Mbstring::mb_substr() in src/vendor/symfony/polyfill-mbstring/bootstrap.php at line 38
[*]mb_substr() in src/vendor/dokuwiki/utf8/utf8.php at line 163
[*]utf8_substr() in src/XF/Str/Formatter.php at line 474
[*]XF\Str\Formatter->wholeWordTrim() in src/XF/Str/Formatter.php at line 735
[*]XF\Str\Formatter->snippetString() in src/XF/Template/Templater.php at line 2910
[*]XF\Template\Templater->fnSnippet()
[*]call_user_func_array() in src/XF/Template/Templater.php at line 879
[*]XF\Template\Templater->fn() in internal_data/code_cache/templates/l1/s15/public/metadata_macros.php at line 140
[*]XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 661
[*]XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l1/s15/public/metadata_macros.php at line 42
[*]XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 661
[*]XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l1/s15/public/thread_view.php at line 138
[*]XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1248
[*]XF\Template\Templater->renderTemplate() in src/XF/Template/Template.php at line 24
[*]XF\Template\Template->render() in src/XF/Mvc/Renderer/Html.php at line 48
[*]XF\Mvc\Renderer\Html->renderView() in src/XF/Mvc/Dispatcher.php at line 332
[*]XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 303
[*]XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 44
[*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1891
[*]XF\App->run() in src/XF.php at line 328
[*]XF::runApp() in index.php at line 13
[/LIST]
 
XF 2.0 requirements
The requirements for running XF 2.0 have changed since XF 1.5. The recommended requirements are as follows:

  • PHP: 5.4.0+
  • MySQL: 5.5+
  • PHP extensions: MySQLi, GD (with JPEG support), PCRE, SPL, SimpleXML, DOM, JSON, iconv, ctype, cURL
----

You need iconv i think.
 
Back
Top Bottom