Support Toolkit

Fatal error: Uncaught Error: Class 'critical_repair' not fou - Support Toolkit

Fatal error: Uncaught Error: Class 'critical_repair' not fou

by DerGolgo » Wed Nov 27, 2019 12:24 am

Okay, I hope I found the right template there.
What version of phpBB are you using? phpBB 3.0.14
What is your board's URL? http://n/a
Who do you host your board with? presently hosting on my home computer via XAMPP
How did you install your board? Downloaded all files via FTP, backed up database in ACP and imported this to the local instance via MySQL-Workbench.
What is the most recent action performed on your board? Removed all styles except Prosilver
Is registration required to reproduce this issue? No
Do you have any MODs installed? Yes
What styles do you currently have installed? Prosilver
What language(s) is your board currently using? English US
Which database type/version are you using? MySQL(i) 5.7.24-0ubuntu0.18.04.1-log
Version of PHP using? 7.3.11
What is your level of experience? Most things I do are trial-and-error.
When did your problem begin? Installing STK.
Please describe your problem.

I run a forum, and the update form 3.0.14 to 3.2 is obviously way overdue. To test any changes I'd make, as a dry run and to reveal problems, I've set up a duplicate forum on my home computer.
I downloaded all the files that go with the website, I made a backup of the forum database, and restored from this to the MySQL server running on XAMPP (restored via MySQL Workbench). The duplicate forum is running on Apache in XAMPP, obviously.
Initially, I could only get the error messages

General Error
SQL ERROR [ mysql4 ]
mysql_connect function does not exist, is mysql extension installed? []


This was resolved by changing "$dbms" from "mysql" to "mysqli" in config.php.

I then began implementing the steps outline in the Upgrade Guide for 3.0 to 3.2. As part of which I intended to clean up the database using STK, as was recommended.
I downloaded STK 1.0.7-PL3 and followed the steps outline in the install.txt file.

Once I try pointing my browser at the stk folder, as is suggested in install.txt, or at any files therein, I only get the following error message:
Fatal error: Uncaught Error: Class 'critical_repair' not found in J:\Forum\pub\stk\includes\functions.php:659 Stack trace: #0 J:\Forum\pub\stk\common.php(43): stk_msg_handler(2, '"continue" targ...', 'J:\\Forum\\pub\\um...', 2926, Array) #1 J:\Forum\pub\stk\common.php(43): require() #2 J:\Forum\pub\stk\index.php(18): require('J:\\Forum\\pub\\st...') #3 {main} thrown in J:\Forum\pub\stk\includes\functions.php on line 659

I suspected it might be related to the PHP version, as I recalled seeing a warning for 3.2 indicating that PHP version should be smaller than 7.13.
I downloaded PHP 7.2.25, and attempted to install this. Any variation I tried there, either replacing the php subfolder in the XAMPP folder, or attempting to change the directory that httpd-xampp.conf points to, I'm back to that General Error about mysql_connect. This time, neither mysql nor mysqli for $dbms affect anything, I can only get that General Error.

I am utterly stumped, and I will greatly appreciate any assistance in getting STK to run. Any suggestions about downgrading PHP would also be appreciated, even if this is unrelated to my STK woes.
DerGolgo
Registered User
Posts: 78
Joined: Tue Oct 22, 2013 10:25 am

Re: Fatal error: Uncaught Error: Class 'critical_repair' not

by 3Di » Wed Nov 27, 2019 10:19 am

Use max. PHP 5.6.40 with the STK.

You can use it also with phpBB 3.2.x BTW.
๐Ÿ†“ Free support for our extensions also provided here: phpBB Studio
๐Ÿš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity ยบ PhpStorm's proud user ยบ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: Fatal error: Uncaught Error: Class 'critical_repair' not

by DerGolgo » Thu Nov 28, 2019 1:48 pm

3Di wrote:Use max. PHP 5.6.40 with the STK.
Thank you. I've found a workaround (I think), but I've run into another problem using STK, so I'll be looking into downgrading PHP.
3Di wrote:You can use it also with phpBB 3.2.x BTW.
Updating to 3.2 is the entire reason I'm trying to use STK.
DerGolgo
Registered User
Posts: 78
Joined: Tue Oct 22, 2013 10:25 am

Re: Fatal error: Uncaught Error: Class 'critical_repair' not

by DerGolgo » Mon Dec 09, 2019 5:14 pm

I've basically managed to get it done. By just properly clicking "continue" or whatever until the STK was actually done. Updated to 3.1, and then to 3.2, and I'm happy.
How to I mark this solved?
DerGolgo
Registered User
Posts: 78
Joined: Tue Oct 22, 2013 10:25 am