I’m trying to fix some coding in import
If this is off topic, pls help pointing me to the correct place.
This is the first time I’m working with bbPress, I’m trying to import from vBulletin now.
vBulletin = 3.8.6 bbPress = bbPress 2.5.12 WP = 4.7.5
I’ve been struggling for a few days already (I’ve also tried the 2.6-rc-3 without any luck). Just today, I found an advice to enable WP_DEBUG and WP_DEBUG_LOG so I did so and saw some error messages so I decided to look into the code and try to fix it myself.
Here’s the first one I found:
PHP Notice: Undefined index: user_pass in ...\wp\wp-includes\user.php on line 1425
Here’s the code at line 1425:
$user_pass = wp_hash_password( $userdata['user_pass'] );
Should be changed to:
$user_pass = empty($userdata['user_pass'])?wp_hash_password(''):wp_hash_password( $userdata['user_pass'] );
There’re more errors I’m trying to fix right now. Pls let me know if it’s helpful and I should post them too.
- You must be logged in to reply to this topic.