HELP!!!! Stytax error … Locked out of my site :(

Viewing 9 posts - 1 through 9 (of 9 total)
  • #15166
    BlissfulMiss
    Participant

    I placed */ in my code in functions.php and got an error. I went back by hitting the arrow “back” key, and delete what I had entered, but I still get this error.

    Parse error: syntax error, unexpected ‘*’, expecting ‘{‘ in /home3/suchey/public_html/wp-content/themes/pinboard/functions.php on line 1279

    I copied and pasted what was currently there into another document to save it, and went to my downloaded folder for my theme on my computer. I found the functions.php section, triple checked it was the exact html I needed, and copied and pasted it into my CSS so it would be the exact default info. It still did not work.

    When I open another window and try to go to my website http://blissfulmiss.com, I get the error and am locked out. Yet I still have a separate window open where I can make changes to functions.php. I’m wondering, though, that once I created that error, there is no fixing it this way.

    CAN SOMEBODY HELP ME????! 🙁

    #15174
    Daniel Tara
    Keymaster

    Try to restore your functions.php file with this one.

    #15175
    BlissfulMiss
    Participant

    Thanks, but it didn’t work. That’s exactly what I had tried to do with my own downloaded version, but tried yours anyway.

    #15176
    Daniel Tara
    Keymaster

    Can you please try to paste here line 1279 so we can see what it may be about?

    #15178
    BlissfulMiss
    Participant

    Well, without counting to the 1279th line, I assume its this one which is where I made the change.

    function pinboard_current_location() {

    I had added:

    function pinboard_current_location() */ {

    And then deleted it.

    Here’s a large section for context.

    */
    function pinboard_current_location() {
    global $pinboard_page_template;
    if ( ! ( is_home() && ! is_paged() ) && ! is_singular() || isset( $pinboard_page_template ) ) {
    if( is_author() )
    $archive = ‘author’;
    elseif( is_category() || is_tag() ) {

    #15179
    Daniel Tara
    Keymaster

    Nothing appears to be wrong with that bit of code. Can you please upload the entire file on Pastebin?

    #15180
    BlissfulMiss
    Participant

    Okay, I did. Here’s the URL.

    http://pastebin.com/t4kZSH0R

    I’ve never used pastebin before, so if there’s another way I’m supposed to give you the pastebin info let me know.

    Thanks for your help, by the way.

    • This reply was modified 11 years, 6 months ago by BlissfulMiss.
    #15182
    Daniel Tara
    Keymaster

    The file is fine, it’s something else causing the issue. Are you sure this is the file on the server and not some local version?

    #15183
    BlissfulMiss
    Participant

    All I know is when I made the initial change and got the error, I hit the back button to go back and nothing I do seems to change anything. I’m thinking pasting in the default info should have worked if anything I do to it COULD work. I think when I made the first change it just locked me out from doing anything and I probably need to re-download the theme. Someone on another forum suggested I do that through my hosting company on the FTP. I have no clue how, of course, but can do a chat with someone at HostGator to walk me through it I guess.

    I don’t have time to do it right now, so figured I’d see if I get any other suggestions before trying to re-download in a few hours.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.