I'm getting an uncaught exception with the code below and don't know why (account98 is my dev account). It's probably a silly error on my part, but I don't see it. Please help.
<?php
require_once("afcs.php");
$am = new AFCSAccount("https://connectnow.acrobat.com/account98");
?>
Here is the stack trace:
<b>Fatal error</b>: Uncaught exception 'AFCSError' in /home/babblema/public_html/afcs.php:504
Stack trace:
#0 /home/babblema/public_html/afcs.php(387): AFCS->http_get('https://connect...', Array)
#1 /home/babblema/public_html/afcs.php(224): AFCSAccount->do_initialize()
#2 /home/babblema/public_html/service.php(16): AFCSAccount->__construct('https://connect...')
#3 {main}
thrown in <b>/home/babblema/public_html/afcs.php</b> on line <b>504</b><br />
Views
Replies
Total Likes
Without more information I am guessing you don't have SSL enabled in your php.ini.
Check your PHP error logs (Apache error logs if you are using Apache), you should see the root cause.
If you see an error like this, that's probably the cause:
Warning: fopen( http://connectnow.acrobat.com/xxxx?mode=xml&accountonly=true&) [function.fopen]: failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? in /home/a9897012/public_html/cocomo.php on line 441
To enable SSL I think you need to have the "php_openssl.*" extension uncommented in your php.ini (and of course you need to have the module available)
Views
Replies
Total Likes
Is SSL absolutely necessary? I'm using siteground.com to host my site and it's an extra charge to enable SSL. I guess I could use Apache, but that is also a bit of work to set up.
Views
Replies
Total Likes
I don't mean your website needs to use SSL, I mean PHP needs to be configured to be able to access services on HTTPS, that requires the SSL module to be enabled.
Views
Replies
Total Likes
Sorry I'm new to php and web programming, but I don't believe that my problem is that openssl is disabled. A phpinfo() call shows this:
OpenSSL support | enabled |
OpenSSL Version | OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 |
Also when I go to my account and view current the versions of all the software installed on the server I see this:
Views
Replies
Total Likes
STOP SENDING THINGS TO MMCGEEHAN, I'M TIRED OF IT
Views
Replies
Total Likes
Don't know what you are talking about MMCGEEHAN
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies