php.net |  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
Votes:22
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zyablik at insc dot ru
New email:
PHP Version: OS:

 

 [2006-07-06 14:58 UTC] zyablik at insc dot ru
Description:
------------
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
$word->Documents->Add();



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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-03 16:17 UTC] wharmby@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

By well known example I assume you mean something like the 
following: http://www.pastebin.ca/338618.

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 http://figured-it-out.com/figured-out.php?sid=24 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: Sat Dec 21 17:01:58 2024 UTC