RaxBoard 1.9.9 -> 2.0.0 Automatic Update Fails

Réponses : 2 Vues : 27 Bug
Votants
Participants
Auteur de la discussion #1
CODE
1Migration error: Migration [1612_opt_b] failed: SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION raxboard.MD5 does not exist

When running the automatic update, it appears to keep failing for the following reason.

Server Information;

PHP VERSION8.3.30 (cgi-fcgi)
MySQL 9.7.4 LTS
Auteur de la discussion #2
For those looking for a solution, MD5 function in MySQL 9.6 and above has been removed.

You must manually load the legacy file binaries using this command against your SQL server;
CODE
12
INSTALL COMPONENT 'file://component_classic_hashing';

Then run the upgrade again and it will work.
#3
Thanks for the report, and for posting the workaround: your diagnosis is right.

MySQL 9.6 and later no longer have MD5(), SHA1() and SHA() built in; they come with the component component_classic_hashing. Migration 1612_opt_b of 2.0.0 called MD5() in SQL, so on MySQL 9.6+ without that component the update stopped there.

Until the fix is out: the command above works:
CODE
1INSTALL COMPONENT 'file://component_classic_hashing';

It needs a MySQL administrator account (root); the board's own database user usually cannot run it. On shared hosting, ask your host to run it. Then start the update again (Retry): it continues from the migration where it stopped. Keep the component installed afterwards.

Fixed for the next 2.0.0 update: these migrations and the board's own lock queries now compute the hashes in PHP and no longer need the component. If a pending migration still needs one of these functions, the updater now checks this before it runs any migration, tries to install the component itself, and otherwise stops with the exact statement to run, so an update no longer stops half-way.
Sorunu bildirdiğiniz ve geçici çözümü paylaştığınız için teşekkürler: teşhisiniz doğru.

MySQL 9.6 ve sonrasında MD5(), SHA1() ve SHA() artık yerleşik değil; component_classic_hashing bileşeniyle geliyorlar. 2.0.0'ın 1612_opt_b geçişi SQL'de MD5() çağırıyordu, bu yüzden bu bileşen olmayan MySQL 9.6+ kurulumlarında güncelleme orada duruyordu.

Düzeltme yayınlanana kadar: yukarıdaki komut işe yarıyor:
CODE
1INSTALL COMPONENT 'file://component_classic_hashing';

Bu komut bir MySQL yönetici hesabı (root) gerektirir; forumun kendi veritabanı kullanıcısı genellikle bunu çalıştıramaz. Paylaşımlı hostingde komutu hosting firmanıza çalıştırtın. Ardından güncellemeyi yeniden başlatın (Yeniden dene): kaldığı geçişten devam eder. Bileşeni sonra kaldırmayın, kurulu kalsın.

Bir sonraki 2.0.0 güncellemesi için düzeltildi: bu geçişler ve forumun kendi kilit sorguları hash değerlerini artık PHP'de hesaplıyor ve bileşene ihtiyaç duymuyor. Bekleyen bir geçiş bu işlevlerden birine yine de ihtiyaç duyarsa, güncelleyici artık bunu herhangi bir geçişi çalıştırmadan önce denetliyor, bileşeni kendisi kurmayı deniyor, kuramazsa da çalıştırılması gereken komutun tam hâlini göstererek duruyor; böylece güncelleme artık yarıda kalmıyor.

Vous devez être connecté pour répondre.

0 citations sélectionnées