News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

[SMF Converter] IPB 1.3.x

Started by JayBachatero, January 28, 2007, 02:56:33 PM

Previous topic - Next topic

norrie

Hi Doug,
Please find attached the three screenshots as requested.

When you say " if the content was converted to smf or not", I'm not sure what you mean. To be clear, the old IPB foum was stored in a folder called "forum". I have installed a brand new version 2.0.19 smf forum in a folder called smf. The database in which the old IPB forum was installed was called xxxxx_forum. I installed the new smf installation in the same database with the same user and password. As it happens, there is a third forum stored in that same database called "mkportal" This was an old experiment from years ago and can be ingored unless it is impinging on the conversion process.
I uploaded the convert.php and invision_to_smf.sql files to the root of the smf folder and executed the convert.php file. (Was that correct or should I upload them to the root of the old forum folder?) Should I expect to see the IPB tables physically converted to smf tables? Or should I be looking for data transferred from the old IPB tables to the equivalent new smf tables? In other words, if the process had happened perfectly, what should I see when I look at the tables and their contents?
You cannot view this attachment.
You cannot view this attachment.
You cannot view this attachment.

Doug Heffernan

#181
Quote from: norrie on April 10, 2022, 05:09:19 AMWhen you say " if the content was converted to smf or not", I'm not sure what you mean.

What I meant by this is if the data from your Ipb forum was converted over/added to the Smf forum.

Quote from: norrie on April 10, 2022, 05:09:19 AMI have installed a brand new version 2.0.19 smf forum in a folder called smf. The database in which the old IPB forum was installed was called xxxxx_forum. I installed the new smf installation in the same database with the same user and password. As it happens, there is a third forum stored in that same database called "mkportal" This was an old experiment from years ago and can be ingored unless it is impinging on the conversion process.
I uploaded the convert.php and invision_to_smf.sql files to the root of the smf folder and executed the convert.php file. (Was that correct or should I upload them to the root of the old forum folder?)

That is the correct procedure as far as I can tell.

Quote from: norrie on April 10, 2022, 05:09:19 AMShould I expect to see the IPB tables physically converted to smf tables? Or should I be looking for data transferred from the old IPB tables to the equivalent new smf tables?

The converter will not alter the source forum database at all, i.e. the ipb forum in this case.

The data of the source forum should be inserted to the relevant tables of the Smf forum. Hence why I asked for the screenshots.

You said that you ran the Recount all forum totals and statistics tool in the Maintenance area btw, right?

I am perplaxed as to why the conversion is not working. You have done it correctly and in theory it should have worked.

Quote from: norrie on April 10, 2022, 05:09:19 AMAs it happens, there is a third forum stored in that same database called "mkportal" This was an old experiment from years ago and can be ingored unless it is impinging on the conversion process.

That has no bearing at all as far as the conversion process goes.

norrie

Doug,
As a quick thought, given the IPB forum is so old, could the problem be that the php verson required for the conversion to work properly is very much older than the minimumm php version requied to run smf, even the 2.0.19 version? Would I need to go back to a much older version of both php and smf to get the data transferered and then upgrade the php and smf to the current version, maybe even transitioning through multiple intermediate steps?
Kind regards,
Norrie

norrie

Doug et al,
Is there someone I can pay to have the forum upgraded to smf on my behalf?
Kind regards,
Norrie

Dzonny

You should've got error message if there was a problem with some of the functions from converter I guess. But anyway, you can try to alter php version before using convert tool, can't hurt to try with different versions.

Other than that, is your forum public, if so can you post a link to it so we can see it?

norrie

Hi Dzonny,
No error messaages. The converter said it was successful.
The forum is public but since I updated the php version to 7.0, it no longer works. The page is blank when you navigate to the forum index.
Club XM [nofollow]
However, to demonstrate the old forum exists and works, I have temporarily reverted the php version to 5.2 so you can see it.
Thanks,
Norrie

norrie

