Previous Thread
Next Thread
Print Thread
Hop To
#3365 09/15/2006 2:35 PM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
I may have asked this before, am trying to import to versions 7 again

I did the install of the software, that works..

Then went to do the import script
now this error


Parse error: parse error, unexpected T_STRING, expecting ')' in /homepages/1/d118328893/htdocs/clubadventist/forum/importers/threads_import.php on line 512


http://clubadventist.com/forums

No longer following the carrot
Stan #3366 09/15/2006 3:34 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Dangit, I forgot to fix that one. Replace line 512 of threads_import.php with this:

Code
	$dbh->do_placeholder_query($query,array($new_user,$user_data['U_Email'],$user_data['U_Fakeemail'],$user_data['U_Signature'],$raw_sig,$user_data['U_Homepage'],$user_data['U_Occupation'],$user_data['U_Location'],$user_data['U_PostsPer'],$user_data['U_Display'],$user_data['U_Notify'],$user_data['U_Extra1'],'',$user_data['U_Extra2'],$user_data['U_Extra3'],$user_data['U_Extra4'],$user_data['U_Extra5'],$user_data['U_Picture'],'1',$user_data['U_Visible'],$user_data['U_AcceptPriv'],$user_data['U_Title'],$user_data['U_FlatPosts'],$user_data['U_Color'],$user_data['U_TimeOffset'],$user_data['U_Totalposts'],$user_data['U_ShowSigs'],$rating,$user_data['U_Rates'],$user_data['U_PicWidth'],$user_data['U_PicHeight'],$user_data['U_AdminEmails'],$user_data['U_Hobbies'],$user_data['U_Birthday'],$user_data['U_ShowBday'],$config['TIME_FORMAT'],$user_data['U_FloodControl']));

Last edited by Rick; 09/15/2006 3:34 PM.
Stan #3367 09/15/2006 3:59 PM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
Ok thanks.... that worked now I have this error

Code
SQL Error #: 0
Query: insert into ubbt_FORUM_PERMISSIONS (GROUP_ID,FORUM_ID,FORUM_PERMISSION_CAN_READ,FORUM_PERMISSION_CAN_CREATE_TOPIC,FORUM_PERMISSION_CAN_CREATE_REPLY) values ( '' , 100 , 1 , 0 , 0 ) 

this was on
importers/threads_import.php?ubb=boards

Last edited by Rick; 09/18/2006 4:37 PM.

http://clubadventist.com/forums

No longer following the carrot
Stan #3368 09/15/2006 4:06 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, that looks like perhaps you have some bad group, maybe empty, in your old forums. We can try to account for that in the importer.

Line 704 of threads_import.php looks like this:

Code
if ($group > 4) {
	$group = $grouparray[$group];
} // end if

Right after that, add this:

if (!$group) continue;

Last edited by Rick; 09/15/2006 4:06 PM.
Rick #3374 09/15/2006 8:31 PM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
ok that is working.... thanks... !!!!


http://clubadventist.com/forums

No longer following the carrot
Stan #3461 09/18/2006 3:12 PM
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Has the importer file that caused Stan's problems been corrected, or will I also run into the same problem?

Daryl Fawcett #3463 09/18/2006 3:19 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'd apply both of those fixes. The first one definitely needs to be done, the second one is a good one to put in just in case you have any messed up groups.

Rick #3465 09/18/2006 4:22 PM
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I was referring to the release itself.

Will the importer file be corrected for the release of version 7 itself?

Daryl Fawcett #3466 09/18/2006 4:23 PM
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Are you also aware of the width of this topic?

I need to scroll over just to read the posts.

Daryl Fawcett #3468 09/18/2006 4:36 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yes, the importers are bugfixed and updated at the same time we put out a new version 7 update. So with RC1, both of these will be fixed.

As for the width of the topic, there is one post where it has a long string of words with no spaces. In a browser that supports it, such as Firefox, you'll get a horizontal scroll bar in the post itself so it doesn't stretch the whole layout. IE6 doesn't support this, though I think IE7 does.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,124 guests, and 219 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)