MichaelBelgium / mybb_to_flarum

A Flarum extension to convert a mybb forum to a fresh flarum install
MIT License
26 stars 15 forks source link

Error: Class "mysqli" not found #26

Closed toreador34 closed 2 years ago

toreador34 commented 2 years ago

Hi,

when i try migraiton, it shows "Oops! Something went wrong. Please reload the page and try again" error message. I inspect logs and saw this error message

flarum.ERROR: Error: Class "mysqli" not found in /var/www/vendor/michaelbelgium/mybb-to-flarum/src/Migrator.php:45

MichaelBelgium commented 2 years ago

You need to have the php mysqli extension installed and loaded

toreador34 commented 2 years ago

Thank you for your quick response.

I did install and enable mysqli but it shows different error now

flarum.ERROR: Error: mysqli object is already closed in /var/www/vendor/michaelbelgium/mybb-to-flarum/src/Migrator.php:46

toreador34 commented 2 years ago

php-fpm dockerfile

FROM php:8.0.2-fpm-alpine RUN apk add libjpeg-turbo-dev libpng-dev freetype-dev RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd pdo_mysql pdo mysqli

MichaelBelgium commented 2 years ago

That error must mean the connection isn't working aka wrong password, db, username or host