Page 1 of 1

Call to undefined function get_magic_quotes_gpc()

Posted: Fri Dec 30, 2022 8:49 pm
by djrudyn
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

Re: Call to undefined function get_magic_quotes_gpc()

Posted: Fri Dec 30, 2022 9:01 pm
by toivo
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 pmI 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

Re: Call to undefined function get_magic_quotes_gpc()

Posted: Fri Dec 30, 2022 9:35 pm
by djrudyn
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

Re: Call to undefined function get_magic_quotes_gpc()

Posted: Fri Dec 30, 2022 10:36 pm
by toivo
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.

Re: Call to undefined function get_magic_quotes_gpc()

Posted: Sat Dec 31, 2022 12:17 am
by Webdongle
At the top of your .htaccess add
AddHandler application/x-httpd-php74 .php

Re: Call to undefined function get_magic_quotes_gpc()

Posted: Mon Jan 02, 2023 9:53 pm
by djrudyn
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

Re: Call to undefined function get_magic_quotes_gpc()

Posted: Mon Jan 02, 2023 11:49 pm
by Webdongle