User Guide Troubleshooting PHP runtime errors Why do I get "Uncaught Error: Class 'COM' not found" error in PHP |
Why do I get "Uncaught Error: Class 'COM' not found" error in PHP |
The following error might occur at runtime when using EasyXLS Excel library for PHP:
Fatal error: Uncaught Error: Class 'COM' not found
at line:
$workbook = new COM("EasyXLS.ExcelDocument");
The error is raised because PHP server does not allow creating COM objects from .NET. |
Reason: COM and .NET extension not enabledIn order to enable COM and .NET extension in PHP, add the following lines in php.ini:
[COM_DOT_NET] extension=php_com_dotnet.dll
php.ini file can be found at the location where PHP was installed. Restart IIS Server. |
Contact us for any other reasonsIf none of the above, contact us at support@easyxls.com with details about your application configuration and the full error message. |
Available for: Professional, Excel Writer, Excel Reader, Express Excel Writer
|