Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
6 registered (SteveS, sampsonzurich, Bjab, FordDoctor, Stan, Pilgrim), 27 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/17/12
Posts: 3
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#209805 - 04/04/08 08:49 PM Importer from UBB CLassic 6.7.3 Fails - Some data imported
Travis T Offline
member
Registered: 02/04/04
Posts: 138
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
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#209807 - 04/04/08 09:42 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
member
Registered: 02/04/04
Posts: 138
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 10:03 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
member
Registered: 02/04/04
Posts: 138
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 10:08 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
member
Registered: 02/04/04
Posts: 138
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 10:50 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
Travis T Offline
member
Registered: 02/04/04
Posts: 138
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/05/08 12:30 AM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
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 10:24 AM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: AllenAyres]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
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?
Top
#209842 - 04/05/08 11:37 AM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Rick]
Travis T Offline
member
Registered: 02/04/04
Posts: 138
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 01:31 PM Re: Importer from UBB CLassic 6.7.3 Fails - Some data imported [Re: Travis T]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
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



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
Today at 12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image