Dzonny,
I reverted the version of php back to 5.2. I uploaded a copy of convert.php and invision_to_smf.sql to the root of the smf folder. I tried to start the smf/convert.php process from a browser but all I got was a blank page and the address bar changed to "/convert.php?step=1".
Therefore, it seems that there could be a (maximum) php version needed to get the convert.php to work but a different minimum version to get smf to work. If those two do not overlap then I can't convert the existing forum to smf along this path.
Presumably this all worked fine 10+ years ago? When the converter was written back in 2007, what version of php and what version of smf was current at that time? Maybe I need to go back to even earlier versions of both to get the converter to work and then slowly update them both a step at a time to the current versions.
For example, I see from the convert.php file that the minimum version of php is stated as 4.1.0 and the minimum version of mysql is 4.0.18. My ISP does not give me the option to go back further than 5.2 for php. I have no idea what the mySQL version is.

Kind regards,
Norrie

Dzonny

I just realized that this convertor is supposed to work with smf 1.1 versions. In that case you should convert to smf 1.1 branch and then once that is working you may easily convert to 2.0 branch and 2.1 branch.

I'd suggest to try with smf 1.1 branch and see where to go from there.

Doug Heffernan

Quote from: Dzonny on April 11, 2022, 06:21:48 AMI just realized that this convertor is supposed to work with smf 1.1 versions. In that case you should convert to smf 1.1 branch and then once that is working you may easily convert to 2.0 branch and 2.1 branch.

I'd suggest to try with smf 1.1 branch and see where to go from there.

I missed the Smf compatibility with the converter. I assumed that it was for Smf 2.0.x. Good catch :)

@norrie, is upgrading your Ipb forum to version 4 or at the very least, 3.x not an option btw?

norrie

@Doug
It never really dawned on me to consider it. I've just been to Invision's website to have a look. If I am reading it correctly, they want a minimum subscription of $49/m for their baselinepackage. The forum does not create any income and therefore there is no way of paying for a subscription.

@Dzonny,
No problem. It costs me nothing to give it a try. Presumably to uninstall the current smf installation I should just delete the entire smf folder and then delete every line in the database with an smf_ prefix? Is there another way?

Kind regards,
Norrie

Doug Heffernan

Quote from: norrie on April 11, 2022, 06:47:20 AMI should just delete the entire smf folder and then delete every line in the database with an smf_ prefix? Is there another way?

That is the best way to completely uninstall smf 2.0.19 and install smf 1.1.x.

Dzonny

Yeah, I'd suggest to give it a try and let us know about the results. 8)

norrie

Hi Dzonny/Doug,
Here's what I did:
I deleted all the files in the smf folder (smf 2.0.19 installation)
I deleted all the tables and data from the database with prefix smf_
I downloaded a copy of smf version 1.1.21
I uploaded a copy of all the 1.1.21 files to the empty smf folder
I confirmed the php version setting as 5.2
I ran the install.php and selected the existing IPB database and the IPB database user
I used the sql password I found in the config_global.php file
The install finished successfully.
I browsed to the new forum to ensure it was working correctly, which it was.
I uploaded the convert.php and invision_to_smf.sql files to the root of the smf folder.
I ran the convert.php from a browser.
The converter said it completed successfully.
I browsed to the forum but found that it only had 1 user and 1 post (i.e. the introductory post)
I checked phpMyAdmin and confirmed none of the data migrated from the old IPB forum to the new smf forum.

Is there anything I am missing about this process?

