You are here:  » PHP Deprecation error

Active Forum Topics

PHP Deprecation error

Submitted by Perce2 on Fri, 2021-01-01 05:22 in

Hello David,

first I'd like to wish you and your family a very happy new year, hope you all have a healthy, safe good 2021.

Going through some of my sites, I notice I have a lot of the following errors:

PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/domain-name/public_html/directory/includes/widget.php on line 351

Is there a fix for this?

All the best, Graham

Submitted by support on Fri, 2021-01-01 09:08

Hi Graham,

Best wishes for the New Year to you too!

As the magic_quotes_gpc setting itself is deprecated if you edit includes/widget.php and look for the following code at line 351:

  if (get_magic_quotes_gpc())

...and REPLACE with:

  if (FALSE)

I'm preparing a maintenance release in preparation for PHP 8 so this section will be removed from the new distribution...


Submitted by Perce2 on Sat, 2021-01-02 12:42

Many thanks David, worked perfectly!

Look forward to the maintenance release.


Submitted by MiTU on Sat, 2021-01-09 17:39

Hi David, wish you happy new year :)

Just saw you preparing a maintenance release and hope you are keeping track of what files will be affected because I changed many things and dont want to mess up my site :)

Submitted by support on Mon, 2021-01-11 09:14

Thanks, and HNY also.

Sure, any mods required for PHP 8 forward compatibility I'll be sure to document as mods to apply manually if any required.