Skip to content

Uncaught Error: Call to undefined function get_magic_quotes_gpc() #32

Description

@system-failure-b8xy

When accessing index.php on my PHP web server, I get this error in the console of the server:

[Mon Apr  3 17:59:25 2023] 172.31.196.1:41718 [200]: GET /Nanite-Proxy/index.php - Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/runner/JCStudios/Nanite-Proxy/index.php:93
Stack trace:
#0 {main}
  thrown in /home/runner/JCStudios/Nanite-Proxy/index.php on line 93

My details:
Server OS = Ubuntu 20.04.2 LTS
Client OS = ChromeOS 111.0.5563.100 (32-bit)
Server Host = Replit
URL to Code = https://replit.com/@JustinsKittens/JCStudios (Just fork it or press the < > (Show code) button)

If you need any more info, please tell me
Thank you in advance

Activity

  1. Quix0r commented on Sep 9, 2024

    @Quix0r
    Contributor

    That code fragment needs to be replaced with true as get_magic_quotes_gpc() has been removed from PHP. If you do that, PHProxy's own function _stripslashes() is being used to sanitize input. There is some discussion going on around it: https://stackoverflow.com/questions/61054418/php-7-4-deprecated-get-magic-quotes-gpc-function-alternative

  2. miglen commented on May 27, 2026

    @miglen
    Member

    Fixed by #48 — the repo now runs on PHP 8.5.6 with zero deprecations. The container-based dev setup is documented in the README. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions