Page 1 of 1

help with fatal error 'undefined function set_magic_quotes_runtime()'

Posted: Wed Mar 14, 2018 11:08 am
by geertjep
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

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

Posted: Fri Mar 16, 2018 5:38 pm
by toivo
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.

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

Posted: Wed Jun 26, 2019 6:04 am
by phantomplayer
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!

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

Posted: Wed Jun 26, 2019 6:35 am
by pe7er
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,

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

Posted: Wed Jun 26, 2019 7:20 am
by phantomplayer
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!!