Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
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!
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.
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.
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.