• I’m getting a syntax error on line 46 of my wp-config.php file and haven’t got a clue how to resolve it, I’ve been experiencing major WP problems over the last few days after trying to migrate files. My website currently looks like this https://www.zerohstudio.com/wp. Any help would be much appreciated.

    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Visit this page:
    https://api.www.ads-software.com/secret-key/1.1/salt/

    That will generate a randomized set of keys and salts for you. You can refresh it a few times to see that the values are randomized.

    You can copy and paste that code into that section of your wp-config.php file, replacing those similar lines that are there. If there is a syntax error in your file, replacing it with this working code should fix the issue.

    Note that it doesn’t matter what those values are, they’re literally random and intended to be that way, for security. Don’t share your random values with anybody else.

    Thread Starter zeroh

    (@zeroh)

    Thank you Samuel. I let you know how I get on.

    All the best.

    Thread Starter zeroh

    (@zeroh)

    weirdly I’m still getting a syntax error, why would this be?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    I can’t really tell you why you’re getting a syntax error. You need to look at your wp-config.php file and compare it to the wp-config-sample.php file that comes with WordPress. It should be mostly the same, except for the values for things like the database information and those secret keys.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    You’re most likely missing a closing " or ' somewhere.

    Thread Starter zeroh

    (@zeroh)

    One thing I’ve noticed while comparing config files is that on the faulty file I have
    $table_prefix = ‘5ka_’;

    When the sample file says
    $table_prefix = ‘wp_’;

    I this an issue?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    No, that is not necessarily an issue, and it certainly would not cause a syntax error.

    The error message will tell you on what line number the error is. Look at that line and the things surrounding it.

    Thread Starter zeroh

    (@zeroh)

    I can’t see any other discrepancies between the files, kinda feel like I’ve hit a brick wall. Thanks for the further comments.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Looking at https://zerohstudio.com/wp/ , I’m not seeing a syntax error message. It looks like you just have your site url incorrectly configured.

    Read this page for help on fixing that:

    Changing The Site URL

    Thread Starter zeroh

    (@zeroh)

    Thanks Samuel, I fixed the syntax by rewriting the file, there seemed to be a bug which saw an error in each successive line, so that issue is resolved at least. I’ll try the above link and see how I go. Thanks again.

    Thread Starter zeroh

    (@zeroh)

    I FIXED IT!!! By rewriting the syntax and moving all my files again.
    relief.
    Oddly I got an email confirming an automatic update at the same time, i guess this was a coincidence.
    Thank you Samuel

    Here’s what it’s supposed to look like.
    https://www.zerohstudio.com
    Best wishes.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘define('AUTH_KEY', error’ is closed to new replies.