• Resolved Mungomum

    (@mungomum)


    Hi I hope someone can help as I’ve just killed my website.

    I updated the functions.php code in my theme which was written for me by a website developer. It is based on twenty 11.

    I updated the sidebar basically to change from </aside> to </div> and I got a parse error as follows

    Parse error: syntax error, unexpected ”after_widget” (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’ in /homepages/29/d496947996/htdocs/clickandbuilds/WordPress/ClubSite/wp-content/themes/PNSC/functions.php on line 32

    As always I copied the original code into notepad before I made the change and so I just copied the original code straight back in but I still get the parse error when I press update!

    I’ve seen this issue has happened before on this forum and the solution was to put the full twenty 11 functions php code back in – that didn’t work either.

    I do not have FTP access to the site all I have is the wordpress menu so when I’ve seen this as a solution I don’t really understand what that means.

    Please help I have spent ages developing this site so I would hate to have lost it all! Please reply in idiot speak I am new to developing.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you saying you still have admin access?

    Thread Starter Mungomum

    (@mungomum)

    I did until about 5 mins ago just by using the back button but now that’s gone I have no admin access just the lovely parse error code. I guess my only option is to go to the hosting site and get the FTP access to overwrite the PHP code?

    Is that fairly simple? I have only updated the site via the wordpress admin function until now, it was a site I inherited and was managed by someone else who previously owned the domain. It’s been transferred now to our club but I don’t have the details on the host.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes the only option is to use FTP. Let us know once you have that access.

    Thread Starter Mungomum

    (@mungomum)

    OK thanks Andrew I thought as much.

    Thread Starter Mungomum

    (@mungomum)

    Andrew – I am a donut I was copied on an email with the host details so I am into the account info – we are hosted by 1&1 – can you talk me through what I need to do to change the functions.php? I haven’t used FTP before so idiots guide would be fab.

    Thanks for your help.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you put the entire code of your functions.php file on PasteBin and link us that? http://pastebin.com/

    Thread Starter Mungomum

    (@mungomum)

    Here’s the code

    http://pastebin.com/ByzviQrE

    I downloaded filezilla and tried to start it from the menu but it doesn’t seem to work? It did nicely change my google to yahoo though (grr hate programs that take over your preferences!)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Replace all of the code with the code from this http://pastebin.com/fGxTkcdm

    Thread Starter Mungomum

    (@mungomum)

    Thank you for your help! It’s fixed now yay! :0)

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

The topic ‘Parse error with functions.php’ is closed to new replies.