PHP Fatal error

diectsupport

Verified User
Joined
Oct 18, 2020
Messages
14
Hello,

We have restored our domain backup file in direct admin. We have used php 7.2 and there are not .htaccess entries.
But now showing was below the error.


[Thu Nov 19 13:09:44.740177 2020] [:error] [pid 17280] [client 60.243.67.19:40572] PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/admin/domains/jasakitabersama.com/public_html/includes/framework.php:21\nStack trace:\n#0 /home/admin/domains/jasakitabersama.com/public_html/index.php(22): require_once()\n#1 {main}\n thrown in /home/admin/domains/jasakitabersama.com/public_html/includes/framework.php on line 21
 
Yes . How to fix it this kind of the error. Our site loading white screen or blank screen error.
 
framework.php 21 line.
 

Attachments

  • dkr92.png
    dkr92.png
    13.2 KB · Views: 140
You must have some old code are you on the latest Joomla? looks like 3.9 maybe.


SoftwareRecommendedMinimumMore Information
PHP[1]7.3 +5.3.10https://www.php.net
(Magic Quotes GPC, MB String Overload = off)
(Zlib Compression Support, XML Support, INI Parser Support, JSON Support, MB Language = Default)
 
Now we have switched php 5.6 . and changed @ini_set('magic_quotes_runtime','0');'

Now getting this error.

"PHP Parse error: syntax error, unexpected 'zend' (T_STRING) in /home/admin/domains/jasakitabersama.com/public_html/includes/framework.php on line 22"
But site same blank page error.
 
You must have some old code are you on the latest Joomla? looks like 3.9 maybe.


SoftwareRecommendedMinimumMore Information
PHP[1]7.3 +5.3.10https://www.php.net
(Magic Quotes GPC, MB String Overload = off)
(Zlib Compression Support, XML Support, INI Parser Support, JSON Support, MB Language = Default)
Our Joomla verion.

[root@teguh includes]# cat joomla.php
<?php
/**
* Legacy Mode compatibility
* @version $Id: joomla.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla.Legacy
*/
require_once( dirname( __FILE__ ) . '/application.php' );[root@teguh includes]#
 
@ini_set('magic_quotes_runtime','0');'
Now we have switched php 5.6 , and used apache and changed entries @ini_set('magic_quotes_runtime','0');' in framework.php 21 line.

Now getting this error.

"PHP Parse error: syntax error, unexpected 'zend' (T_STRING) in /home/admin/domains/jasakitabersama.com/public_html/includes/framework.php on line 22"
But site same blank page error.
 

Attachments

  • dkr93.png
    dkr93.png
    43.1 KB · Views: 128
Yes you are using something that is 12 years old. It’s not supported at all. Old code old php all old

upgrade the joomla system. Ask for help with that in their forum
 
Hello,

If we upgrade the Joomla in recent version is this occur any issue with its existing PHP code. How can we upgrade safely?
 
As the version is from 2008, it’s likely the site was using Joomla 1.5. So you can’t update and the only way is a full migration. Full steps are available at: https://docs.joomla.org/Joomla_1.5_to_3.x_Step_by_Step_Migration/en
Keep in mind that it is a migration, so each custom and third party extension, templates, modules and plugins need to be migrated as well. It’s a very complex process that I also have done in the past and requires a lot of preperation and testing. Best is to do migration on a test environment and not in a live environment.
 
Back
Top