#39423 Restored backup on subdomain fails

Posted in ‘Akeeba Backup for Joomla! 3’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by tampe125 on Friday, 15 September 2023 08:21 CDT

mregan

When I go to the frontend after the restoration onto a subdomain I get the error:

Error: Unable to find template "error.html.twig" (looked into: ).: Unable to find template "index.html.twig" (looked into: ).

The backup does display the Control Panel but none of the links do anything.

Any help would be great. I'm trying to migrate to Joomla 4.

Mike

 

tampe125
Akeeba Staff

Hello,

I suspect the template you're using is hardcoding the path in the database. This means that when you move your site around, the template won't find the files and throw an error.

Which template are you using?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

Davide,

  This info has let me make some progress. I deactivaed all but one front end template and now I can get to the front end after the install. I'm still stuck on the back end though. None of the options at the top go any where. Is there an admin template I need to stop using too?

Mike

mregan

I tried the other admin template and it worked! Thanks for the help

tampe125
Akeeba Staff

You're welcome!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

I was wrong the backend is not working correctly. I can install extensions and many other buttons do not activate anything. Any idea?
Thanks

 

tampe125
Akeeba Staff

mhm... no. Is it possible to connect to your restored website?

I have made this ticket private so that only you and me can see the information posted here.

Please provide me with the following information:

  1. The URL to your site's administrator login page
  2. Super User username and password
  3. FTP connection information


Please allow up to one business day (GMT+2 timezone) for me to log in to your site and debug this issue. When I'm done I will post back. Once the issue is fixed, you can revoke my access e.g. by changing the Super Administrator and FTP passwords.

IMPORTANT INFORMATION
In order for me to help you fast and accurately, please provide the information by copying the form below, paste it into your reply and fill in the information:

----- Access Information Form -- START -----
Super Administrator access

  • URL to site's administrator page (e.g. http://www.example.com/administrator?foobar):
  • Super User username:
  • Super User password:


FTP connection information

  • FTP methods supported (e.g. FTP, FTPS, SFTP):
  • FTP Hostname:
  • FTP Username:
  • FTP Password:
  • FTP Port (if other than 21 for FTP and 22 for SFTP, ask your host):


----- Access Information Form -- END -----

Please make sure that you have tested the Super Administrator connection using a different browser or machine than the one you are using daily. Double check that logging in is possible and that the user has Super User privileges, i.e. it's not a regular Administrator. Make sure that your site does not block whole countries or IP ranges which would make it impossible for me to log in / connect by FTP. Finally, please do make sure that the FTP connection works and that logging in to it I have access to your site's files.

Kindly note that your site connection information and your site content is handled in strict confidence. Not only we are a reputable development company, we are also bound by law (EU GDPR) to do so. After you file your reply, the connection information to your site will be stored in an encrypted, hidden storage area on our site and will be automatically deleted when this ticket is closed. Finally keep in mind that the people providing support to you are the same developers who wrote the software you're using on your site.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

Davide,

  Here's the info. I double checked it.

  Thanks for the help

Mike

Super Administrator access

  • URL to site's administrator page https://mdchess4.mdchess.com/administrator/
  • Super User username: admin
  • Super User password: Chrislissa234!


FTP connection information

  • FTP methods supported (e.g. FTP, FTPS, SFTP): ftp
  • FTP Hostname: mdchess4.mdchess.com
  • FTP Username:[email protected]
  • FTP Password:Chrislissa!
  • FTP Port (if other than 21 for FTP and 22 for SFTP, ask your host):

tampe125
Akeeba Staff

I ran some tests, but I'm getting some errors that I can't fully understand.

Is it possible to have a copy of your backup? So I can try to extract it locally

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

Sure, where should I upload it?

tampe125
Akeeba Staff

Please upload it somewhere (ie Google Drive, Dropbox etc etc) and paste here the share link

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

This should work.

https://drive.google.com/file/d/1F3iVrWeBDGLPPfFx58nMEhCpurYhZJdd/view?usp=sharing

tampe125
Akeeba Staff

I ran some tests, but it seems that the main problem is the jQuery library being missing.

Does it ring a bell to you? Did you install any plugin to remove jQuery from your website? Moreover, is it possible to take another backup from the original site?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

I can get to the old site. I didn't explicitly remove Jquery.

tampe125
Akeeba Staff

Ok, you have a broken site because some core files are missing, but I think we can save it.

First of all, download this version of Joomla: https://downloads.joomla.org/cms/joomla3/3-10-12
Extract it locally and upload everything to the restored website. Do not upload the installation folder since you do not want to wipe everything.

