Installation
fsockopen() function is disabled on this server
Started April 5, 2012 by Fil
Hi,when I want to configure Payment Modules I get this:fsockopen() function is disabled on this server.Support of my hosting says it is allowed and function_exists('fsockopen') returns true. Phpinfo() shows allow_url_fopen is On but allow_url_include is Off. Might it be the problem? Or something else? Does anybody know solution? Thanks.
7 replies
Is this when you try to configure the Paypal processor module?Try putting this in a PHP file and visit the file in your browser and let me know what it says:[code]<?phpif( function_exists('fsockopen') ) { echo "fsockopen exists. ";} else { echo "fsockopen does not exist. ";}if (stristr(ini_get('disable_functions'), "fsockopen")) { echo "fsockopen is disabled. ";} else { echo "fsockopen is enabled. ";}[/code]
Hi Ryan,it is when I click to Paypal Module item in Configuration menu in administration. I put the code to php file and launched. I received this:fsockopen exists.fsockopen is disabled.
Hmm, odd.Try removing these lines 84-87 in /payments/paypalIPN.php[code]if (stristr(ini_get('disable_functions'), "fsockopen")) {pp_mail_error ( "fsockopen is disabled on this server, this script can not post information to the PayPal server for IPN confirmation.");die();}[/code]
Hi Ryan,unfortunately nothing changes. I haven't said yet everytime I click on Paypal Module item I receive also this e-mail message:fsockopen is disabled on this server, this script can not post information to the nochex server for IPN confirmation.Thanks, Filip
... and also in Main Config in Misc Settings there is no radio button selected within "Use PayPal Subscription features?" item. Also there is no button selected there even when I choose one and save configuration.Fil
Try deleting this from /payment/nochexAPC.php lines 62-66:[code]if (stristr(ini_get('disable_functions'), "fsockopen")) { nc_mail_error ( "fsockopen is disabled on this server, this script can not post information to the nochex server for IPN confirmation.");echo "fsockopen() function is disabled on this server."; die();}[/code]
Hi Ryan,Great! Now it looks good!Thank you very much, Fil