XF 2.2 Errors after transitioning from PHP7 to PHP8


Active member
Please help
Hundreds or thousands of errors per second.


Server error log
[*]ErrorException: Template error: [E_WARNING] Trying to access array offset on null
[*]Generated by: Unknown account
[*]11.02.2024 at 15:11
[HEADING=2]Stack trace[/HEADING]
#0 internal_data/code_cache/templates/l2/s2/public/PAGE_CONTAINER.php(199): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Try...', '/home/site/www2...', 199)
#1 src/XF/Template/Templater.php(827): XF\Template\Templater->{closure}(Object(DigitalPoint\Cloudflare\XF\Template\Templater), Array, NULL)
#2 internal_data/code_cache/templates/l2/s2/public/PAGE_CONTAINER.php(1354): XF\Template\Templater->callMacro('PAGE_CONTAINER', 'breadcrumbs', Array, Array)
#3 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(DigitalPoint\Cloudflare\XF\Template\Templater), Array, NULL)
#4 src/XF/Pub/App.php(565): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#5 src/XF/App.php(2285): XF\Pub\App->renderPageHtml('

<div class="b...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#6 src/XF/Mvc/Dispatcher.php(404): XF\App->renderPage('

<div class="b...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#8 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(28) "/members/alla21.577267/about"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  ["_POST"] => array(0) {

XenForo 2.2.13

PHP version    8.3.2-1+0~20240120.16+debian11~1.gbpb43448
MySQL version    5.7.42 (5.7.42-log)
Server software    Apache/2.4.56
PHP memory_limit    4096M
PHP post_max_size    8M
PHP upload_max_filesize    64M
PHP max_input_vars    1000
PHP max_execution_time    3600
cURL version    7.74.0
cURL SSL version    OpenSSL/1.1.1w
OpenSSL version    OpenSSL 1.1.1w 11 Sep 2023
Suhosin enabled    No
Imagick support    Yes
EXIF support    Yes
GZip support    Yes
mbstring support    Yes
gmp support    Yes
ZipArchive support    Yes
Last edited:
XF isn't compatible with PHP 8.3.x yet; downgrade to PHP 8.2.x.
Thank You!

I found patch

Errors have ceased
I'm on Cloud and have been upgraded to 8.2.15, so I strongly suggest that you install the same version for trouble-free operation.

Tagging @Chris D in case there's anything more to add.
Top Bottom