This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Syntax error in settings.php?

8 years ago · Last reply by Alex S 8 years ago

I was editing settings.php and when I updated I got this:

Parse error: syntax error, unexpected ‘THE’ (T_STRING) in /home3/magicrss/public_html/lifeofsi.us/wp-content/themes/siteorigin-north/inc/settings.php on line 1115

Here is the line I edited, which I have since put back. I ran it through a PHP check which said everything was fine:

$defaults[‘footer_text’] = __( ‘Copyright © {year} {sitename}’, ‘siteorigin-north’ );

So now it’s how it originally was and I still get this error. How can I fix this?

Thanks!

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Alex S Staff 8 years, 11 months ago

    Hi Simon,

    You don’t need to edit that file to change it. Please navigate to WP AdminAppearanceCustomize, Theme SettingsFooter and adjust the Footer Text.

    Regardless, I suspect you made a mistake with editing the string. The string must be wrapped with single quotes or double quotes to be valid.

  2. Simon Matthews 8 years, 11 months ago

    Sounds good, I will do that in the future. However I do not understand why this happened, I accidentally type something outside the string and the whole website collapses. I can’t even log into WordPress. It just shows the same parse error.

  3. Alex S Staff 8 years, 11 months ago

    Hi Simon,

    So, to clarify, are you still having issues? If so, can you upload the contents of the file to pastebin.com. I’ll be able to work where things went wrong.

    Yeah, basically if there’s a syntax error in an important file, everything comes crashing down. This is typical for the most part in PHP.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread