Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Phonebook Import Issue on FOP2 2.29

Phonebook Import Issue on FOP2 2.29

Scheduled Pinned Locked Moved Support
8 Posts 3 Posters 196 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I
    I
    initial-z
    wrote on last edited by
    #1

    Hi, Thanks for this really nice FOP2 ... 🙂

    I got an issue when importing csv on phonebook. it said 15 record imported but when check on db it's there with empty value on each field.

    This does not happen on 2.28 though. Only on 2.29

    mysql> select * from visual_phonebook;
    +----+-----------+----------+---------+--------+--------+-------+---------+---------+---------+
    | id | firstname | lastname | company | phone1 | phone2 | owner | private | picture | context |
    +----+-----------+----------+---------+--------+--------+-------+---------+---------+---------+
    | 63 |           |          |         |        |        |       |         | NULL    |         |
    | 62 |           |          |         |        |        |       |         | NULL    |         |
    | 61 |           |          |         |        |        |       |         | NULL    |         |
    | 59 |           |          |         |        |        |       |         | NULL    |         |
    | 60 |           |          |         |        |        |       |         | NULL    |         |
    | 58 |           |          |         |        |        |       |         | NULL    |         |
    | 56 |           |          |         |        |        |       |         | NULL    |         |
    | 57 |           |          |         |        |        |       |         | NULL    |         |
    | 55 |           |          |         |        |        |       |         | NULL    |         |
    | 53 |           |          |         |        |        |       |         | NULL    |         |
    | 54 |           |          |         |        |        |       |         | NULL    |         |
    | 51 |           |          |         |        |        |       |         | NULL    |         |
    | 52 |           |          |         |        |        |       |         | NULL    |         |
    | 49 |           |          |         |        |        |       |         | NULL    |         |
    | 50 |           |          |         |        |        |       |         | NULL    |         |
    +----+-----------+----------+---------+--------+--------+-------+---------+---------+---------+
    15 rows in set (0.00 sec)
    

    Can you please give me a clue on this ? ... is this a bug or some changes need to be done on server ?

    Thanks

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Without having access to the CSV file its hard to say.. you can send it to me privately if you want and I can test it out.

      1 Reply Last reply
      0
      • I
        I
        initial-z
        wrote on last edited by
        #3

        Hi Nicolás,

        Thanks for your reply, i have attach the csv file for testing.

        Really appreaciate it ... 🙂

        1 Reply Last reply
        0
        • N
          N
          nicolas
          wrote on last edited by
          #4

          I have tried that file and worked perfectly for importing on my system. File is in DOS format, tried converting to UNIX format and worked too.. So, I have no idea why are you having issues?

          1 Reply Last reply
          0
          • I
            I
            initial-z
            wrote on last edited by
            #5

            I just try once more and it's still not working. i did not know what's wrong ... but i can only add phone book using add button.

            Thanks for the help

            1 Reply Last reply
            0
            • D
              D
              Don
              wrote on last edited by
              #6

              I had the exact same problem.

              Turns out that mysql_real_escape_string doesn't return any data on my system (for whatever reason).

              When I change the following line in fop2/lib/dbgrid.php:
              FROM:
              $misdatos[]=mysql_real_escape_string(trim($columns[$nro]));
              TO:
              $misdatos[]=mysql_escape_string(trim($columns[$nro]));

              The import succeeds.

              1 Reply Last reply
              0
              • N
                N
                nicolas
                wrote on last edited by
                #7

                As I replied on another post, thanks to the tip by Don, I made an alternate dbgrid.php version, try replacing your current one with this and see if it fixes the problem.

                1 Reply Last reply
                0
                • I
                  I
                  initial-z
                  wrote on last edited by
                  #8

                  Hi Don and Nicolás,

                  Thanks for the tips ... it works ... 🙂

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups