Skip to Content Skip to Menu

[SOLVED] Cannot import from JIM, JAM and other PMS

  • mycale
  • mycale
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
14 years 7 months ago #127502 by mycale
I am in the midst of converting my old J! 1.0.15 sit up to J! 1.5.15. In this move, I am going from Jim to uddeIM for my PMS system.

I first installed uddeIM in my 1.0.15 site and attempted to import my JIM messages there, but the import was not successful.

I then installed Jim on my 1.5.15 site, moved the messages over to that Jim installation using MySQLAdmin, and then installed uddeIM and attempted an import. Again, the import was not successful.

Am I missing a step in the import process. It seems fairly simple, and I have found no other users with this issue.

Thanks for any help you can provide.

Shane

Post edited by: mycale, at: 2010/03/22 12:56

Subject edited, made sticky

Post edited by: slabbi, at: 2010/03/25 16:39

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
14 years 7 months ago #127516 by slabbi
Replied by slabbi on topic Re:Cannot import from JIM
Hi,

I have tested the import of messages for most PMS. Also Jim was fine when I did the tests last time (long ago). Maybe there is new a bug in the importer because I changed several issues.

Can you send me a SQL dump of some (maybe 3-5) example messages? I need the JIM tables and the messages that uddeIM creates in the uddeIM table.

Or are the messages missing completely in the DB?

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

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

  • mycale
  • mycale
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
14 years 7 months ago #127520 by mycale
Replied by mycale on topic Re:Cannot import from JIM
I can send an SQL dump with the jos_jim table and the jos_uddeim tables. There are only 209 messages on the Jim table. No messages in the uddeIM tables.

The importer is moving NOTHING from the Jim table to the uddeIM tables.

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
14 years 7 months ago #127553 by slabbi
Replied by slabbi on topic Re:Cannot import from JIM
Found the bug. It was introduced with uddeIM 1.8 or 1.9.

The fix is quite simple:

Open "admin.uddeim.php",
goto "function uddeIMfixImport($pmessage)" (~line 2900)

before the closing "}" add a "return $pmessage;" so the function looks like:

[code:1]function uddeIMfixImport($pmessage) {
$pmessage=str_replace("<p>", "", $pmessage);
[...]
$pmessage=preg_replace("%\n(\s*\n)+%", "\n\n", $pmessage);
return $pmessage;
}

[/code:1]

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

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

  • mycale
  • mycale
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
14 years 7 months ago #127569 by mycale
Replied by mycale on topic Re:Cannot import from JIM
Thanks slabbi! Worked like a charm. Thanks for such a quick response!

Shane

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

  • heyai
  • heyai
  • OFFLINE
  • Posts: 324
  • Thanks: 79
  • Karma: 24
14 years 6 months ago #128019 by heyai
Replied by heyai on topic Re:Cannot import from JIM
Heh, just spent a couple of hours to find out why I couldn't import from JAM. After finding the solution I found this thread :pinch:

edit: thanks for changing the topic, might save others some work :laugh:

Post edited by: heyai, at: 2010/03/26 22:22

hey-ai - the community for asian guys and non-asian girls

The search bar is your friend, not just decoration!

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum