Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Import Problems with UBBThreads 5.5.1

Quote Reply
Import Problems with UBBThreads 5.5.1
Greetings!

Am trying to do an import into GForum from UBBThreads v5.5.1 (PHP). I get the error - 'could not find the version of WWWThreads you are using'.

I have tried the UBBThreads, WWWThreads-PHP, UBB5 all to no avail.

The config.inc.php file clearly has the version in the file.

Any ideas?

Regards,



Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Import Problems with UBBThreads 5.5.1 In reply to
Hi,

Can you paste the string in the config which shows the version? In previous versions of the PHP version of WWWThreads/UBBThreads, the version wasn't in the config, so I had to rely on grabbing it from somewhere else (which it looks like they've removed). Thanks.

Adrian

Last edited by:

brewt: Apr 26, 2003, 7:05 PM
Quote Reply
Re: [brewt] Import Problems with UBBThreads 5.5.1 In reply to
Hi Adrian:

Thanks for your reply. Located near the top of config.inc.php (just below the commented sections is the following:-

$VERSION = "5.5.1";

That's exactly as it appears.

Regards,



Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Import Problems with UBBThreads 5.5.1 In reply to
I've attached an updated WWWThreads_PHP.pm, which you can put in admin/GForum/Import (backup your old one just in case). Hopefully they haven't made any other major changes to their forum. Let me know if you run into any problems.

Adrian
Quote Reply
Re: [brewt] Import Problems with UBBThreads 5.5.1 In reply to
Adrian:

Thanks for the file. It imported all my users and Forums without a problem but failed to import any of the messages.

Ah well - it was time to make a new start anyway! Pirate

Thanks again ...



Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [brewt] Import Problems with UBBThreads 5.5.1 In reply to
Adrian:

Just thought I should let you know the error I received:-

Reading import configuration... done!
Clearing Gossamer Forum database... done!
Importing User table data... done!
Importing Category table data... done!
Importing Forum table data... done!
Importing Grouping table data... done!
Importing ForumGroup table data... done!
Importing UserNew table data... done!
Importing ForumModerator table data... done!
Importing Post table data... error!
Fatal Error: (NOTNULL) Column Email cannot be left blank.
Import unsuccessful.

Regards,



Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Import Problems with UBBThreads 5.5.1 In reply to
Edit WWWThreads.pm, around line 758, you should have a line like:
Code:
$DB->table('User')->insert({ user_username => 'gossamer_forum_import_temp_user', user_password => '', user_enabled => '0', user_status => ANONYMOUS, user_rows => '0'}) or $self->{error} = "Fatal Error: ($GT::SQL::errcode) $GT::SQL::error", return 0;

Change it to:

Code:
$DB->table('User')->insert({ user_username => 'gossamer_forum_import_temp_user', user_password => '', user_email => 'import@user.com', user_enabled => '0', user_status => ANONYMOUS, user_rows => '0'}) or $self->{error} = "Fatal Error: ($GT::SQL::errcode) $GT::SQL::error", return 0;

Adrian
Quote Reply
Re: [brewt] Import Problems with UBBThreads 5.5.1 In reply to
Hi Adrian:

I added this to WWWThreads.pm as indicated. Ran it again and received the same error:-

Reading import configuration... done!
Importing User table data... done!
Importing Category table data... done!
Importing Forum table data... done!
Importing Grouping table data... done!
Importing ForumGroup table data... done!
Importing UserNew table data... done!
Importing ForumModerator table data... done!
Importing Post table data... error!
Fatal Error: (NOTNULL) Column Email cannot be left blank.
Import unsuccessful.

I'm a little confused as it is the PHP version and the file you sent me was WWWThreads_PHP.pm. (There was no string as indicated in the xxx_PHP.pm file).

Regards,

Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Import Problems with UBBThreads 5.5.1 In reply to
WWWThreads PHP import inherits from the regular WWWThreads import. It wasn't a typo when I told you to edit the WWWThreads.pm file.

Adrian
Quote Reply
Re: [brewt] Import Problems with UBBThreads 5.5.1 In reply to
Adrian:

Thanks for your help with this. If I am causing too many headaches then please don't concern yourself about it too much.

Regards,



Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory