Hi, I installed my first Drupal 6 site using acquia drupal, and everything seemed to be running fine yesterday. But today I get the following error on my site (www.nirvan.com):

Fatal error: Call to undefined function: stream_socket_client() in /home/1575/domains/nirvan.com/html/modules/acquia/acquia_agent/acquia_agent_streams.inc on line 103

any suggestions for the fix?

thanks much...

Comments

the1secondfilm’s picture

i looked up the code on line 103 of acquia_agent_streams.inc and it says:

$fp = stream_socket_client('ssl://'. $uri['host'] .':'. $port, $errno, $errstr, 20, STREAM_CLIENT_CONNECT, $context);

I'm new to this. Any guidance is much appreciated.

the1secondfilm’s picture

Weird, the site started to load again.

Then I went to login and again got the WSOD with the same error message...

the1secondfilm’s picture

Okay, i fixed it.

if anyone else has this problem, here is what i learned:

My PHP settings were off; the had been reset to PHP 4 on Media Temple even though I had set it to PHP 5 when initially installing the site in a test folder. apparently, the PHP was reset automatically when I had to re-upload the .htaccess file when migrating my site from a sub folder to the root.

I reset the PHP to 5 and things seem to be working again.

s.daniel’s picture

If you get this error often following entry to your .htaccess will help:

#
# PHP 5 
#

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php