404 on homepage after migrating to new server.

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

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.
Locked
sdejonge
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Feb 20, 2017 7:50 am

404 on homepage after migrating to new server.

Post by sdejonge » Mon Feb 20, 2017 8:18 am

Hello,

I have just migrated my website to a new server, and I am getting a 404 on the homepage with this error:
Image

I can get into the backend with no problem.

What does this error mean, and how can I fix it?

Thanks in advance!

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28191
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: 404 on homepage after migrating to new server.

Post by imanickam » Mon Feb 20, 2017 9:19 am

In the Global Configuration, if the options "Search Engine Friendly URLs" and "Use URL Rewriting" are set to Yes, check whether the file .htaccess has been transferred.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

sdejonge
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Feb 20, 2017 7:50 am

Re: 404 on homepage after migrating to new server.

Post by sdejonge » Mon Feb 20, 2017 10:34 am

imanickam wrote:In the Global Configuration, if the options "Search Engine Friendly URLs" and "Use URL Rewriting" are set to Yes, check whether the file .htaccess has been transferred.
They are both checked to Yes and the .htaccess file is present.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28191
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: 404 on homepage after migrating to new server.

Post by imanickam » Mon Feb 20, 2017 11:42 am

Just now noticed something in the image that you have attached. There seems to be a parsing error in a file at line 1470 as shown below:
PARSE ERROR FAILED AT '(~".OFFSET-@{INDEX}"){.OFFSET-(@INDEX);}' LINE 1470
Can you check in which file it is there?

Also, in the Global Configuration, in the tab Server, change the value of the option "Error Reporting" to Maximum and see whether you get additional error messages.

Please share the information as to how you migrated the site to the new server.

What version of Joomla! is being used? Hope the environment is compatible with the version of Joomla used.

What is your site's current URL?

What is your site's old URL?
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

sdejonge
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Feb 20, 2017 7:50 am

Re: 404 on homepage after migrating to new server.

Post by sdejonge » Mon Feb 20, 2017 12:44 pm

imanickam wrote:Just now noticed something in the image that you have attached. There seems to be a parsing error in a file at line 1470 as shown below:
PARSE ERROR FAILED AT '(~".OFFSET-@{INDEX}"){.OFFSET-(@INDEX);}' LINE 1470
Can you check in which file it is there?

Also, in the Global Configuration, in the tab Server, change the value of the option "Error Reporting" to Maximum and see whether you get additional error messages.

Please share the information as to how you migrated the site to the new server.

What version of Joomla! is being used? Hope the environment is compatible with the version of Joomla used.

What is your site's current URL?

What is your site's old URL?
Hi,
Can you check in which file it is there?
It doesn't show what file it is in.
Also, in the Global Configuration, in the tab Server, change the value of the option "Error Reporting" to Maximum and see whether you get additional error messages.
extra message generated: undefined variable theme in the error.php of my template.
Please share the information as to how you migrated the site to the new server.
Copied database and files from old server to new server. Using mysqldump and mysql and FTP.
What version of Joomla! is being used? Hope the environment is compatible with the version of Joomla used.
Version 3.6.5 (Sorry, thought it was 2.X, First time working with Joomla ;) ).
Using PHP version 5.6.30, Database: 5.5.5-10.0.29-MariaDB.
What is your site's current URL?
Not available (still on local network)

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28191
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: 404 on homepage after migrating to new server.

Post by imanickam » Mon Feb 20, 2017 12:51 pm

I suspect that the files may have been corrupted.

I would suggest using the extension such as Akeeba Backup (https://extensions.joomla.org/extension ... ba-backup/) to back up the site and restore it using the tool kickstart.php that is provided by Akeeba Backup to restore the site.

You have to delete the files in the directory (along with sub-directories) where you have copied your site files before restoring the site.

Note: The extension specified will also be helpful to create ongoing periodic back-ups of your site.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

sdejonge
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Feb 20, 2017 7:50 am

Re: 404 on homepage after migrating to new server.

Post by sdejonge » Tue Feb 21, 2017 7:59 am

I tried Akeeba, but now I get a 404 with another parse error:

Image

Steps I did:
1. Make a Akeeba backup on a working environment.
2. Extract it with kickstart, on the new environment.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28191
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: 404 on homepage after migrating to new server.

Post by imanickam » Tue Feb 21, 2017 11:36 am

Can you scan your files for those (previous and current) text strings that shows up in the error message? Your previous error when the Error Reporting was set to Maximum pointed to an issue with the template (ie. undefined variable theme in the error.php of my template.).

What template is being used in the site?

Hope the third party template and/or extensions used are compatible with the version of PHP that is being used in the environment.

I would suggest posting the results of the Forum Post Assistant (viewtopic.php?f=621&t=582860) that would offer an insight to your site and environment.


If possible, I would suggest another test after posting the results of FPA. I know that it is frustrating. Have a fresh install of Joomla! and see whether it works. This will give us a clue whether there is an issue with the environment or in an extension/template. I suspect that it is mostly a template issue.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged


Locked

Return to “Migrating and Upgrading to Joomla! 2.5”