SMF 2.0.x to 2.1.4 upgrade failed at Converting to UTF-8

Started by Anarchy, May 19, 2024, 06:57:49 PM

Previous topic - Next topic

Anarchy

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?


Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

grega

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 ?

Anarchy

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?

Steve

My pet rock is not feeling well. I think it's stoned.

Advertisement: