Fatal error: Class 'COM' not found-Solved

Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules
Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
Post Reply
karthikjoe
Posts: 40
Joined: 19 Jul 2017, 05:31
what is two(2) plus three(3) ?: 5
Location: Madurai,Tamilnadu,India

Fatal error: Class 'COM' not found-Solved

Post by karthikjoe » 24 Jul 2017, 14:47

Hi every one i just solved this issue (Fatal error: Class 'COM' not found in C:\xampp\htdocs\OpenCATS-0.9.3-3\lib\DocumentToText.php on line 362)
by adding
[PHP_COM_DOTNET]
extension=php_com_dotnet.dll

Extension field @ php.ini file.

copiousquirk
Posts: 2
Joined: 25 Jan 2018, 17:05
what is two(2) plus three(3) ?: 5

Re: Fatal error: Class 'COM' not found-Solved

Post by copiousquirk » 26 Jan 2018, 22:03

Hi Karthikjoe

Can you tell me where to add this file? I can't seem to find the file you are referring to....

Am I putting this in this file: C:\xampp\htdocs\OpenCATS-0.9.3-3\lib\DocumentToText.php

Or is it a php file within another folder?

ARecruiter
Posts: 3
Joined: 11 Oct 2018, 18:33
what is two(2) plus three(3) ?: 5

Re: Fatal error: Class 'COM' not found-Solved

Post by ARecruiter » 11 Oct 2018, 18:41

copiousquirk wrote:
26 Jan 2018, 22:03
Hi Karthikjoe

Can you tell me where to add this file? I can't seem to find the file you are referring to....

Am I putting this in this file: C:\xampp\htdocs\OpenCATS-0.9.3-3\lib\DocumentToText.php

Or is it a php file within another folder?
Hi there,

I believe I managed to decipher what Karthikjoe was saying (I have no coding experience). You need to add his code to the php.ini file, which in my case is in c:\xampp\php folder. Open php.ini in a text editor like notepad++. You'll see 'Dynamic Extensions' - I think this is what he meant by the extension field. I then copy and pasted his code at the bottom to line 924 and 925

Code: Select all

[PHP_COM_DOTNET]
extension=php_com_dotnet.dll
at the bottom, like so (see picture).
1.PNG
Screenshot
1.PNG (37.47 KiB) Viewed 18 times
The COM error disappeared and the .docx file parsed somewhat.

ARecruiter
Posts: 3
Joined: 11 Oct 2018, 18:33
what is two(2) plus three(3) ?: 5

Re: Fatal error: Class 'COM' not found-Solved

Post by ARecruiter » 11 Oct 2018, 18:56

EDIT: Nah, I tell a lie. This doesn't help with uploading a document and ticking the 'Resume' button. I really need to learning coding.

Post Reply