|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38021 Uncaught exception 'com_exception'
Submitted: 2006-07-06 14:58 UTC Modified: 2007-02-11 01:00 UTC
Avg. Score:3.8 ± 1.2
Reproduced:13 of 14 (92.9%)
Same Version:5 (38.5%)
Same OS:8 (61.5%)
From: zyablik at insc dot ru Assigned: wharmby (profile)
Status: No Feedback Package: COM related
PHP Version: 5.1.4 OS: XP SP2 IIS onboard
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: zyablik at insc dot ru
New email:
PHP Version: OS:


 [2006-07-06 14:58 UTC] zyablik at insc dot ru
Fatal Exeption on new COM("Word.Application")

Reproduce code:
Very well known example for testing "word.Application" COM object.
my line 13 is:

$word = new COM("Word.Application");
... the same as expected

Expected result:
Creation of new test word file.

Actual result:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Word<br/><b>Description:</b> Could not open macro storage.' in D:\dir\com.php:13 Stack trace: #0 D:\dir\com.php(13): variant->Add() #1 {main} thrown in D:\dir\com.php on line 13

What does that means?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-03 16:17 UTC]
Please try using this CVS snapshot:
For Windows:

By well known example I assume you mean something like the 

I have tried this example against the latest level of PHP 5.2 and it works fine. Can you please retry with the latest 5.2 snapshot and re-open the defect with details of your actual php script if the problem persists. 
 [2007-02-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-06-19 13:35 UTC] klemen at breg dot si
I using this CVS snapshot but i got the same error !
 [2009-12-24 05:12 UTC] imyhchou at gmail dot com
This error message happens when trying to instantiate MS WORD on a system with improper permissions.
You can refer to to solve it.
 [2012-02-03 07:20 UTC] amreshsinghmca at gmail dot com
please tell me how can generate word file using php and mysql. this word file also include image.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 14:01:27 2024 UTC