Page 1 of 1

Fatal error: Class 'COM' not found-Solved

Posted: 24 Jul 2017, 14:47
by karthikjoe
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.

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

Posted: 26 Jan 2018, 22:03
by copiousquirk
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?

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

Posted: 11 Oct 2018, 18:41
by ARecruiter
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).
Screenshot
Screenshot
1.PNG (37.47 KiB) Viewed 11344 times
The COM error disappeared and the .docx file parsed somewhat.

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

Posted: 11 Oct 2018, 18:56
by ARecruiter
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.