Results 1 to 8 of 8
  1. #1
    Generating docx using PHPword gives Import Error on Mac

    Member Since
    May 16, 2013
    Posts
    4
    Generating docx using PHPword gives Import Error on Mac
    Hi All,

    I am using PHPword library and creating a doc file from a website. It is running perfectly on Windows and Linux machines but am getting "Import Error" on Mac machine when I try to open it using iWork. When I email that file and try opening on a Mac machine, it does not work.
    I even tried generating the doc file from the Mac machine directly using the same process (PHPword library), I get the same "Import Errror" on Mac.

    Can somebody help me out on this? Its a very crucial issue that I am facing.

  2. #2
    Generating docx using PHPword gives Import Error on Mac
    chscag's Avatar
    Member Since
    Jan 23, 2008
    Location
    Fort Worth, Texas
    Posts
    45,202
    Specs:
    27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, iPhone 6+, 3 iPods, Yosemite
    Apparently, the docx file created by PHP is not compatible with iWork Pages. I'm assuming you don't have MS Office for the Mac? And why would you want to use PHP to create a docx file on your Mac when iWork Pages can do it? I guess I should ask why you're even using PHP when there are so many free programs for Windows and Linux which can create Office files easily? Also for the Mac.

  3. #3
    Generating docx using PHPword gives Import Error on Mac

    Member Since
    May 16, 2013
    Posts
    4
    I am using a web application in which I've a lot of memories. I am using PHPword to export those memories into a doc file for my future reference.
    Please help me out on this as my client is getting angry.

  4. #4
    Generating docx using PHPword gives Import Error on Mac
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    You're going to have to elaborate on your setup here. Why are you using a web application here? Is the content stored online in a database or something similar?

    It sounds like you're trying to run this off of a web server running on your Mac. OS X uses Apache just as most Linux installs do so it isn't erroring out because of compatibility issues. Have you configured your web server properly?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  5. #5
    Generating docx using PHPword gives Import Error on Mac

    Member Since
    May 16, 2013
    Posts
    4
    yes the server is configured properly as I've already mentioned that I am able to export my memories into .docx format and they are open-able in windows and Linux machines but not in Mac machine. The content is stored online into a DB.
    The doc file that is exported via PHPword, contains text and images and I can open the file in Windows and Linux machines but when I export the same file and try to open it into Mac machine, it gives me "import error" and the file is not getting opened at all.

  6. #6
    Generating docx using PHPword gives Import Error on Mac
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Have you tried using something other than iWork to see if it's the file or the application? LibreOffice is free and might help with this test.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  7. #7
    Generating docx using PHPword gives Import Error on Mac

    Member Since
    May 16, 2013
    Posts
    4
    I've never tried Libreoffice on Mac. My client loves using iWork and his friends too. So, he's insisting me to resove the problem for iWork.
    I respect your suggestion, but I am bounded to resolve this issue for iWork.

  8. #8
    Generating docx using PHPword gives Import Error on Mac
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    I wasn't suggesting you switch. I simply meant that you try opening the document in LibreOffice to see whether or not the document is in fact corrupted.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. iTunes import error
    By malc1 in forum OS X - Apps and Games
    Replies: 0
    Last Post: 02-17-2013, 05:37 AM
  2. error message opening .docx in pages...help!
    By TampaGirl in forum Switcher Hangout
    Replies: 3
    Last Post: 12-11-2012, 10:33 AM
  3. Python module import error
    By barvazos in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 12-31-2011, 04:59 AM
  4. iMovie - Error During Import (pic from dsktp)
    By Kdub07 in forum Movies and Video
    Replies: 1
    Last Post: 12-02-2007, 07:19 PM
  5. imovie import error
    By christm in forum OS X - Apps and Games
    Replies: 2
    Last Post: 01-09-2007, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •