Hi All...
Please help...
When I try to log in to my Admin on my website I get this error "Call to undefined function get_magic_quotes_gpc() "
I was told to upgrade my PHP version however I cannot access my control panel...
When I try to log onto my website I also get this error...
Please help
Call to undefined function get_magic_quotes_gpc()
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Nov 06, 2017 8:16 pm
- toivo
- Joomla! Master
- Posts: 17501
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Call to undefined function get_magic_quotes_gpc()
That function was removed from PHP in PHP 8.0. Did your host upgrade PHP from an earlier version to PHP 8?
Downgrade PHP to version 7.4 and update Joomla 3 to the latest 3.x version, Joomla 3.10.11.
Ref. PHP: get_magic_quotes_gpc
Your host means the cPanel they provide to you, not the Control Panel of Joomla 3.x. The cPanel or a similar page has usually an option to select the version of PHP and the extensions associated with that version.
Downgrade PHP to version 7.4 and update Joomla 3 to the latest 3.x version, Joomla 3.10.11.
Ref. PHP: get_magic_quotes_gpc
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Nov 06, 2017 8:16 pm
Re: Call to undefined function get_magic_quotes_gpc()
Hi Toivo,
Yes it does look like my host upgraded to 8...
and I do not have the option to downgrade it back to 7.4
Yes it does look like my host upgraded to 8...
and I do not have the option to downgrade it back to 7.4
- toivo
- Joomla! Master
- Posts: 17501
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Call to undefined function get_magic_quotes_gpc()
It is best to ask your host first. The other option is to install a bundle like Wampserver on your workstation with PHP 7.4, restore a full backup to a localhost site in the workstation, make sure all third party extensions are uptodate, then update the localhost site to Joomla 3.10.11, create a full backup and restore that to the remote server.
Toivo Talikka, Global Moderator
- Webdongle
- Joomla! Master
- Posts: 44137
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Call to undefined function get_magic_quotes_gpc()
At the top of your .htaccess add
AddHandler application/x-httpd-php74 .php
AddHandler application/x-httpd-php74 .php
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Nov 06, 2017 8:16 pm
Re: Call to undefined function get_magic_quotes_gpc()
Hi Guys... All the best for 2023!!!
I have moved all my files & DB to "localhost" using Mamp with a PHP version 7.4.21...
Now I am getting this error "404 Article not found"
I also tried to get into the Administrator - also got an error...
"Not Found The requested URL was not found on this server."
I did export and import the DB, not sure what I am doing wrong...
Please advise
I have moved all my files & DB to "localhost" using Mamp with a PHP version 7.4.21...
Now I am getting this error "404 Article not found"
I also tried to get into the Administrator - also got an error...
"Not Found The requested URL was not found on this server."
I did export and import the DB, not sure what I am doing wrong...
Please advise
- Webdongle
- Joomla! Master
- Posts: 44137
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Call to undefined function get_magic_quotes_gpc()
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".