Support

Admin Tools

#39244 Can't access backend after moving joomla site

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

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

Environment Information

Joomla! version
4.3.3
PHP version
7.x.x
Admin Tools version
7.3.4 Pro

Latest post by nicholas on Thursday, 27 July 2023 03:02 CDT

LAMF

Hi,

I have just migrated my first Joomla 3.10 site to Joomla 4.3.3 and installed Akeeba Backup and Admin Tools for Joomla 4.

The new production site was made in a subdirectory under teh ususal site.

I made a backup of the site with akeeba backup and then ran the kickstart 8.0.1 and the site works just as it should.

But when I try to get access to the backend it won't work. I only get this Error page:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log."

I have diabled the .htaccess and .htaccess.admintools files by renaiming then to htaccess.bak and htaccess.admintools.bak but the problem remains.

So I guess I need some help here as I suspect that some settings might have gone wrong when moving the site to the new URL.

Production URL was, example: www.mysite.se/j4x

And the real site is www.mysite.se .

Looking forward to your reply.

Best regards,

Micke

nicholas
Akeeba Staff
Manager

Did you remove the Joomla 3 files before restoring the Joomla 4 backup?

Remember, this is already explained in the documentation, in a passage I wrote several years ago (it was first written back in 2010, when Joomla! 1.6 came out and slightly updated since):

Do not try to overwrite one Joomla! version family with a different one. Overwriting a major version with another (e.g. restoring a backup taken on Joomla! 3.7 on top of a site running Joomla! 2.5 or vice versa) or between different minor versions (e.g. restoring a backup taken on Joomla! 3.7 on top of a site running Joomla! 3.6 or vice versa) will NOT work. Joomla! moves files around between minor and major versions. Since the backup does not delete files not present in the backup archive this will end up with Joomla! being "confused" and malfunctioning. In these cases you should delete the existing files and folders (except, perhaps, user generated content) before restoring the backup. You can safely restore a sub-minor (path-level) version on top of another. For example, you can safely restore a Joomla! 3.7.5 site on top of a Joomla! 3.7.3 site or vice versa.

https://www.akeeba.com/documentation/akeeba-backup-joomla/restoring-backups.html#general-guidelines

So, here's what to do. Keep a copy of your backup archive files offline; delete the folders administrator, api, cache, cli, components, includes, language, layouts, libraries, media, modules, plugins, and templates; restore your backup; at the database restoration page select the Drop Same Prefix option for existing tables.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

LAMF

HI,

Yes I removed all content in the public_html folder as always when restoring a site from an akeeba jpa file.

I have even created a new databvase for the new joomla 4 site which I also used for the restoration process.

I have now tried to delete all the catalogs you told me to delete and then uploaded my akeeba backup file and the kickstart pro files and ran the restoraton again. With the option you mention checked at the database restoration page.

The same issue remains.

I still can't access backend.

Β 

nicholas
Akeeba Staff
Manager

First, try deleting the .htaccess and .htpasswd files from your site's administrator folder β€” NOT the main folder! Directory password protection does not work the same on all servers. You might have a server which doesn't like the current .htpasswd file.

If this didn't help, something is wrong on the PHP side. Edit your configuration.php file. Change the following lines:

public $error_reporting = 'maximum';
public $debug = true;
public $gzip = false;

This turns on verbose error reporting which should give us more information about what is going on.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

LAMF

Hi,

Removing these did the trick.

ButΒ  I don't get the extra security layer with the pop up login before regular administrator login, how can I get that back again?

Should I run the Quick Setup Wizard again?

Β 

nicholas
Akeeba Staff
Manager

You don't get the popup because we removed the .htaccess and .htpasswd from the administrator folder which is what was giving you trouble.

Go to Password-protect Administrator in Admin Tools' main page to re-enable the password protection of your administrator folder.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

LAMF

OK, tried that but immediately got blocked from logging in to backend.Β 

So I removed the .htaccess and .htpasswd in the administrator folder and now I can log in again.

But the pop-up option with the extra login layer don't seem to work on my server and with Joomla 4.

nicholas
Akeeba Staff
Manager

It is possible that your server is not compatible with any of the password hashing methods we can use, or with the concept of password protecting directories. Both can be controlled at the web server configuration level (but cannot be overridden at the site level i.e. .htaccess file).

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

LAMF

I see, but when I ran on Joomla 3.10.x just two days ago it worked fine.

All my other Joomla site run on te same server and are Joomla 3.10 about to migrate to Joomla 4.x and they still work fine with the pop up function etc.

So then it looks likaΒ  Joomla 4 thing... just a wild guess.

nicholas
Akeeba Staff
Manager

I can't see how. The code for the administrator password protection is identical in both Admin Tools 6 (Joomla 3) and Admin Tools 7 (Joomla 4). Joomla's version has nothing to do with it, it is implemented directly at the server level.

The only thing I can think of is that you had used different settings for the admin password protection on Joomla 3. Try changing the options for the admin password protection?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

LAMF

Ok and as it is the same server as the old site and all my other Joomla 3 sites then it should work.

It worked when I developed the site in the sub directory so someting just hapened after I moved te site one step up.

So I uninstalled the Admin tools package and reinstalled it and entered the same settings as before.

And voilΓ‘ now it works as it should again.

nicholas
Akeeba Staff
Manager

Therefore, it was definitely some setting in that feature that was changed compared to the defaults. Uninstalling and reinstalling reset the settings back to the default which is very conservative.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!