1

Recently my friend's company site stopped working. He is using paid host. The site says only this:

Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/inplan/www/root/includes/framework.php:21 Stack trace: #0 /home/inplan/www/root/index.php(22): require_once() #1 {main} thrown in /home/inplan/www/root/includes/framework.php on line 21

IMSoP
  • 89,526
  • 13
  • 117
  • 169
  • 2
    That function was deprecated over a decade ago, you shouldn't be using it. It was removed in PHP 8.0. – Barmar Aug 09 '22 at 16:52
  • can u give me alternative ? – Димитър Милчев Aug 09 '22 at 17:01
  • thats the code: https://pastebin.com/NCp3Cf72 – Димитър Милчев Aug 09 '22 at 17:03
  • 1
    Just get rid of it, it's not needed. – Barmar Aug 09 '22 at 17:03
  • now it says:Forbidden You don't have permission to access this resource. – Димитър Милчев Aug 09 '22 at 17:15
  • 1
    Your friend's hosting company updated the version of PHP on the server, likely because they don't want the security risk of running old versions - the [last version that included that function was 5.6](https://3v4l.org/26pvU), which [received its last official patch 3.5 years ago](https://www.php.net/eol.php). The code needs to be reviewed and updated to work on modern PHP, as there's likely to be more than just this one problem if the code has been untouched that long; if you and your friend don't know how, hire a contractor. – IMSoP Aug 09 '22 at 18:23

0 Answers0