Simple Machines Community Forum

SMF Support => Converting to SMF => phpBB => Topic started by: chaos40 on July 11, 2023, 09:15:15 PM

Title: Have any of you ever seen this?
Post by: chaos40 on July 11, 2023, 09:15:15 PM
when attempting to convert from phpBB3.3 to smf 2.0.19 via the converter program (convert.php) I get the following

Converting ranks... Successful.
Converting groups... Successful.
Converting members... Unsuccessful!
This query:
SELECT
u.user_id AS id_member, SUBSTRING(u.username, 1, 80) AS member_name,
SUBSTRING(u.username, 1, 255) AS real_name,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS last_login,
u.user_regdate AS date_registered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_rank = 1, 1, IFNULL(mg.id_group, 0)) AS id_group,
u.user_new_privmsg AS instant_messages,
SUBSTRING(u.user_email, 1, 255) AS email_address,
u.user_unread_privmsg AS unread_messages,
SUBSTRING(u.user_msnm, 1, 255) AS msn,
SUBSTRING(u.user_aim, 1, 16) AS aim,
SUBSTRING(u.user_icq, 1, 255) AS icq,
SUBSTRING(u.user_yim, 1, 32) AS yim,
SUBSTRING(u.user_website, 1, 255) AS website_title,
SUBSTRING(u.user_website, 1, 255) AS website_url,
u.user_allow_viewonline AS show_online, u.user_timezone AS time_offset,
IF(u.user_allow_viewemail = 1, 0, 1) AS hide_email, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify,
CASE u.user_inactive_reason WHEN 0 THEN 1 ELSE 0 END AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS message_labels,
'' AS personal_text, '' AS time_format, '' AS usertitle, u.user_ip AS member_ip,
'' AS secret_question, '' AS secret_answer, '' AS validation_code,
'' AS additional_groups, '' AS smiley_set, '' AS password_salt, '' as openid_uri, '' AS ignore_boards,
u.user_ip AS member_ip2
FROM `theblvb2_bluecashew`.phpbb_users AS u
LEFT JOIN `theblvb2_bluecashew`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN `theblue_smf`.koi_membergroups AS mg ON (mg.group_name = CONCAT('phpBB ', r.rank_title))
WHERE u.group_id NOT IN (1, 6)
GROUP BY u.user_id
LIMIT 0, 500;
Caused the error:
1054

thanks for any assistance you can provide
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 11, 2023, 09:43:40 PM
 In short, ERROR 1054 means that MySQL can't find the column name that you specified in your SQL statements.


Try to run that query manually and see what error pops back
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 11, 2023, 09:48:05 PM
Completely lost

what do you mean?
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 11, 2023, 09:50:32 PM
Take the whole query and run the sql in a tool such as phpmyadmin
SELECT
u.user_id AS id_member, SUBSTRING(u.username, 1, 80) AS member_name,
SUBSTRING(u.username, 1, 255) AS real_name,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS last_login,
u.user_regdate AS date_registered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_rank = 1, 1, IFNULL(mg.id_group, 0)) AS id_group,
u.user_new_privmsg AS instant_messages,
SUBSTRING(u.user_email, 1, 255) AS email_address,
u.user_unread_privmsg AS unread_messages,
SUBSTRING(u.user_msnm, 1, 255) AS msn,
SUBSTRING(u.user_aim, 1, 16) AS aim,
SUBSTRING(u.user_icq, 1, 255) AS icq,
SUBSTRING(u.user_yim, 1, 32) AS yim,
SUBSTRING(u.user_website, 1, 255) AS website_title,
SUBSTRING(u.user_website, 1, 255) AS website_url,
u.user_allow_viewonline AS show_online, u.user_timezone AS time_offset,
IF(u.user_allow_viewemail = 1, 0, 1) AS hide_email, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify,
CASE u.user_inactive_reason WHEN 0 THEN 1 ELSE 0 END AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS message_labels,
'' AS personal_text, '' AS time_format, '' AS usertitle, u.user_ip AS member_ip,
'' AS secret_question, '' AS secret_answer, '' AS validation_code,
'' AS additional_groups, '' AS smiley_set, '' AS password_salt, '' as openid_uri, '' AS ignore_boards,
u.user_ip AS member_ip2
FROM `theblvb2_bluecashew`.phpbb_users AS u
LEFT JOIN `theblvb2_bluecashew`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN `theblue_smf`.koi_membergroups AS mg ON (mg.group_name = CONCAT('phpBB ', r.rank_title))
WHERE u.group_id NOT IN (1, 6)
GROUP BY u.user_id
LIMIT 0, 500;
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 11, 2023, 10:33:50 PM
this is what I get

