Hi. The problem is that for some reason, the _SERVER and HTTP_SERVER_VARS variables are not set in your web server. (It could be the PHP version or configuration). This has been a problem too with the use of getenv and _ENV (in Windows servers) so I cannot rely on those two either.
Previous versions of the CMS module didn't rely on those variables. That's why you didn't have problems before.
This code patch tries to get the string by all four means.
Edit the cm/cm_lib.inc.php script file and delete the lines 85, 86 and 87 (those defining cm_http_useragent, cm_php_self and cm_server_name), then add these lines:
Code:
$cm_http_useragent = $_SERVER["HTTP_USER_AGENT"];
if (!$cm_http_useragent) {
$cm_http_useragent = $HTTP_SERVER_VARS["HTTP_USER_AGENT"];
if (!$cm_http_useragent) {
$cm_http_useragent = $_ENV["HTTP_USER_AGENT"];
if (!$cm_http_useragent) {
$cm_http_useragent = getenv("HTTP_USER_AGENT");
}
else $cm_http_useragent = "";
}
}
$cm_php_self = $_SERVER["PHP_SELF"];
if (!$cm_php_self) {
$cm_php_self = $HTTP_SERVER_VARS["PHP_SELF"];
if (!$cm_php_self) {
$cm_php_self = $_ENV["PHP_SELF"];
if (!$cm_php_self) {
$cm_php_self = getenv("PHP_SELF");
}
else $cm_php_self = "";
}
}
$cm_server_name = $_SERVER["SERVER_NAME"];
if (!$cm_server_name) {
$cm_server_name = $HTTP_SERVER_VARS["SERVER_NAME"];
if (!$cm_server_name) {
$cm_server_name = $_ENV["SERVER_NAME"];
if (!$cm_server_name) {
$cm_server_name = getenv("SERVER_NAME");
}
else $cm_server_name = "";
}
}
After this, the editor should work for you.
Regards,
Mario A. Valdez-Ramirez