Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/2/r/restaurantfauna/craft/app/services/HttpRequestService.php on line 484

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/2/r/restaurantfauna/craft/app/services/HttpRequestService.php on line 518

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/2/r/restaurantfauna/craft/app/services/HttpRequestService.php on line 523
PHP error

PHP error

Function get_magic_quotes_gpc() is deprecated

/home/2/r/restaurantfauna/craft/app/framework/web/CHttpRequest.php(122)

110         parent::init();
111         $this->normalizeRequest();
112     }
113 
114     /**
115      * Normalizes the request data.
116      * This method strips off slashes in request data if get_magic_quotes_gpc() returns true.
117      * It also performs CSRF validation if {@link enableCsrfValidation} is true.
118      */
119     protected function normalizeRequest()
120     {
121         // normalize request
122         if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
123         {
124             if(isset($_GET))
125                 $_GET=$this->stripSlashes($_GET);
126             if(isset($_POST))
127                 $_POST=$this->stripSlashes($_POST);
128             if(isset($_REQUEST))
129                 $_REQUEST=$this->stripSlashes($_REQUEST);
130             if(isset($_COOKIE))
131                 $_COOKIE=$this->stripSlashes($_COOKIE);
132         }
133 
134         if($this->enableCsrfValidation)

Stack Trace

#2
+
 /home/2/r/restaurantfauna/craft/app/services/HttpRequestService.php(40): CHttpRequest->init()
35     /**
36      * Init
37      */
38     public function init()
39     {
40         parent::init();
41 
42         // Get the normalized path.
43         $path = $this->getNormalizedPath();
44 
45         // Get the path segments
#4
+
 /home/2/r/restaurantfauna/craft/app/etc/web/WebApp.php(592): CModule->getComponent("request", true)
587     {
588         $component = parent::getComponent($id, false);
589 
590         if (!$component && $createIfNull)
591         {
592             $component = parent::getComponent($id, true);
593             $this->_attachEventListeners($id);
594         }
595 
596         return $component;
597     }
#5
+
 /home/2/r/restaurantfauna/craft/app/etc/web/WebApp.php(106): Craft\WebApp->getComponent("request")
101         // Attach our Craft app behavior.
102         $this->attachBehavior('AppBehavior', new AppBehavior());
103 
104         // Initialize Cache, HttpRequestService and LogRouter right away (order is important)
105         $this->getComponent('cache');
106         $this->getComponent('request');
107         $this->getComponent('log');
108 
109         // So we can try to translate Yii framework strings
110         craft()->coreMessages->attachEventHandler('onMissingTranslation', array('Craft\LocalizationHelper', 'findMissingTranslation'));
111 
2022-10-03 20:10:26 Apache/2.4.41 / Craft 2.1.2561