Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
4 Registered (blaaskaak, Jim, mikey81, 1 invisible), 14 Guests and 17 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Gizmo 11705
Rick 7567
Ian 4107
Mark S 3983
ntdoc 3114
Sirdude 2041
jgeoff 1882
David Dreezer 1759
driv 1568
AllenAyres 1530
Latest Photos
Carrie - So Very
Testing
Test Photo
4TH of July at the river!
Test shots from D300 part 3
Topic Options
Rate This Topic
#209805 - 04/04/08 05:49 PM Importer from UBB CLassic 6.7.3 Fails - Some data imported
Travis T Offline
journeyman

Registered: 02/04/04
Posts: 86
Hello Everyone...

I am gearing up for an install and import of UBB.Classic 6.7.3. I did the install and got that base UBB.threads install working OK.

Then I just ran the import script and it looks to have imported most members (?) and about 1/3 of the forums. As I watch the script run I see it hits some errors when doing members but continues on. And then later on hits some errors doing forums. It creates the forums, but not any of the content. It stops on 18/40 forums imported.

#############
Importing threads from UBB.classic™ Forum number 25, 18 of 40 total to be imported.

Continuing the import of "oxymoarons"
Importing ""science"" (65 replies)

Warning: html::include(languages/english/generic.php) [function.html-include]: failed to open stream: No such file or directory in C:\WEB SITES\YSTHREADS\libs\ubbthreads.inc.php on line 892

Warning: html::include() [function.include]: Failed opening 'languages/english/generic.php' for inclusion (include_path='.;C:\php5\pear') in C:\WEB SITES\YSTHREADS\libs\ubbthreads.inc.php on line 892

Notice: Smarty error: unable to read resource: "not_right_bare.tpl" in C:\WEB SITES\YSTHREADS\libs\smarty\Smarty.class.php on line 1087
###########################


Here is the final screen it leaves me with. Any ideas? Pretty Please - Anyone?

Top
#209807 - 04/04/08 06:42 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
journeyman

Registered: 02/04/04
Posts: 86
I Googled and found an old post and found this:
###########
Ok, it's actually hiding the real error due to a bug in the importer. I just discovered this on an import I did today as well, and fixing up the importer now so it will show the real error. In the meantime, you can edit the libs/ubbthreads.inc.php file. Around line 804, you'll see a block of code that looks like this:

$smarty->assign("stylesheet",$stylesheet);
$smarty->assign("error",$error);
echo $smarty->fetch("not_right_bare.tpl");

Right after that, add this:

echo "THE ERROR IS:<br><br><b>$error</b><br><br>";

Once that's done then reload the page and you'll see the actual error in bold. A long way to go to get it, but once we get that, then we can see exactly what's going on.

Pear isn't actually needed, it's just referenced as it's in the current include path for PHP.

My first guess is that if you are running mysql 5, then it's currently running in strict mode and there is something about that user where it's trying to input a null value. If that ends up being the case, then you can quickly fix that by running the following SQL command:

SET GLOBAL SQL_MODE='';
###############

I added the line to see the error and I also, for the hell of it ran the SQL command since it fixed this guys problem as well. I will give it a go and see what happens.

After I run the SQL command, is there anything I need to do to commit it, Or does it just take right away?

Travis

Top
#209808 - 04/04/08 07:03 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
journeyman

Registered: 02/04/04
Posts: 86
Here is what inserting show me the error gave me....

#################
THE ERROR IS:

Script: C:\WEB SITES\YSTHREADS\importers\classic_import.php
Line#: 1277
SQL Error: MySQL server has gone away
Please verify that your MySQL server is running
SQL Error #: 2006
Query: INSERT INTO ubbt_POSTS (POST_PARENT_ID,TOPIC_ID,POST_IS_TOPIC,POST_POSTED_TIME,POST_POSTER_IP,POST_SUBJECT,POST_BODY,POST_DEFAULT_BODY, POST_ICON,POST_IS_MEMBER_POST,USER_ID,POST_ADD_SIGNATURE) VALUES ( '34978' , '821' , '0' , '1115831760' , '24.34.66.23' , 'Re: \"science\"' , 'can i be 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679...
########

However instead of the three ... above it is about 10 pages or so of numbers then end with:

##########
\n\nwitch is pi to 1 millon digets' , 'book.gif' , '1' , '370' , '1' )
###########

Top
#209809 - 04/04/08 07:08 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
journeyman

Registered: 02/04/04
Posts: 86
OK....I found a post where one user decided to enter Pi out to about 8 pages worth of scrolling - fun. I deleted the post, dropped the database, recereated the database, ran the isntall again, and am trying the import again.

Will post my results back....

Top
#209810 - 04/04/08 07:50 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
journeyman

Registered: 02/04/04
Posts: 86
OK - got past that one, ran into another one:


THE ERROR IS:

Script: C:\WEB SITES\YSTHREADS\importers\classic_import.php
Line#: 1277
SQL Error: MySQL server has gone away
Please verify that your MySQL server is running
SQL Error #: 2006
Query: INSERT INTO ubbt_POSTS (POST_PARENT_ID,TOPIC_ID,POST_IS_TOPIC,POST_POSTED_TIME,POST_POSTER_IP,POST_SUBJECT,POST_BODY,POST_DEFAULT_BODY, POST_ICON,POST_IS_MEMBER_POST,USER_ID,POST_ADD_SIGNATURE) VALUES ( 0 , '915' , '0' , '1160579520' , '76.177.197.197' , 'Re: Fabric Art' , '.................................................................................................................................................................................... ....................................................................................................................................................................................

nad it goes on for pages and pages too. Deleted the post. And trying again.

Top
#209812 - 04/04/08 09:30 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
AllenAyres Moderator Offline

***

Registered: 12/29/03
Posts: 1530
Loc: Texas
Good luck, I've went down this road many times smile

Are your php and mysql installs up to speed? Version 5+ for both is highly recommended. smile

I ran the member rebuilds and topic rebuilds prior to importing, just to be sure.
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#209836 - 04/05/08 07:24 AM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: AllenAyres]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7567
Loc: Aberdeen, WA
It looks like it's all revolving around this error:

SQL Error: MySQL server has gone away

Either the MySQL server is dying, or the connection is being lost for some reason. Is this your own server or a hosted server?
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#209842 - 04/05/08 08:37 AM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Rick]
Travis T Offline
journeyman

Registered: 02/04/04
Posts: 86
OK - after removing those three really long posts the importer completed. So far so good. It took a few hours to run as the UBB classic I was importing from has about 80,000 posts. I will have to go through it pretty well to see if all of the settings came over as well.

Travis

Top
#209916 - 04/07/08 10:31 AM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
AllenAyres Moderator Offline

***

Registered: 12/29/03
Posts: 1530
Loc: Texas
Agree with Rick, sounds like the mysql server or connection was dying - could have been the larger posts, but it powered through my larger posts and I had some hundreds of pages long.
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top


Shout Box

Recent Topics
Changing title of forum
by Baby Boomer
Yesterday at 07:38 AM
Disable PM's for one group
by Musky
Yesterday at 07:10 AM
SQL Error: Got error 28 from storage engine ?
by jgeoff
09/04/08 05:03 PM
Stop All E-mail
by Mark S
09/04/08 11:16 AM
Ability to Truncate a thread from any point at any time.
by Naz
09/04/08 07:37 AM
Forum Stats
4025 Members
33 Forums
30880 Topics
156818 Posts

Max Online: 978 @ 06/24/07 08:19 PM