Failed to execute SQL : SQL SELECT u.user_id AS id_member, SUBSTRING(u.username, 1, 80) AS member_name, SUBSTRING(u.username, 1, 255) AS real_name, SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS last_login, u.user_regdate AS date_registered, u.user_posts AS posts, IF(u.user_rank = 1, 1, IFNULL(mg.id_group, 0)) AS id_group, u.user_new_privmsg AS instant_messages, SUBSTRING(u.user_email, 1, 255) AS email_address, u.user_unread_privmsg AS unread_messages, u.user_allow_viewonline AS show_online, u.user_timezone AS time_offset, IF(u.user_allow_viewemail = 1, 0, 1) AS hide_email, u.user_avatar AS avatar, REPLACE(u.user_sig, '\n', '<br />') AS signature, u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type, u.user_notify_pm AS pm_email_notify, CASE u.user_inactive_reason WHEN 0 THEN 1 ELSE 0 END AS is_activated, '' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS message_labels, '' AS personal_text, '' AS time_format, '' AS usertitle, u.user_ip AS member_ip, '' AS secret_question, '' AS secret_answer, '' AS validation_code, '' AS additional_groups, '' AS smiley_set, '' AS password_salt, '' as openid_uri, '' AS ignore_boards, u.user_ip AS member_ip2 FROM `theblvb2_bluecashew`.phpbb_users AS u LEFT JOIN `theblvb2_bluecashew`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1) LEFT JOIN `theblue_smf`.koi_membergroups AS mg ON (mg.group_name = CONCAT('phpBB ', r.rank_title)) WHERE u.group_id NOT IN (1, 6) GROUP BY u.user_id LIMIT 0, 500; failed : Expression #8 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'theblue_smf.mg.id_group' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 11, 2023, 11:55:13 PM
Do you have access to your mysql configuration?
If so in my.cnf set
sql_mode = ""
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 12:29:41 AM
I did that and got the same error  :(
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 12, 2023, 01:34:12 AM
Did you restart mysql after editing the file?
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 08:00:40 AM
Yes sir.
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 12, 2023, 08:53:47 AM
Very strange does it stills say this error?
 clause and contains nonaggregated column 'theblue_smf.mg.id_group' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 09:38:24 AM
Quote from: vbgamer45 on July 12, 2023, 08:53:47 AMVery strange does it stills say this error?
 clause and contains nonaggregated column 'theblue_smf.mg.id_group' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

I'm technically inclined, but now you're speaking German  ;D

This PHPBB software doesn't play nice at all. I ported the whole forum off an existing platform onto a new linux box with all software versions and settings identical to the original mysql version, php version etc etc - I use my local hosts file to do the name mapping since this forum is on the internet and my box is a replica

I did the database back up and restore via the ssh command line as the new server does not have phpmyadmin installed ( I use webmin on this box instead) and the entire site loads just fine but I cannot login no matter what I try. (clearing cookies, browser cache etc etc)

Could this be the issue? I didn't think they were related but now I am not so sure.

thanks for your time, buddy :)
Title: Re: Have any of you ever seen this?
Post by: Doug Heffernan on July 12, 2023, 09:39:44 AM
If you disabled only_full_group_by at the my.cnf file, that error shouldn't have happened again.

The other solutuin imo is to add the columns names mentioned in the error in the GROUP BY clause at the query.
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 10:57:25 AM
/etc/my.cnf looks like this

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
autocommit = 0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
sql_mode = ""


afterward did a service mysqld stop and then start

and still getting the following when I run convert.php

Converting ranks... Successful.
Converting groups... Successful.
Converting members... Unsuccessful!
This query:
SELECT
u.user_id AS id_member, SUBSTRING(u.username, 1, 80) AS member_name,
SUBSTRING(u.username, 1, 255) AS real_name,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS last_login,
u.user_regdate AS date_registered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_rank = 1, 1, IFNULL(mg.id_group, 0)) AS id_group,
u.user_new_privmsg AS instant_messages,
SUBSTRING(u.user_email, 1, 255) AS email_address,
u.user_unread_privmsg AS unread_messages,
SUBSTRING(u.user_msnm, 1, 255) AS msn,
SUBSTRING(u.user_aim, 1, 16) AS aim,
SUBSTRING(u.user_icq, 1, 255) AS icq,
SUBSTRING(u.user_yim, 1, 32) AS yim,
SUBSTRING(u.user_website, 1, 255) AS website_title,
SUBSTRING(u.user_website, 1, 255) AS website_url,
u.user_allow_viewonline AS show_online, u.user_timezone AS time_offset,
IF(u.user_allow_viewemail = 1, 0, 1) AS hide_email, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify,
CASE u.user_inactive_reason WHEN 0 THEN 1 ELSE 0 END AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS message_labels,
'' AS personal_text, '' AS time_format, '' AS usertitle, u.user_ip AS member_ip,
'' AS secret_question, '' AS secret_answer, '' AS validation_code,
'' AS additional_groups, '' AS smiley_set, '' AS password_salt, '' as openid_uri, '' AS ignore_boards,
u.user_ip AS member_ip2
FROM `theblvb2_bluecashew`.phpbb_users AS u
LEFT JOIN `theblvb2_bluecashew`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN `smf_blue`.smf_membergroups AS mg ON (mg.group_name = CONCAT('phpBB ', r.rank_title))
WHERE u.group_id NOT IN (1, 6)
GROUP BY u.user_id
LIMIT 0, 500;
Caused the error:
1054

path to SMF: /home/customer/www/thebluecashew.net/public_html/smf

path to phpbb3: /home/customer/www/thebluecashew.net/public_html

both forums are up and running with their own databases on locally installed instance of mysql
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 12, 2023, 11:07:23 AM
It could in a different file location then /etc/my.cnf some systems check /etc/mysql /etc/mysqld folders are something named liked that..
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 12:37:48 PM
I'm using centos

the only other directory was /etc/my.cnf.d/ so I copied my.cnf there