Here is the contents of the error_log
[11-Apr-2022 11:09:31] PHP Notice:  Undefined index:  convert_script in /home/clubxmco/public_html/smf/convert.php on line 987
[11-Apr-2022 11:09:31] PHP Warning:  Invalid argument supplied for foreach() in /home/clubxmco/public_html/smf/convert.php on line 990
[11-Apr-2022 11:09:31] PHP Notice:  Undefined index:  convert_script in /home/clubxmco/public_html/smf/convert.php on line 1002
[11-Apr-2022 11:09:31] PHP Notice:  Undefined variable: result in /home/clubxmco/public_html/smf/convert.php on line 2510
[11-Apr-2022 11:09:31] PHP Notice:  Undefined variable: result in /home/clubxmco/public_html/smf/convert.php on line 2511
[11-Apr-2022 11:09:31] PHP Notice:  Undefined index:  db_fetch_assoc in /home/clubxmco/public_html/smf/convert.php on line 1401
[11-Apr-2022 11:09:31] PHP Fatal error:  Function name must be a string in /home/clubxmco/public_html/smf/convert.php on line 1401

Any ideas greatly welcomed.

Kind regards,
Norrie

Dzonny

Can you try with PHP version 5.4?

norrie

Hi Dzonny,
I changed the php version using cPanel to 5.4.
I ran the convert.php file again.
I entered the old and new forum folders
I entered the old/new database password
The converter said it completed successfully.
I checked both the forum and the database. No data was copied over to the smf tables.

Here are the new entries in the error_log
[11-Apr-2022 11:43:35 UTC] PHP Notice:  Undefined index: convert_script in /home/clubxmco/public_html/smf/convert.php on line 987
[11-Apr-2022 11:43:35 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/clubxmco/public_html/smf/convert.php on line 990
[11-Apr-2022 11:43:35 UTC] PHP Notice:  Undefined index: convert_script in /home/clubxmco/public_html/smf/convert.php on line 1002
[11-Apr-2022 11:43:35 UTC] PHP Notice:  Undefined variable: result in /home/clubxmco/public_html/smf/convert.php on line 2510
[11-Apr-2022 11:43:35 UTC] PHP Notice:  Undefined variable: result in /home/clubxmco/public_html/smf/convert.php on line 2511
[11-Apr-2022 11:43:35 UTC] PHP Notice:  Undefined index: db_fetch_assoc in /home/clubxmco/public_html/smf/convert.php on line 1401
[11-Apr-2022 11:43:35 UTC] PHP Fatal error:  Function name must be a string in /home/clubxmco/public_html/smf/convert.php on line 1401

Kind regards,
Norrie

norrie

Please note that I have been through every page of this thread from the beginning. There are at least two versions of convert.php and possibly three versions of invision_to_smf.sql attached to various posts. How can I tell that I am using the right versions and the right combination of versions?

For example, the version of the convert.php I have been using all along says it is Version 2.0 on line 12. The other version I downloaded does not have a version stated. It does however state that it is for smf v 1.1. The previous file mentioned does not state which version of smf it is suitable for. Given the task in hand, which one is correct file to use?
Regards,
Norrie

Dzonny

Thanks for your quick response.

Are you sure the PHP version is changed? Have you checked it with phpinfo(); function?
Also, do you have .htaccess file in smf directory, and if so, can you temporarily rename it to something like .htaccess-temp while you're trying to perform the conversion.
I would at last suggest to also try to run converter with another browser, just to be sure it's not browser related, though I doubt it.

QuoteFor example, the version of the convert.php I have been using all along says it is Version 2.0 on line 12. The other version I downloaded does not have a version stated. It does however state that it is for smf v 1.1. The previous file mentioned does not state which version of smf it is suitable for. Given the task in hand, which one is correct file to use?
That is just file version, not smf version, I assume.
File from the first post in this tipic should do the trick.

norrie

Hi Dzonny,
Quote from: Dzonny on April 11, 2022, 08:20:11 AMAre you sure the PHP version is changed? Have you checked it with phpinfo(); function?
Sorry, my IT skills are reasonable but not advanced. How would I go about doing that?

Quote from: Dzonny on April 11, 2022, 08:20:11 AMdo you have .htaccess file in smf directory
No, there is no htaccess file

Quote from: Dzonny on April 11, 2022, 08:20:11 AMtry to run converter with another browser
I might try that this evening using another machine. I only have Firefox installed on this machine.

Regards,
Norrie


Dzonny


norrie


Advertisement: