Reply
Highlighted
Member
Posts: 2
Registered: ‎11-06-2011
Accepted Solution

Problem with CIM and Drupal

So I'm putting in some CIM functionality in a Drupal 7 site I'm building.  I put the relevant parts of the sample scripts in a particular rule and then activated it, but I keep getting an error like this:

 

Warning: fsockopen(): unable to connect to ssl://:443 (No connection could be made because the target machine actively refused it. ) in send_request_via_fsockopen() (line 30 of C:\inetpub\wwwroot\myDrupal\includes\util.php).

 

I can run the sample php scripts dirtectly from the server and they work fine, but when I put the PHP into my site I get this exact error.  Has anyone encountered this before?

 

I'm pretty new at the server side of things.  Thanks in advance for any help you can give.


Accepted Solutions
Highlighted
Solution
Accepted by topic author Mister_Vimes
‎08-21-2015 01:58 AM
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Problem with CIM and Drupal

It sounds like the URL isn't making it to the connection function. An easy way to verify that would be to go to line 30 of the file referenced in the error and print out the value it's passing to fsockopen() and then exit. If the value has nothing in it, you then backtrack through the site code until you find where the URL got lost.

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author Mister_Vimes
‎08-21-2015 01:58 AM
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Problem with CIM and Drupal

It sounds like the URL isn't making it to the connection function. An easy way to verify that would be to go to line 30 of the file referenced in the error and print out the value it's passing to fsockopen() and then exit. If the value has nothing in it, you then backtrack through the site code until you find where the URL got lost.

Highlighted
Member
Posts: 2
Registered: ‎11-06-2011

Re: Problem with CIM and Drupal

That did it.  Thanks!