same result :(
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 12, 2023, 01:09:28 PM
I run the same
And is it under "[mysqld]" section that you put that line


You can also run this mysql query
set global sql_mode=""
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 01:19:35 PM
Yes sir.

I verified what you asked and I ran that query

same result
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 12, 2023, 01:25:21 PM
Out of ideas other than trying another host/service
Or editing the .sql file and add
set session sql_mode= "";
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 02:12:46 PM
thanks for Trying... I really appreciate your time

This may have something to do with the error on the PHPBB side where I cannot login with any account after the restore.

I'm haunting them on their forum as well right now  ;D
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 12, 2023, 10:25:32 PM
Okay new update

I was able to get the script to run by ripping out all references to rows that were not present in the original php database ... for the users only (at the moment)

end result looks like this in the .sql file


I see all of my users in the new smf database

however when I attempt to login I get the following message

Password security has recently been upgraded. Please enter your password again.

when I enter it again I get the same message returned. I see the hashed password in the database field as well but not sure if it's properly salted?

any help would be very appreciated. I feel like I'm almost there  ;D
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 12, 2023, 11:44:41 PM
Try to do forgot your password. Yes it doesn't solve other users but can see if you can get in that way first.
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 13, 2023, 12:08:10 AM
No dice :(
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 13, 2023, 12:15:27 AM
Didn't get the email? or didn't work after resetting.
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 13, 2023, 12:22:04 AM
Didn't get the email -- probably because I didn't set all that up on the new smf forum prior to converting

I can however register a new user manually

is there a way I can go into the database directly and make the user I just registered an admin?
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 13, 2023, 12:26:32 AM
Yes there is just change the id_group = 1 where that member id/username
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 13, 2023, 12:36:06 AM
Im in as an admin now with the new user I registered

Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 13, 2023, 11:23:39 AM
Is there anything I can do to get my users working without having to use the forgot password function?

thanks
Title: Re: Have any of you ever seen this?
Post by: Aleksi "Lex" Kilpinen on July 13, 2023, 11:28:28 AM
If you are logged in as admin, you should be able to just change the password for your earlier account. No problem.
Title: Re: Have any of you ever seen this?
Post by: vbgamer45 on July 13, 2023, 11:31:00 AM
Yeah.. otherwise you have to see if you can find code to do it.
https://stackoverflow.com/questions/73270291/phpbb-3-3-8-verify-password-outside-source

Haven't found anything in google searches so far

SMF has function phpBB3_password_check  but I believe that is for 3.0 only.
Sources\LogInOut.php
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 13, 2023, 11:33:26 AM
Interestingly enough the 33 converter did not work but the 32 converter did

I suspect this site was upgraded from older versions to this latest one
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 13, 2023, 12:33:17 PM
SO now the conversion completed successfully.. mostly

but every post has a last edit by guest line and quotes have strike through lines

any way to get rid of that?
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 22, 2023, 10:48:05 PM
I finished the conversion. looks pretty good

can I post a link to the board on this forum?
Title: Re: Have any of you ever seen this?
Post by: Aleksi "Lex" Kilpinen on July 22, 2023, 11:54:50 PM
If you want to show a succesful conversion in this topic, I'd say it's fine. Usually if it's related to the support topic it is allowed.
Title: Re: Have any of you ever seen this?
Post by: GL700Wing on July 23, 2023, 12:28:55 AM
Quote from: chaos40 on July 12, 2023, 10:25:32 PMPassword security has recently been upgraded. Please enter your password again.
I had the same issue with a forum I migrated a couple of years ago so (ie, users need to enter their password a second time) so I changed the message in '/Themes/default/languages/Login.english.php' to:
$txt['login_hash_error'] = '<b>Password security has recently been upgraded.<br />Please wait 5 seconds and then enter your password again.</b>';
This way the users know they need to try again after waiting a few seconds ...
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 23, 2023, 07:51:03 AM
Quote from: Aleksi "Lex" Kilpinen on July 22, 2023, 11:54:50 PMIf you want to show a succesful conversion in this topic, I'd say it's fine. Usually if it's related to the support topic it is allowed.

thanks bud!

https://thebluecashew.net

The board named Blue Cashew Archive is a link to the php version of the board. I did that so that users have the option of logging into the old forum to alert me to the fact that they have difficulty with the reset process
Title: Re: Have any of you ever seen this?
Post by: Doug Heffernan on July 23, 2023, 08:07:45 AM
Quote from: chaos40 on July 22, 2023, 10:48:05 PMI finished the conversion. looks pretty good

It looks nice indeed. Welcome to Smf. :)

I am going to mark this topic as solved seeing the fact that your conversion was successfully finished.
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 23, 2023, 09:02:55 AM
PHPBB was very difficult to navigate and lacked many of the features which are bundled with SMF by default or at least with the addition of mods

thanks for all your help guys!
Title: Re: Have any of you ever seen this?
Post by: Antechinus on July 23, 2023, 04:55:32 PM
phpBB has its good points and bad points, like anything else. Some aspects of it I like better than SMF. Others I don't. Overall I would prefer SMF, but with some good ideas nicked from other places.
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 23, 2023, 06:07:22 PM
Hey Guys,

if you quickly needed to add about 500+ users to a group to give proper access to all areas of your board how would you do it?

is there an SQL query I can run or something like that?

thanks

Now I'm battling DMARC issues -- you'd think I would have thought of that BEFORE swinging the site over since the entire success of all the users hinges on being able to receive password reset emails :(

any quick help would be most appreciated! On the sql thing..
Title: Re: Have any of you ever seen this?
Post by: chaos40 on July 23, 2023, 07:05:06 PM
Nevermind. I found a post which had the syntax for the query that needs to be run
Title: Re: Have any of you ever seen this?
Post by: chaos40 on August 02, 2023, 04:13:09 PM
Quote from: chaos40 on July 23, 2023, 07:51:03 AM
Quote from: Aleksi "Lex" Kilpinen on July 22, 2023, 11:54:50 PMIf you want to show a succesful conversion in this topic, I'd say it's fine. Usually if it's related to the support topic it is allowed.

thanks bud!

https://thebluecashew.net

The board named Blue Cashew Archive is a link to the php version of the board. I did that so that users have the option of logging into the old forum to alert me to the fact that they have difficulty with the reset process

updated