help with fatal error 'undefined function set_magic_quotes_runtime()' Topic is solved

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
geertjep
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Mar 09, 2018 9:57 am

help with fatal error 'undefined function set_magic_quotes_runtime()'

Post by geertjep » Wed Mar 14, 2018 11:08 am

Who can help me with this ?
Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home3/geertjep/public_html/includes/framework.php:21 Stack trace: #0 /home3/geertjep/public_html/index.php(22): require_once() #1 {main} thrown in /home3/geertjep/public_html/includes/framework.php on line 21
Last edited by toivo on Fri Mar 16, 2018 5:39 pm, edited 1 time in total.
Reason: mod note: split from someone else's topic - please create your own topics in the future

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11520
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: help with fatal error 'undefined function set_magic_quotes_runtime()'

Post by toivo » Fri Mar 16, 2018 5:38 pm

Did your host upgrade PHP to version 7? The function set_magic_quotes_runtime was deprecated in PHP 5.3 and removed in PHP 7. Ref. http://php.net/manual/en/function.set-m ... untime.php

Joomla 1.5 had its EOL (End of Life) in 2012 and its third party extensions may also be vulnerable. Therefore it is best to start planning a migration to a supported version or rebuild the site using the latest, supported version of Joomla.
Toivo Talikka, Global Moderator

phantomplayer
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 26, 2019 5:52 am

Re: help with fatal error 'undefined function set_magic_quotes_runtime()'

Post by phantomplayer » Wed Jun 26, 2019 6:04 am

Hello,

Hello I found this and wanted to see if there was a solution to get my site (Joomla 1.5) back online so I can start to transition to current version of Joomla. Error_log shows this:

PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /xxxx/xxx/public_html/includes/framework.php:21 Stack trace: #0 /xxxx/xxx/public_html/index.php(22): require_once() #1 {main} thrown in /xxxx/xxxx/public_html/includes/framework.php on line 21

Line 21: @set_magic_quotes_runtime( 0 );
Line 22: require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

If anyone has a fix I would greatly appreciate it.

Thank you!
Last edited by phantomplayer on Wed Jun 26, 2019 7:06 am, edited 1 time in total.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 22346
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, The Netherlands
Contact:

Re: help with fatal error 'undefined function set_magic_quotes_runtime()'

Post by pe7er » Wed Jun 26, 2019 6:35 am

phantomplayer wrote:
Wed Jun 26, 2019 6:04 am
PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home4/xxx/public_html/includes/framework.php:21 Stack trace: #0 /xxxx/xxx/public_html/index.php(22): require_once() #1 {main} thrown in /xxxx/xxxx/public_html/includes/framework.php on line 21
Did your hosting company update the PHP version from 5.6 (or lower) to PHP 7.0 (or higher)?
Joomla 1.5 used the function set_magic_quotes_runtime, which is not available anymore in PHP 7.0 or higher.

Workaround: ask your hosting company to (temporary) switch the server to PHP 5.6.

Or install a webserver environment on your local server (using LAMP / XAMP / WAMP / MAMP or something else),
use FTP to copy the files from your server to the local enviroment,
and phpMyAdmin to create an SQL dump that you install in the database of your local enviroment,
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
Co-developer of d2 Content https://data2site.com/joomla-extensions/d2-content

phantomplayer
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 26, 2019 5:52 am

Re: help with fatal error 'undefined function set_magic_quotes_runtime()'

Post by phantomplayer » Wed Jun 26, 2019 7:20 am

Hi pe7er,

I moved server to 5.6 and site is back now, but I'll start migrating over to current version of Joomla — Thank you!!


Post Reply

Return to “General Questions/New to Joomla! 1.5”