Skip to Content Skip to Menu

JIM-to-uddeIM Import Fails

16 years 2 months ago #73659 by ShoestringWebs
JIM-to-uddeIM Import Fails was created by ShoestringWebs
I am moving from JIM 1.0.1 to uddeIM 1.3 (downloaded 9/7). All has gone well until I tried to import approx. 22,000 messages. Using Vista, I receive a 500 server error. Using IE, the "wait for import" page appears, but no import occurs.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 2 months ago #73661 by slabbi
Replied by slabbi on topic Re:JIM-to-uddeIM Import Fails
Well, it seems that the script dies (don't know how long it takes to import 22k messages but I am pretty sure that it will exceed the 30secs most provider allow a php script to run).

Another problem might be that php has not enough working memory. UddeIM reads all messages first (22k x 2kb per message = > 44mb memory). So it is also required to increase the working memory.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 2 months ago #73662 by slabbi
Replied by slabbi on topic Re:JIM-to-uddeIM Import Fails
When you cannot change these values there is a way to import the messages but this requires some script modifications:

[code:1] $sql="SELECT id, whofrom, username AS whoto, date, message, subject, outbox, readstate FROM #__jim";
[/code:1]

change this to

[code:1] $sql="SELECT id, whofrom, username AS whoto, date, message, subject, outbox, readstate FROM #__jim WHERE id>=0 AND id<5000";
[/code:1]

then execute the import.

Change the WHERE clause to 5000 and 10000 and import again, change to 10000 and 15000 and...

Not very convenient but should work.

When the import tab is not longer shown you can reset the value in the config file (pmsinportdone=0).

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

16 years 2 months ago #73684 by ShoestringWebs
Replied by ShoestringWebs on topic Re:JIM-to-uddeIM Import Fails
Thanks for thinking this through. Although I do have full access to my server, I think that I will use your second suggestion.

Please Log in or Create an account to join the conversation.

16 years 2 months ago #73685 by ShoestringWebs
Replied by ShoestringWebs on topic Re:JIM-to-uddeIM Import Fails
In which file should I make the script change?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 2 months ago #73694 by slabbi
Replied by slabbi on topic Re:JIM-to-uddeIM Import Fails
Its in admin.uddeim.php

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum