logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Issue with PHP version 5.4.5, class 'COM' not found
Author
hankman



Joined: 08 Jan 2008
Posts: 24
Location: Veghel, NL

PostPosted: Sat 21 Jul '12 0:01    Post subject: Issue with PHP version 5.4.5, class 'COM' not found Reply with quote

Hi,

Today I updated my webservers with the new php 5.4.5 version. I'm using a php script to monitor the servers, checking WMI parameters.

Now the script won't run anymore and php reports the following error: Fatal error: Class 'COM' not found in C:\apache24\htdocs\wserver\wmicheck.php on line 15.

Maybe someone else experienced the same thing, class 'COM' not found. Shocked

At php.net there was already someone else reporting the same bug. I reinstalled php 5.4.4 and everything runs like clockwork again. Now I just wait until php.net fixes this bug!

Regards to you all!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 21 Jul '12 1:16    Post subject: Reply with quote

You need to load an extension from the ext folder. See also http://www.apachelounge.com/viewtopic.php?p=22109#22109
Back to top
hankman



Joined: 08 Jan 2008
Posts: 24
Location: Veghel, NL

PostPosted: Sat 21 Jul '12 1:41    Post subject: Reply with quote

Your answer is not satisfying. Why don't you explain this the right way ?
The given link does not enlighten the problem!!!

I've found the following on the internet:
As of PHP 5.4.5 and above the COM extension isn't compiled into PHP anymore.
It'll still be delivered with the standard PHP release but must be enclosed with the "extension = php_com_dotnet.dll" directive in php.ini.


Is it so difficult to give me such a decent and explaining answer?

But thanks, it was somewhat helpfull to find the way to fix the error.

Admin note:
Please do not use such a tone. James pointed you to the correct direction, so be happy with his answer.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 21 Jul '12 11:02    Post subject: Reply with quote

James Blond wrote:
You need to load an extension from the ext folder.

That was a correct answer Wink and the forum link told you which dll to load Wink
Back to top
anusinghjan2



Joined: 12 Aug 2013
Posts: 1
Location: india

PostPosted: Mon 12 Aug '13 12:15    Post subject: Reply with quote

Hi, I tried to add "extension=php_com_dotnet.dll" in php.ini file then too I am getting error "Fatal error: Class 'COM' not found in C:\xampp\htdocs\..."
Is there any other solution?? Sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 12 Aug '13 14:13    Post subject: Reply with quote

In your php.ini

display_startup_errors = On

which version of exampp do you use?
Back to top


Reply to topic   Topic: Issue with PHP version 5.4.5, class 'COM' not found View previous topic :: View next topic
Post new topic   Forum Index -> Other Software