I recently upgraded Nuke Sentinel to 2.2.1 and BBtoNuke 2.0.15, and now when I try to access my admin panel I get these errors:
Code:
Warning: main(db/mysql.php): failed to open stream: No such file or directory in /home/meuonet/public_html/db/db.php on line 67
Warning: main(): Failed opening 'db/mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/meuonet/public_html/db/db.php on line 67
Fatal error: Cannot instantiate non-existent class: sql_db in /home/meuonet/public_html/db/db.php on line 100
I'm using Platinum Nuke 7.6.0 but it seems like techgfx is down atm. mysql.php does exist in the db folder. My suspicion is that there is an error here:
The reason of why you must change in the above way is that 7.7+ does not use $forum_admin variable anymore. Instread, it defines a macro.
So, if you have old version of BB2Nuke (less than 2.0.15), then you will find no $forum_admin. This is another disaster to those BB2Nuke users who installed old versions of ported MODs. For instance, phpnuke variants (such as platinum) includes old versions of ported MODs and $forum_admin, then it doesn't work with BB2Nuke2.0.15 anymore.
So, is there another way to work with BB2Nuke 2.0.15? Yes, there is. Open your common.php file and add $admin_forum = 1. But this is not good idea to keep phpbb2 security (not php-nuke security). This will make your old ported MODs working, though.
I'm running PHP-Nuke 7.6 and BBtoNuke 2.0.17, and I'm getting this same error. I tried swapping out the code in db.php as instructed above, and it just created more errors because my copy of common.php still includes the old references to
Code:
if ($forum_admin == 1)
I thought I had swapped for the newer patched files as I went through the upgrades from 2.14 onward, but maybe not. Is it feasible to just replace the current Forum directory with a newer version of all the BBtoNuke files, or will the forum no longer work with 7.6 at that point?
Would it be better to use Xyberian's trick in the common.php page? I don't have any mods to the forum, unless you count a slightly reworked theme.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum