#3419 closed defect (bug) (fixed)
After export from SMF error: bbp_converter_db_connection_failed
Reported by: | SirLouen | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6.10 | Priority: | highest omg sweet tea |
Severity: | critical | Version: | trunk |
Component: | API - Importers | Keywords: | |
Cc: |
Description
For all users who were exported with SMF I've found this error:
{"success":false,"data":[{"code":"bbp_converter_db_connection_failed","message":"Database connection failed"}]}
I exported from an SMF forum hosted in server A (lets say IP AAA.BBB.CCC.DDD)
My new server for bbPress is server B (lets say EEE.FFF.GGG.HHH)
I have set up in the bbPress migration config the information from server A, mysql host (the AAA.BBB.CCC.DDD), the mysql database, the user and the password.
I also have set up in the server A, an open bind address (0.0.0.0) so that server B with bbPress can connect. As long as server B with bbPress can connect the database of server A, everything is great.
But as soon as I remove this connection, for example by removing the MySQL bind address, the error bbp_converter_db_connection_failed
starts popping for all the imported users that try to log in:
Why is this happening?
Maybe some old SMF users have never migrated or are missing some wp_usermeta
info?
After some research, what I've noticed is that all users in this situation (just the ones that were migrated, have a wp_usermeta
property called:
meta_key= _bbp_class meta_value = SMF
I've tried removing this tag and "voila": it has been solved.
So, something suggests me that there might be something broken in the code.
Change History (11)
#2
@
4 years ago
I also think that the problem comes from
includes/users/functions.php
After the password conversion done correctly, the converter doesn't remove the _bbp_class to avoid repeated conversions from the same converter in line 982
$converter = bbp_new_converter( $row->meta_value );
#4
follow-up:
↓ 5
@
4 years ago
Did anybody ever make any progress with this? This problem was fixed, but has returned out of the blue.
#5
in reply to:
↑ 4
@
4 years ago
Replying to HammyHavoc:
Did anybody ever make any progress with this? This problem was fixed, but has returned out of the blue.
For some reason, the server database where you exported, has to be permanently linked in the exporting section of bbpress. Why? I'm not 100% sure. Is like everything is not fully exported, and needs to keep doing some lookups.
In case there is no SQL connection between the two servers or at least the two databases (the one exported and the bbpress one), you will receive this message.
A serious bug definitelly because DB shall be disengaged at some point.
#6
follow-up:
↓ 10
@
4 years ago
Interesting thing I've just found:
If users who were migrated use their email address rather than their username then it works without problem. Usernames seem to be what causes the issue, at least for me.
#7
@
3 years ago
- Milestone changed from Awaiting Review to 2.6.10
- Owner set to johnjamesjacoby
- Status changed from new to assigned
#10
in reply to:
↑ 6
@
3 years ago
Replying to HammyHavoc:
Interesting thing I've just found:
If users who were migrated use their email address rather than their username then it works without problem. Usernames seem to be what causes the issue, at least for me.
Separate issue that will be addressed on its own. 👍
A simple "patch" obviously could be around this QUERY:
But obviously, we are going around a more serious issue within the code and not sure how important is this meta key for the Importer standpoint.