Topic: Errors with php 8.0
Hello, when i try php 8.0 (beta) with my host (to check if PunBB could work in the future with php version after 7.4), forum list, forums with list of topics display well, but when i click on a topic or a post, it crashes, it doesn't display, only i have errors messages.
Clicking on a post i get this error :
Fatal error: Uncaught TypeError: mysqli_free_result(): Argument #1 ($result) must be of type mysqli_result, bool given in /homepages/3/d530603777/htdocs/zeforums.com/include/dblayer/mysqli.php:246 Stack trace: #0 /homepages/3/d530603777/htdocs/zeforums.com/include/dblayer/mysqli.php(246): mysqli_free_result(true) #1 /homepages/3/d530603777/htdocs/zeforums.com/footer.php(130): DBLayer->close() #2 /homepages/3/d530603777/htdocs/zeforums.com/viewtopic.php(703): require('/homepages/3/d5...') #3 /homepages/3/d530603777/htdocs/zeforums.com/rewrite.php(93): require('/homepages/3/d5...') #4 {main} thrown in /homepages/3/d530603777/htdocs/zeforums.com/include/dblayer/mysqli.php on line 246
On a topic, same type of error :
Fatal error: Uncaught TypeError: mysqli_free_result(): Argument #1 ($result) must be of type mysqli_result, bool given in /homepages/3/d530603777/htdocs/zeforums.com/include/dblayer/mysqli.php:246 Stack trace: #0 /homepages/3/d530603777/htdocs/zeforums.com/include/dblayer/mysqli.php(246): mysqli_free_result(true) #1 /homepages/3/d530603777/htdocs/zeforums.com/footer.php(130): DBLayer->close() #2 /homepages/3/d530603777/htdocs/zeforums.com/viewtopic.php(703): require('/homepages/3/d5...') #3 /homepages/3/d530603777/htdocs/zeforums.com/rewrite.php(93): require('/homepages/3/d5...') #4 {main} thrown in /homepages/3/d530603777/htdocs/zeforums.com/include/dblayer/mysqli.php on line 246
Line 246 in include/dblayer/mysqli.php says :
@mysqli_free_result($this->query_result);
I use Visman punbb version, the last one, so it's the more updated version we can have of PunBB (compatible with php 7.4), that includes some fix for php 8 : https://punbb.informer.com/forums/post/158469/#p158469
Any way to fix this?
Thanks,
Pierre