I get this message at the top of the login page to the members area and cannot login. - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: php_uname() has been disabled for security reasons in /home/listbuil/public_html/amember/common.inc.php on line 1738 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in /home/listbuil/public_html/amember/common.inc.php on line 1789 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in /home/listbuil/public_html/amember/common.inc.php on line 1789 WARNING: Cannot modify header information - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in line 1633 of file common.inc.php - - - - - - - - - - - - - - - - - - - - - - - - - - - After I login as a regular member I get this error message and nothing more: - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: php_uname() has been disabled for security reasons in /home/listbuil/public_html/amember/common.inc.php on line 1738 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in /home/listbuil/public_html/amember/common.inc.php on line 1789 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in /home/listbuil/public_html/amember/common.inc.php on line 1789 WARNING: Cannot modify header information - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in line 1633 of file common.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in line 54 of file new_rewrite.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in line 609 of file wordpress.inc.php WARNING: Cannot modify header information - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in line 58 of file login.php - - - - - - - - - - - - - - - - - - - - - - - - - - - Then I tried login to Admin area for aMember and get at the top of the screen - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: php_uname() has been disabled for security reasons in /home/listbuil/public_html/amember/common.inc.php on line 1738 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in /home/listbuil/public_html/amember/common.inc.php on line 1789 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/listbuil/public_html/amember/common.inc.php:1738) in /home/listbuil/public_html/amember/common.inc.php on line 1789 - - - - - - - - - - - - - - - - - - - - - - - - - - - Can anyone explain what is going on and how I can fix this? Mike Hill
Your host providor has disable the function. aMember uses the function to decide whether your site is running Windows. If you are able you should be able to set it up and remove the statements, try aMember support they may do it for you or get your web host to reinstate the function. Larry
I'm having the exact same problem just today. Jenolan...I'm not sure I understand your reply correctly. If it's a problem with our host provider as you say...why would we contact amember support? If I do contact my host and ask them to reinstate the function, how would I describe this function that needs to be reinstated?
open the file and search for php_uname() in the code. There are two (if I remember properly) all they do is check if the installation is windows. line 337 Code: if (substr(php_uname(), 0, 7) == "Windows") { if ($post) $ret = `$curl $params -d "$post" "$url"`; else $ret = `$curl $params "$url"`; } else { $url = escapeshellarg($url); $post = escapeshellarg($post); if ($post) $ret = `$curl $params -d $post $url`; else $ret = `$curl $params $url`; } if NOT windows replace with Code: $url = escapeshellarg($url); $post = escapeshellarg($post); if ($post) $ret = `$curl $params -d $post $url`; else $ret = `$curl $params $url`; if windows replace with Code: if ($post) $ret = `$curl $params -d "$post" "$url"`; else $ret = `$curl $params "$url"`; Line 1737 Code: // workaround for Windows root_dir detection if (($config['root_dir'] == dirname(__FILE__)) && (substr(php_uname(), 0, 7) == "Windows") ){ $config['root_dir'] = preg_replace('|^[A-Za-z]:|', '', $config['root_dir']); $config['root_dir'] = str_replace("\\", '/', $config['root_dir']); } if you are NOT windows delete it. if you are windows replace with... Code: // workaround for Windows root_dir detection if ($config['root_dir'] == dirname(__FILE__) ){ $config['root_dir'] = preg_replace('|^[A-Za-z]:|', '', $config['root_dir']); $config['root_dir'] = str_replace("\\", '/', $config['root_dir']); } Do this after backing up I am about to leave for Sydney to take FEL for tractor to be fixed... just be careful.