Then you have to manually switch the administrator template. Open your database manager and check the data for the table j25_template_styles. Set the field home to 0 for the row with the template name hator and set the field home to 1 for the row with the template name isis.

Basically you manually changed the default template for your backend. That should bring back your website alive again. I did the same locally and it was working fine, so it should work for you, too.

Let me know how it goes.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

So, I download and uncompress locally. Then I use something like Filezilla to copy everything except the install folder to my restored site. Then I edit the database.

 

tampe125
Akeeba Staff

Yep, that's the plan.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

This is better but it seems like several subdirectories are not there. For example media/com_akeeba. Should I reinstall the backup? or change the admin template in the original site before creating the backup?

tampe125
Akeeba Staff

Most likely your backup does not include all the files. There could be several reasons causing that, but since the original website is no longer available, there's no point on trying to understand the cause. Let's fix the issues to have it running it.

In the case of Akeeba Backup, simply install the extension again, without uninstalling it.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

The original site is still running. Should I do something different when I make a backup?

tampe125
Akeeba Staff

Oh boy... my bad. I read "I can't get the old site", while it was exactly the opposite. I'm sorry about that.

Let me connect to the original website and let me review your settings. I can see there are a lot of extra folders, do you need them all?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

There are a lot of obsolete folders. Are there any ones that you think could be problems. Is the real problem with the admin template?

 

tampe125
Akeeba Staff

I think not, but I just wanted to check. Less folders will speed up the backup and restoration, if it works with a trimmed down version of Joomla, we can then test with the full version. It was just to understand the situation.

Please let me connect to the original site.

I have made this ticket private so that only you and me can see the information posted here.

Please provide me with the following information:

  1. The URL to your site's administrator login page
  2. Super User username and password
  3. FTP connection information


Please allow up to one business day (GMT+2 timezone) for me to log in to your site and debug this issue. When I'm done I will post back. Once the issue is fixed, you can revoke my access e.g. by changing the Super Administrator and FTP passwords.

IMPORTANT INFORMATION
In order for me to help you fast and accurately, please provide the information by copying the form below, paste it into your reply and fill in the information:

----- Access Information Form -- START -----
Super Administrator access

  • URL to site's administrator page (e.g. http://www.example.com/administrator?foobar):
  • Super User username:
  • Super User password:


FTP connection information

  • FTP methods supported (e.g. FTP, FTPS, SFTP):
  • FTP Hostname:
  • FTP Username:
  • FTP Password:
  • FTP Port (if other than 21 for FTP and 22 for SFTP, ask your host):


----- Access Information Form -- END -----

Please make sure that you have tested the Super Administrator connection using a different browser or machine than the one you are using daily. Double check that logging in is possible and that the user has Super User privileges, i.e. it's not a regular Administrator. Make sure that your site does not block whole countries or IP ranges which would make it impossible for me to log in / connect by FTP. Finally, please do make sure that the FTP connection works and that logging in to it I have access to your site's files.

Kindly note that your site connection information and your site content is handled in strict confidence. Not only we are a reputable development company, we are also bound by law (EU GDPR) to do so. After you file your reply, the connection information to your site will be stored in an encrypted, hidden storage area on our site and will be automatically deleted when this ticket is closed. Finally keep in mind that the people providing support to you are the same developers who wrote the software you're using on your site.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

Super Administrator access

  • URL to site's administrator page (e.g. http://www.example.com/administrator?foobar):  https://mdchess.com/administrator/index.php?
  • Super User username: admin
  • Super User password: Chrislissa234!


FTP connection information

  • FTP methods supported (e.g. FTP, FTPS, SFTP):
  • FTP Hostname:ftp.mdchess.com
  • FTP Username:[email protected]
  • FTP Password:newftp876!
  • FTP Port (if other than 21 for FTP and 22 for SFTP, ask your host):

tampe125
Akeeba Staff

I just connected to your site and I saw that the whole "images" and "media" folders were excluded.

Please include it again, since they contain assets used by Joomla core, without them it won't work.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mregan

Are you saying that they are missing from original site backup or from the file transfer of the Joomla files?  The new site is missing the subdirectories that show up in my old site. Looking at my Akeeba backup configuration, I don't see where I could have excluded the sub directories.

tampe125
Akeeba Staff

Hello,

you can find the list of excluded elements inside the "Files and Directory exclusions", on the Akeeba Backup Control Panel.

Simply remove the exclusion from those two elements, take another backup and restore it. It should be working fine.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!