• Resolved Williamf42

    (@williamf42)


    Hi
    I’ve recently enabled multisite on one of my sites and set up one subdomain.

    All was going well but kept getting “registration not permitted” errors when trying to access some parts of the site.

    So I read somewhere that you needed to add a NOBLOGREDIRECT to wp-config.php which I did and ftp’d it across.

    The main site is still fine but any attempt to access the subdomain or login results in this error message:

    Parse error: syntax error, unexpected T_STRING in /public_html/wp-config.php on line 1

    I’m a bit stuck now
    Any ideas please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    All was going well but kept getting “registration not permitted” errors when trying to access some parts of the site.

    What parts? You should only get that if you go to wp-signup.php or notarealsite.domain.com (if you have subdomains).

    And what did you add for your no blog redirect line?

    Thread Starter Williamf42

    (@williamf42)

    Any link that did not start with www caused the registration problem

    blgo line was like so:

    define( 'NOBLOGREDIRECT', 'https://www.domain.co.uk' );

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Where did you put that line?

    The error you got means you probably put it in a bad place. It should go at the bottom of your Multisite section in wp-config.

    Thread Starter Williamf42

    (@williamf42)

    I did put it at the end of the Multisite section however I have now recovered the situation thanks.

    I deleted all of the network tables in my database and went back to my backup wp-config.php and .htaccess files.

    This restored my login and I then re-enabled Multisite. Lost some work I’d done but not too much.

    Thanks very much for your interest and time Mika

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Just so you know:

    Parse error: syntax error, unexpected T_STRING in /public_html/wp-config.php on line 1

    This means there’s an unexpected line at the top of your wp-config.php, which is why I asked where you put the new line ?? What did you edit that file with? If you use a plain text editor, you should be fine.

    Thread Starter Williamf42

    (@williamf42)

    Thanks Mika
    I was using Notepad++. I’ve not had any problems before but I have gone back to using Notepad for a bit while I investigate other editors.
    Incidentally I think I’ve had another problem with a broken style.css file that was created in Notepad++

    Many thanks again
    William

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Login error after enabling multisite’ is closed to new replies.