Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: mahesh on Dec 28, 2023, 07:33 AM

Title: Unable to insert image in File Manager HTML editor: Call to undefined function
Post by: mahesh on Dec 28, 2023, 07:33 AM
Question:
Unable to insert image in File Manager HTML editor: Call to undefined function get_magic_quotes_gpc()
Symptoms
Server Error
500 Error
Call to undefined function get_magic_quotes_gpc()

Cause
This is caused by Plesk bug PPPM-13901 and will be fixed in future updates.

Resolution
Edit the file /usr/local/psa/admin/htdocs/spaw/class/util.class.php:

Find and replace the code block:

public static function stripSlashes($var)
{
if (get_magic_quotes_gpc()) {
return stripslashes($var);
}
return $var;
}

With this code instead:

public static function stripSlashes($var)
{
return stripslashes($var);
return $var;
}