Call to undefined function get_magic_quotes_gpc()

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

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.
Locked
djrudyn
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Nov 06, 2017 8:16 pm

Call to undefined function get_magic_quotes_gpc()

Post by djrudyn » Fri Dec 30, 2022 8:49 pm

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

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17501
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Call to undefined function get_magic_quotes_gpc()

Post by toivo » Fri Dec 30, 2022 9:01 pm

That function was removed from PHP in PHP 8.0. Did your host upgrade PHP from an earlier version to PHP 8?

djrudyn wrote:
Fri Dec 30, 2022 8:49 pm
I was told to upgrade my PHP version however I cannot access my control panel...
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

djrudyn
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Nov 06, 2017 8:16 pm

Re: Call to undefined function get_magic_quotes_gpc()

Post by djrudyn » Fri Dec 30, 2022 9:35 pm

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

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17501
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Call to undefined function get_magic_quotes_gpc()

Post by toivo » Fri Dec 30, 2022 10:36 pm

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

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44137
Joined: Sat Apr 05, 2008 9:58 pm

Re: Call to undefined function get_magic_quotes_gpc()

Post by Webdongle » Sat Dec 31, 2022 12:17 am

At the top of your .htaccess add
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".

djrudyn
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Nov 06, 2017 8:16 pm

Re: Call to undefined function get_magic_quotes_gpc()

Post by djrudyn » Mon Jan 02, 2023 9:53 pm

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

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44137
Joined: Sat Apr 05, 2008 9:58 pm

Re: Call to undefined function get_magic_quotes_gpc()

Post by Webdongle » Mon Jan 02, 2023 11:49 pm

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".


Locked

Return to “Migrating and Upgrading to Joomla! 3.x”