• Resolved alexahunter

    (@alexahunter)


    Hey! I did changes and now I can’t even use dashboard or anything, wherever I click I see
    Parse error: syntax error, unexpected ‘}’ in /home3/alexahunter1/public_html/wp-content/themes/child-sf-storefront-child/functions.php on line 11

    The story is I wanna take away the sidebar from product page so I copy paste a code to the child theme function.php, which didnt work, I then deleted it, maybe took away a } that was originally there. Then whatever I click its the above line and nothing more, can’t even go back to dashboard to reset or install a new template.

    WHAT SHOULD I DO???

    Please know that I have no knowledge in coding, so whatever instructions please please be specific, like click this, open that. Thank you!
    And in case nothing works, how can I start over?

    Thank you very very much! I cannot say how much I appreciate your help. And feel free to laugh away, cause this might be funny for you tech savvy, as it certainly a funny story that I will tell me friends. Thank you!!!

    P.S: I realise this might be a serious problem, as when I try to login to my admin area, the one ends with /wp-admin. I still get direct to
    Parse error: syntax error, unexpected ‘}’ in /home3/alexahunter1/public_html/wp-content/themes/child-sf-storefront-child/functions.php on line 11

    And I’m running on local host, not sure if that plays a role

    Just googled it, so tried to open the file in my computer, successfully found function.php in storefront theme folder, though not the child theme one. But I can’t open it, my computer doesnt contain software to open .php files…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    your theme “child-sf-storefront-child” seems to be the issue.

    Parse errors:

    Syntax Error:

    A syntax error means that you have made a mistake while creating your PHP structure. You could, for example, be;

    Missing a ; at the end of an individual line.
    Using curly quotation marks.
    Missing a curly bracket.

    When this error appears it will tell you which file the error appears in (functions.php for example) and approximately which line (it may not always be the exact line so be sure to check just before and just after) in the code.

    Unexpected:

    If you are receiving an error which says ‘parse error: unexpected’ this usually means that you have forgotten to include a character. The most common are:

    Unexpected ‘=’ : you have forgotten to include the $ when referencing a variable
    Unexpected ‘)’ : you have forgotten to include the opening bracket (
    Unexpected ‘(‘ : you have forgotten to include the closing bracket )
    Unepxpected T_STRING: you have forgotten a quotation mark or a semi-colon at the end of the previous line
    Unexpected T_ELSE: you have an else statement with no opening if statement

    Hi, can anyone help me?
    I do not remember which plugin was updating, but soon after my site went offline with the following message: Parse error: syntax error, unexpected ” in /home/cadei582/public_html/wp-includes/widgets.php on line 99

    I am a layman in the matter and did not find the error in the code that follows from the line 99:

    <img src=”<?php echo $image ?>” id=”columnImage<?php echo $counter; ?>” alt=”<?php echo ($title?:”); ?>” />

    <div class=”column-image-inside”>
    ” <?php echo $blank ?>> 
    <div class=”column-image-inside-centered”>
    <?php if ($title) { echo ‘<h3 class=”column-header-image”>’.$title.'</h3>‘; } ?>
    <div class=”column-text-separator”></div>
    <?php if ($text) { ?>
    <div class=”column-text”>
    <?php echo do_shortcode($text); ?>
    </div>
    <?php } ?>
    </div> <!–column-image-inside-centered–>
    </div> <!–column-image-inside–>

    </div><!–column-image–>
    <?php } ?>
    </div><!– column –>
    <?php
    } // nirvana_singlecolumn_output()
    endif;

    ?>

    Moderator t-p

    (@t-p)

    @ribeiro.dsg,
    as per the Forum Welcome, please post your own topic. That way you stand a good chance of getting full attention to your specific issue. Despite any similarity in symptoms, your issue is likely to be completely different because of possible differences in physical servers, accounts, hosts, plugins, theme, configurations, etc. Thus one problem, on one setup is not indicative of the functionality and reliability of an application as a whole.

    Thread Starter alexahunter

    (@alexahunter)

    @tara, Thanks for the answer!
    @ribeiro.dsg
    Hope your problem is fixed by now, I contacted my hosting company, they fixed it right away, maybe it works for you too!

    Moderator t-p

    (@t-p)

    you are welcome ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parse error: syntax error, unexpected '}'’ is closed to new replies.