Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Anarchy on May 19, 2024, 06:57:49 PM

Title: SMF 2.0.x to 2.1.4 upgrade failed at Converting to UTF-8
Post by: Anarchy on May 19, 2024, 06:57:49 PM
Everything went well until "Current Table: "log_search_subjects"". I tried over CLI and got error at the same table.

Converting table smf_log_search_subjects to UTF-8...PHP Fatal error:  Uncaught Error: Call to undefined function allowedTo() in /forum/Sources/Subs-Db-mysql.php:708

I have php 7.3. Is that the reason? Do I need to upgrade to 8.3?

Title: Re: SMF 2.0.x to 2.1.4 upgrade failed at Converting to UTF-8
Post by: Kindred on May 19, 2024, 08:16:53 PM
Php 8.0, 8.1 or 8.2

8.3 is not supported yet
Title: Re: SMF 2.0.x to 2.1.4 upgrade failed at Converting to UTF-8
Post by: grega on May 20, 2024, 02:49:07 AM
Just to try something out, what happens if you modify Subs-Db-mysql.php and add

require_once($sourcedir . '/Security.php');

In the line 705 ?
Title: Re: SMF 2.0.x to 2.1.4 upgrade failed at Converting to UTF-8
Post by: Anarchy on May 20, 2024, 06:39:09 PM
I upgraded to php 8.1, verified with

"<?php
phpinfo();
?>"

I also added "require_once($sourcedir . '/Security.php');" to line 705 but still getting the same error message.

Something new happened though when I visit the upgrade script Im getting this error:

myuser/forum/custom_avatar has to be writable to continue the upgrade. Please make sure permissions are correctly set to allow this.

custom_avatar folder is 755 and I think that should work?
Title: Re: SMF 2.0.x to 2.1.4 upgrade failed at Converting to UTF-8
Post by: Steve on June 21, 2024, 07:17:04 AM
Status?