Migration errors while moving Joomla site from CentOS 6 to Oracle Linux 8

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.
Post Reply
abhinavaggarwal
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Nov 28, 2021 10:06 am

Migration errors while moving Joomla site from CentOS 6 to Oracle Linux 8

Post by abhinavaggarwal » Thu Dec 02, 2021 6:54 am

Dear All,

I am migrating my website from CentOS 6 to Oracle Linux 8 as CentOS 6 reached the end of life and no further updates are available.

My site System Information is as under :

Image

The Joomla version for the site is 3.3.3

I imported all the dependencies required for Joomla on Oracle Linux 8. But upon surfing the site, I am getting the Error 500.

I diagnosed and came across the fatal error in /var/log/php-fpm/error.log file as under:

[02-Dec-2021 06:28:06 UTC] PHP Warning: Undefined array key "HTTP_X_FORWARDED_FOR" in /var/www/html/includes/defines.php on line 11
[02-Dec-2021 06:28:06 UTC] PHP Warning: Undefined array key "HTTP_X_FORWARDED_FOR" in /var/www/html/includes/framework.php on line 11
[02-Dec-2021 06:28:06 UTC] PHP Warning: Undefined array key "HTTP_X_FORWARDED_FOR" in /var/www/html/includes/framework.php on line 13
[02-Dec-2021 06:28:06 UTC] PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/html/libraries/legacy/form/field/form.php on line 1

I feel there is something that I am missing in the Server Settings.
Is the above error yielding error 500?
Please advise and guide me on how can I proceed further with migration.

Regards and thanks in advance for all the support.
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28417
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Migration errors while moving Joomla site from CentOS 6 to Oracle Linux 8

Post by Per Yngve Berg » Thu Dec 02, 2021 8:08 am

Joomla 3.3.3 is not compatible with php 8. Current is 3.10.3

abhinavaggarwal
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Nov 28, 2021 10:06 am

Re: Migration errors while moving Joomla site from CentOS 6 to Oracle Linux 8

Post by abhinavaggarwal » Fri Dec 03, 2021 7:26 am

Thank you very much sir, I will try updating the PHP to 7.4 and update.

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 11333
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Migration errors while moving Joomla site from CentOS 6 to Oracle Linux 8

Post by sozzled » Fri Dec 03, 2021 8:49 am

You cannot run versions of J! before J! 3.5 with anything higher than PHP 5.6; see https://downloads.joomla.org/technical- ... note-3xPHP
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

abhinavaggarwal
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Nov 28, 2021 10:06 am

Re: Migration errors while moving Joomla site from CentOS 6 to Oracle Linux 8

Post by abhinavaggarwal » Sun Dec 05, 2021 8:47 am

hello,

I figured that out while trying to run the site with PHP version 7.4.

Now the issue is, how can I plan the migration with the current site, how to plan to upgrade the Joomla version from 3.3.3 to 3.10?

Re-writing the whole site is a cumbersome job. I tried to look out for the upgrades from the administrator site, but even after purging the cache I am getting the following issue:

Update: :Collection: Could not open http://update.joomla.org/core/list.xml

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 11333
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

How to upgrade from J! 3.3.3 to the latest version of J! 3.x

Post by sozzled » Sun Dec 05, 2021 8:55 am

See viewtopic.php?t=981975&start=30#p3614117 for a possible solution. Read the whole topic very carefully.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

abhinavaggarwal
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Nov 28, 2021 10:06 am

Re: Migration errors while moving Joomla site from CentOS 6 to Oracle Linux 8

Post by abhinavaggarwal » Mon Dec 06, 2021 7:15 am

Thank you very much sir for the support.

I will try updating the same


Post Reply

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