Page 1 of 1

404 on homepage after migrating to new server.

Posted: Mon Feb 20, 2017 8:18 am
by sdejonge
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!

Re: 404 on homepage after migrating to new server.

Posted: Mon Feb 20, 2017 9:19 am
by imanickam
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.

Re: 404 on homepage after migrating to new server.

Posted: Mon Feb 20, 2017 10:34 am
by sdejonge
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.

Re: 404 on homepage after migrating to new server.

Posted: Mon Feb 20, 2017 11:42 am
by imanickam
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?

Re: 404 on homepage after migrating to new server.

Posted: Mon Feb 20, 2017 12:44 pm
by sdejonge
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)

Re: 404 on homepage after migrating to new server.

Posted: Mon Feb 20, 2017 12:51 pm
by imanickam
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.

Re: 404 on homepage after migrating to new server.

Posted: Tue Feb 21, 2017 7:59 am
by sdejonge
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.

Re: 404 on homepage after migrating to new server.

Posted: Tue Feb 21, 2017 11:36 am
by imanickam
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.