Menu

#2723 (ok 2.11.8) Import/export fails because of Mac-files

2.11.7.1
fixed
1
2014-11-10
2008-07-19
No

I downloaded PhpMyAdmin on a Mac and put up the files on my webserver. After that, I got some problems with importing and exporting file. This may happen in other pages as well, but so far I just know of this.

The first this was that some text appears in the import/export site when I want to select what to export. The text looks like this:
----
Mac OS X 2??ATTRH?U*??J?Jcom.apple.quarantine0000;48013329;Safari;95774F79-5506-4F3E-BE79-F25DBC1166C0|com.apple.SafariThis resource fork intentionally left blank ??
----
If I pressed "Go" to export a database to a file, I got a PHP error that a header has already been sent by "../libraries/export/._csv.php".
I found out that the Mac OS creates a new file for each file in every folder starting with "._[filename]" (a hidden file in the UNIX system).
The file contained the text like in the export/import page.

So it imported all the files in the “..libraries/export/” folder, and got a error because the text from the "._" file was included first.

A possible solution would be that files starting with "._" should not be included.

Discussion

  • TeWeE | Pelle Ravn

    Screenshot from PhpMyAdmin with the text

     
  • TeWeE | Pelle Ravn

    Logged In: YES
    user_id=864468
    Originator: YES

    By the way. When I deleted all the "._" files in all folders, everyting worked fine again.

     
  • Isaac Bennetch

    Isaac Bennetch - 2008-07-20

    Logged In: YES
    user_id=835650
    Originator: NO

    Is the webserver running on a Mac, or did you download phpMyAdmin to the Mac, uncompress, and then upload to your (non-Mac) webserver?

     
  • TeWeE | Pelle Ravn

    Logged In: YES
    user_id=864468
    Originator: YES

    I downloaded phpMyAdmin on a Mac, and uploaded it to a Windows server running Apache.

     
  • Marc Delisle

    Marc Delisle - 2008-07-23
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2008-07-23
    • priority: 5 --> 1
    • summary: Import/export fails because of Mac-files --> (ok 2.11.8) Import/export fails because of Mac-files
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2008-07-23

    Logged In: YES
    user_id=210714
    Originator: NO

    Fixed in subversion, thanks for reporting.

     
  • Marc Delisle

    Marc Delisle - 2008-07-28
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed