Support

Akeeba Backup for WordPress

#27429 After migrating multisite cannot login

Posted in ‘Akeeba Backup for WordPress’
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

WordPress version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by damnsharp on Tuesday, 28 March 2017 06:20 CDT

damnsharp
Hi Nicholas,
After I migrate a multisite from one domain to a newly created domain I cannot login with the normal credentials.

When I try to reset the password I get a mail but when I click the reset link I see the normal login screen.

Don't know how to login now.

Thanks!
Damiaan.

nicholas
Akeeba Staff
Manager
Have you migrated your multisite installation inside a subdirectory or suddomain? This is not supported by WordPress itself. Here's a handy guide of what you can and cannot do with WordPress Multisite.

Please keep in mind that these restrictions are imposed by WordPress itself. The multisite feature is designed with a very narrow set of use cases in mind and relies on some .htaccess magic which might NOT be available AT ALL on some hosts. Akeeba Backup cannot work around the limitation of WordPress - we are not writing our own WordPress fork CMS ;)

MULTISITE WITH SUBDOMAINS

Original site:
http://example.com - Main site
http://foo.example.com - Child site 1
http://bar.example.com - Child site 2

Allowed migration:
http://whatever.com - Main site
http://foo.whatever.com - Child site 1
http://bar.whatever.com - Child site 2

NOT ALLOWED migration (cannot have the main site in a sudomain, even if that subdomain is www):
http://www.whatever.com - Main site
http://foo.whatever.com - Child site 1
http://bar.whatever.com - Child site 2

NOT ALLOWED migration (cannot have the main site in a subdirectory):
http://whatever.com/main - Main site
??? - Child site 1
??? - Child site 2


MULTISITE WITH SUBDIRECTORIES

Original site:
http://example.com - Main site
http://example.com/foo - Child site 1
http://example.com/bar - Child site 2

Allowed migration:
http://whatever.com - Main site
http://whatever.com/foo - Child site 1
http://whatever.com/bar - Child site 2

NOT ALLOWED migration (cannot have the main site in a subdirectory):
http://whatever.com/main - Main site
http://whatever.com/main/foo - Child site 1
http://whatever.com/main/bar - Child site 2

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!

damnsharp
Hi Nicholas, I have found the solution.
First, of course I have restored to a new domain in my previous support question you explained it right.

In the wp-config.php file I saw that the line
define('PATH_CURRENT_SITE', '//');
was not right, it had to be:
define('PATH_CURRENT_SITE', '/');

After the change I could login :-)

I will close the ticket.

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!