Advertisement:

Author Topic: FUDForum 3.0.4  (Read 15970 times)

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
FUDForum 3.0.4
« on: March 06, 2015, 07:19:58 AM »
This is a beta, don't just scrap your working forum at the end of the process!

I picked a local install of FUD 3.0.4, created some content and, using the existing converter for FUD 2.6.x, I tried to get something working for this software.

What the converter will convert:
  • Members
  • Categories
  • Boards
  • Topics/Posts
  • PMs
  • post attachments
  • avatars (not exactly sure)
  • polls

Known issues/limitations
  • Notifications: no idea about this :P No notifications are converted
  • Passwords: passwords are *not* converted (check below)

Password recovery
Since passwords are not converted, you need to follow the usual steps for password recovery. If you cannot email yourself a new password, use this trick from the wiki:
Quote
Resetting an admin users password

Use phpMyAdmin (or similar) to locate (within the "_members" table) the member whose password is to be reset. In the database field entitled "passwd", enter a new password using plain text.
Then, clear out (erase) any existing content in the database field entitled "password_salt".
The next time the member logs in (using the new password), SMF will automatically re-encrypt his credentials.

How to use the converter
* Install SMF in the same server as FUD, in a separate folder, in the same or different database
* If installed in different databases, make sure that the MySQL user from SMF is allowed to SELECT (at least) the database from FUD
* Upload the files "convert.php" and "fud_to_smf.sql" to your SMF folder
* Upload file "fud_globals.php" to your FUD folder (where GLOBALS.php is)
* Run the converter --> www.whatever-path-to-smf.com/convert.php

That's it. If interested test and let us know the outcome.
« Last Edit: March 17, 2015, 08:50:36 PM by margarett »
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #1 on: March 07, 2015, 06:54:02 AM »
Hi and thanks for giving this converter some attention.
I must say I'm more than a little scared to test this because I am not sure I won't break anything.
For instance, can the upload of fud_globals.php in the FUD folder mess up something ?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #2 on: March 07, 2015, 06:58:56 AM »
Nop. FUD doesn't care about the file and the converter only reads info from the origin. That remains untouched.
Of course, a full backup never hurts ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #3 on: March 07, 2015, 07:26:18 AM »
Another question :
I have already an smf database under the fudforum one, there are only 63 tables inside (dating back from when I tried the 2.6 converter.
Can I install smf and use this base or do I have to create a new one and delete (perhaps) the existing one ?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #4 on: March 07, 2015, 07:34:54 AM »
Is it 2.0.9?
If so and if you didn't customize SMF, then you can keep the same installation. The converter empties the affected tables before it works each step ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #5 on: March 07, 2015, 07:44:11 AM »
No, it's a previous version don't remember because I deleted the smf folder but kept the database for some reason.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #6 on: March 07, 2015, 02:16:53 PM »
If it's 2.0.x it's not a problem, the database hasn't changed.

Anyway, you need a functional SMF for the conversion, so you have to install it. So yes, delete that. You can just drop the tables and use the same database ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #7 on: March 08, 2015, 03:12:05 AM »
Hi,
The strange thing is that I can't seem to be able to access the files from the browser. I've a permission problem I can't fix.
I've put the SMF folder at the root of the site, permissions are 755 for folders and 644 for files, which works with the other
fudforum install. I tried 775, 777 recursively ..
I am baffled...

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #8 on: March 08, 2015, 10:33:55 AM »
What does it show to you? 404 not found?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #9 on: March 08, 2015, 10:45:34 AM »
This :

Forbidden

You don't have permission to access /SMF/install.php on this server.

And 403  Forbidden on the browser tab

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #10 on: March 08, 2015, 10:51:49 AM »
Uh... You server logs should tell you why that error pops up. Or maybe ask your host?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #11 on: March 08, 2015, 11:43:46 AM »
Right, made a stupid mistake, SMF installed and working ! :)

* If installed in different databases, make sure that the MySQL user from SMF is allowed to SELECT (at least) the database from FUD

They are both under "bartopmania", so it's the same database, right ?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #12 on: March 08, 2015, 05:05:47 PM »
If that's your database name, then yes ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #13 on: March 08, 2015, 05:21:36 PM »
Sorry, the database connection information used in the specified installation of SMF cannot access the installation of FUDforum 3.0.4. This may either mean that the installation doesn't exist, or that the Database account used does not have permissions to access it.

The error that was received from the Database was: Incorrect database name ''

How do I fix this ? :)

ps at the top of the windows there was this message :

Notice: Undefined variable: DBHOST_DBNAME in /web/bartopmania/smf/convert.php(451) : eval()'d code on line 1

Notice: Undefined variable: DBHOST_TBL_PREFIX in /web/bartopmania/smf/convert.php(451) : eval()'d code on line 1

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #14 on: March 08, 2015, 11:25:39 PM »
Did you supply the correct path to FUD? It seems it can't read the information...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #15 on: March 08, 2015, 11:46:41 PM »
I think the path is correct, there's a problem of database name
Quote
The error that was received from the Database was: Incorrect database name ''

In fact there's one "big" database and under it there's "bartopmania" ---> FUD db
Under "bartopmania" there's                                             "bartopmania_SMF" ---> SMF db

Seems I have to fill info in the convert_php file ? DBHOST ...something ,
                                                                           

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #16 on: March 09, 2015, 05:48:21 AM »
No, you don't. I see what you mean now.

In phpmyadmin (recent versions at least), when you create several databases with the same prefix, it groups those. So you don't have any database named "bartopmania", you have 2 or more "bartopmania_xxxxxx" databases.
Anyway, whatever database name you have, the converter should read it from GLOBALS.php so that's not the problem.

Could you please PM me your cPanel login details? Now that I wrote the converter, I'd like to see it in action :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #17 on: March 10, 2015, 07:12:08 PM »
OK, now I see your problem (sorry, I could just look at this today...)

The version of FUD that I installed had some kind of "link" from GLOBALS.php to FUDforum/include/GLOBALS.php, so putting fud_globals.php on the root was enough. In your case you have an include to the "real" file so it fails to load the info. Give me some minutes ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: FUDForum 3.0.4
« Reply #18 on: March 10, 2015, 07:38:30 PM »
OK, so your conversion is complete, I fixed the file fud_globals and, since I was there already, I performed the conversion. No errors :)

Please go to your SMF (you need to reset your password...) and perform the maintenance tasks --> find errors and recount totals.
Let me know if you find any problems ;)

For security reasons I removed the converter files, you can find them attached to the first post of this topic ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline eldritch1969

  • Semi-Newbie
  • *
  • Posts: 51
Re: FUDForum 3.0.4
« Reply #19 on: March 11, 2015, 02:43:35 AM »
Wow ! Impressive job  :)
I reset my admin password by emailing myself a new one and that worked perfectly.  8)

However, there are some pictures that don't show up, quite a lot of them actually, after I ran the maintenance tasks
you mentionned. I get that kind of thing :

index.php?=getfile&id=776&private=0

Also, will it be possible to "replace" the existing FUD install by this one or any request to an existing message will have
to be re-directed ?
Last : will members have to reset their passwords to log in ?

Thx and kudos to a very nice job so far ! When I see the kind of support you and other top members provide,
I am really grateful and happy to be able to switch to this great forum platform !  :D