ryanhowdy / fcms

Family Connections - Create a private family website.
http://www.familycms.com
GNU General Public License v2.0
82 stars 41 forks source link

PHP Error Function get_magic_quotes_gpc() is deprecated #631

Closed ebretteville closed 2 years ago

ebretteville commented 2 years ago

Hye and thanks for the update, fresh install, I get the message (I can use the fcms and was able to finish the installation process): `PHP Error

Function get_magic_quotes_gpc() is deprecated`

Capture d’écran 2022-08-21 à 11 10 15
ryanhowdy commented 2 years ago

You can fix this by commenting out lines 187 through 193 in familyconnections/fcms.php file.

/**
 * fixMagicQuotes 
 *
 * Strips slashes if magic quotes is turned on
 * 
 * @return void
 */
function fixMagicQuotes ()
{
    //if (get_magic_quotes_gpc())
    //{
    //    $_REQUEST = stripSlashesDeep($_REQUEST);
    //    $_GET     = stripSlashesDeep($_GET);
    //    $_POST    = stripSlashesDeep($_POST);
    //    $_COOKIE  = stripSlashesDeep($_COOKIE);
    //}
}
ebretteville commented 2 years ago

Thanks that did the trick