• Hi there,
    I was trying to work out how to set up the social icons on this website, going through the options.php file of the template, when I got an error message:
    “Parse error: syntax error, unexpected T_VARIABLE, expecting ‘)’ in /home/squarede/public_html/wp-content/themes/theme45393/options.php on line 356”

    I have no idea where the error could come from as I can’t see where line 356 is, I guess it’s somewhere in he following section as it’s where I was working, can anyone please help?
    The website is now completely down and I can’t even access the dashboard! I’m totally locked out and can’t login (https://www.squaredesignscorporate.com.au/wp-admin/)
    What should I do?
    Thanks a lot for your help.

    // ---------------------------------------------------------
    // Social Links
    // ---------------------------------------------------------
    $options[] = array(
    "name" => "Social",
    "type" => "heading"
    );
    
    $options['google-plus'] = array(
    "name" => "Google+ URL",
    "desc" => "Google+ URL",
    "id" => "google-plus",
    "std" => "#",
    "type" => "text”);
    
    $options['pinterest'] = array(
    "name" => "Pinterest URL",
    "desc" => "Pinterest URL",
    "id" => "pinterest",
    "std" => "#",
    "type" => "text”);
    
    $options['twitter'] = array(
    "name" => "Twitter URL",
    "desc" => "Twitter URL",
    "id" => "twitter",
    "std" => "#",
    "type" => "text”);
    
    $options['facebook'] = array(
    "name" => "Facebook URL",
    "desc" => "Facebook URL",
    "id" => "facebook",
    "std" => "#",
    "type" => "text”);
    
    $options['linkedin'] = array(
    "name" => "Linkedin URL",
    "desc" => "Linkedin URL",
    "id" => "linkedin",
    "std" => "",
    "type" => "text”);
    
    $options['rss'] = array(
    "name" => "RSS URL",
    "desc" => "RSS URL",
    "id" => "rss",
    "std" => "",
    "type" => "text");
    
    // ---------------------------------------------------------

Viewing 5 replies - 1 through 5 (of 5 total)
  • lisa

    (@contentiskey)

    if you edited the original theme files and it caused a problem where you cannot access the wordpress dashboard, another way to get to the files is via FTP or website hosting filemanager (cpanel).

    usually removing the broken theme or fixing the template error is the solution to the sort of problem you have described.

    can you get to your webhosting account or FTP?

    Thread Starter SquareDesigns

    (@squaredesigns)

    Hi there, thanks for your reply!
    I’m working on a website for someone else so I’ll just have to get her hosting company details and give them a call is that right?
    If I have to remove and reinstall the broken theme will it delete all the data I’ve been working on in the past week?
    Thanks again!

    lisa

    (@contentiskey)

    if you remove all files of the theme then any theme file changes you made will be lost

    are you editing a child theme or were you editing the original theme. using a child theme is a good practice

    if you think it is only a problem in a single template and not with the whole theme, you could get a fresh copy of the template with the problem and try to replace that one only. see if that works for your situation.

    most hosting companies can help point you get to the right place in their hosting accounts to get to the file manager however, you need to have the login details available and sometimes a call-in pin.

    lisa

    (@contentiskey)

    if you remove all files of the theme then any theme file changes you made will be lost

    are you editing a child theme or were you editing the original theme. using a child theme is a good practice

    if you think it is only a problem in a single template and not with the whole theme, you could get a fresh copy of the template with the problem and try to replace that one only. see if that works for your situation.

    most hosting companies can help point you get to the right place in their hosting accounts to get to the file manager however, you need to have the login details available and sometimes a call-in pin.

    Thread Starter SquareDesigns

    (@squaredesigns)

    I see… The edit was done on the original theme.
    I am logged in to the FTP now via Fetch and I know the corrupt file is the option.php file within the public_html folder… I was planning to recover the original downloaded files and just replace that one option.php file… I’m hoping that will fix the issue without deleting any of the content?
    It’s a hard one I’m not sure I’m doing the right thing
    Thanks for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Website down – error message’ is closed to new replies.