@MichaelBelgium
Hey, thanks for creating this extension. I used it on one of my forums a few weeks ago and it worked perfectly.
But I'm trying to move another MyBB forum to Flarum and your extension isn't working. It says
Oops! Something went wrong. Please reload the page and try again.
I checked the log folder /storage/logs and it's empty. JavaScript console shows:
request.js:173 POST https://forums.MYSITE.com/api/mybb-to-flarum 500
(anonymous) @ request.js:173
(anonymous) @ request.js:23
(anonymous) @ request.js:22
e.request @ Application.js:352
(anonymous) @ MybbToFlarumPage.js:166
Promise.then (async)
o.onsubmit @ MybbToFlarumPage.js:165
I.handleEvent @ render.js:888
admin#/mybb-to-flarum:1 Uncaught (in promise) iĀ {status: 500, options: {ā¦}, xhr: XMLHttpRequest, responseText: null, response: null,Ā ā¦}
Promise.then (async)
(anonymous) @ MybbToFlarumPage.js:178
Promise.then (async)
o.onsubmit @ MybbToFlarumPage.js:165
I.handleEvent @ render.js:888
I narrowed it down to the migrate users option being the cause of the error. Unchecking migrate avatars has no effect.
These work either individually or altogether:
- Migrate threads and posts
- Migrate user groups
- Migrate categories
I checked the usernames and saw that one of them was using an email address as a username so I renamed them and tried again. Same error.
I checked to see what kind of restrictions Flarum puts on usernames by registering a new account and found out that dots and spaces are not allowed.
The username may only contain letters, numbers, and dashes.
Using MySQL, I update the database of mybb_users and replaced all usernames containing spaces and dots to dashes.
Same error.
I deleted most of the user base and attempted to migrate it. Same error, but this time it did import some users. Again, no error log.
Deleting every user except my admin user also did not work, same error. MyBB doesn't seem to let me delete my own admin account.
Any help would be appreciated.