help pls php 8.0 update

Look here if you're having trouble with BitShop
Post Reply
mattmorrison909
Posts: 1
Joined: Sun Apr 18, 2021 11:48 pm

help pls php 8.0 update

Post by mattmorrison909 »

with this new php update it screwed some files up can you pls help.

Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, string given in /homepages/20/d520374056/htdocs/bitshop/lib/database.lib.php:724 Stack trace: #0 /homepages/20/d520374056/htdocs/bitshop/lib/database.lib.php(724): mysqli_num_rows('N/A') #1 /homepages/20/d520374056/htdocs/bitshop/inc/admin/home.inc.php(22): total_income(30) #2 /homepages/20/d520374056/htdocs/bitshop/inc/admincon.inc.php(5): require_once('/homepages/20/d...') #3 /homepages/20/d520374056/htdocs/bitshop/inc/themes/default/body.inc.php(8): require_once('/homepages/20/d...') #4 /homepages/20/d520374056/htdocs/bitshop/inc/themes/default/index.inc.php(9): require_once('/homepages/20/d...') #5 /homepages/20/d520374056/htdocs/bitshop/inc/admin/index.inc.php(3): require_once('/homepages/20/d...') #6 /homepages/20/d520374056/htdocs/bitshop/admin.php(23): require_once('/homepages/20/d...') #7 {main} thrown in /homepages/20/d520374056/htdocs/bitshop/lib/database.lib.php on line 724

I researched it but don't under stand what to change.
User avatar
bitfreak
Site Admin
Posts: 98
Joined: Thu Dec 10, 2015 6:57 pm
Location: Australia
Contact:

Re: help pls php 8.0 update

Post by bitfreak »

I'll take a look and see if I can fix it in the next release of BitShop. Use an older version of PHP until then if possible.
Post Reply