New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Generating docx using PHPword gives Import Error on Mac


Post Reply New Thread Subscribe

 
Thread Tools
jayesh_galaxy

 
Member Since: May 16, 2013
Posts: 4
jayesh_galaxy is on a distinguished road

jayesh_galaxy is offline
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.
QUOTE Thanks
chscag

 
chscag's Avatar
 
Member Since: Jan 23, 2008
Location: Fort Worth, Texas
Posts: 39,459
chscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond repute
Mac Specs: 27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, 3 iPods, OS X Mavericks

chscag is offline
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.
QUOTE Thanks
jayesh_galaxy

 
Member Since: May 16, 2013
Posts: 4
jayesh_galaxy is on a distinguished road

jayesh_galaxy is offline
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.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,827
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
QUOTE Thanks
jayesh_galaxy

 
Member Since: May 16, 2013
Posts: 4
jayesh_galaxy is on a distinguished road

jayesh_galaxy is offline
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.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,827
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
QUOTE Thanks
jayesh_galaxy

 
Member Since: May 16, 2013
Posts: 4
jayesh_galaxy is on a distinguished road

jayesh_galaxy is offline
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.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,827
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Operating system update | Colour Profiles »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
A Switchers guide to recommended free Apps to download to your new Mac the8thark Switcher Hangout 67 03-19-2013 10:48 AM
OS 10.7 Lion feature/rumour roundup the8thark Apple Rumors and Reports 44 08-17-2011 02:03 PM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 06:20 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?