WordPress.org

Ready to get started?Download WordPress

Forums

No access to wordpress admin! (15 posts)

  1. Poachpeople
    Member
    Posted 6 months ago #

    [ Moderator note: Please don't use help in your topic titles. ]

    So i was trying to add another sidebar when obviously entering wrong code have totally lost access to word press admin.... this is my error message.
    Parse error: syntax error, unexpected '}' in /home2/poach/public_html/wp-content/themes/caepoa/functions.php on line 22

    please help!!

  2. Tara
    Member
    Posted 6 months ago #

    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.

  3. Poachpeople
    Member
    Posted 6 months ago #

    Thanks. I have researched what i need to do the only problem is that i am not able to login as i don't know my wp password and can't reset!
    FTP - 530 Login authentication failed. Please contact your web hosting service provider for assistance.

  4. Tara
    Member
    Posted 6 months ago #

    Your OP says you was getting this error:

    Parse error: syntax error, unexpected '}' in /home2/poach/public_html/wp-content/themes/caepoa/functions.php on line 22

    Now you are saying:

    only problem is that i am not able to login as i don't know my wp password and can't reset!

    I am confused!

  5. Poachpeople
    Member
    Posted 6 months ago #

    Sorry let me explain.

    I downloaded Cyberduck to upload files FTP and i need my password and username. Username i know but the password doesn't seem to work and to reset or change passwords you need to be able to have access to your website or it needs to function.

    Correct me if i'm wrong but i thought this was the only way to fix the error?

  6. Poachpeople
    Member
    Posted 6 months ago #

    Do you have any ideas for me Tara? I'm completely stumped!

  7. Tara
    Member
    Posted 6 months ago #

    In WordPress, there is more than one way to set your password. Please review this WP Codex: http://codex.wordpress.org/Resetting_Your_Password

  8. Poachpeople
    Member
    Posted 6 months ago #

    I can't access the Admin panel. Is there someone that can sort this out for me? I'm obviously way out of my depth here :(

  9. Robin W
    Member
    Posted 6 months ago #

    If I read this correctly you're trying to access the dashboard of your wp-admin, but the error you have created is preventing this? or have you just plain forgotton your admin password.

    Really what you need to do is:

    Use cyberduck to get access to your website. FTP access will have different usernmes and password to your wp-admin. If you don't have your FTP username and password your host provider will be able to tell you this - normally you can get details via your host's admin panel

    Then go into wp-content/themes and rename the folder caepoa to caepoaold.

    This will force wordpress to use a default theme, so your error will disappear, and your site and wp-admin access will be back. If you have forgotton your WP-password you can then use lost password to reset it.

    Having done all that, you can then edit your themes functions file to correct the error you created, rename the dorectory back to caepoa, switch back to that theme and you'll be back and working

  10. ryan blake
    Member
    Posted 6 months ago #

    Robin,

    I'm having a very similar problem, not being able to access my WP-admin login after putting in an incorrect code in my functions.php file. So, if I go this route you've mentioned, will it restore the same theme I had installed or will I have to go back and do everything over from a default theme, like graphene or something..?

    Biggest problem for me now is that my clients hosting company is laughing squid, which I've never heard of, and they apparently don't have any support on the weekends. If it were hosted by go daddy, i'd just have them restore the site.

  11. Robin W
    Member
    Posted 6 months ago #

    Ryan,

    What you are doing by changing the themes folder name is stopping wordpress using the theme. The theme name folder location is stored in the database. As wordpress loads, it looks for a folder called this. As you've renamed it, it can't find it, so uses a default theme. Then you've got access back. You can then use either an FTP client such as filezilla, or cyberduck to change the code.

    Once you've done that you can then rename the directory back to the real theme name, switch back to that theme and you'll be back and working, with the theme as it was, you'll lose none of your original site look and feel, as the theme folder and content is always there, just not by the name that wordpress was looking for until you change it back.

  12. Poachpeople
    Member
    Posted 6 months ago #

    Robin you're a legend!
    I was trying to use the WP password and username, no wonder i was not getting anywhere!
    So if i contact my host provider - Host Gator, they will be able to help me with my username and password right?

  13. Robin W
    Member
    Posted 6 months ago #

    Yes, you'll need FTP hostname, username and password.

  14. Poachpeople
    Member
    Posted 6 months ago #

    Robin,

    I have successfully entered username and password but where to from here? I can see any folders, wp-content/themes?

  15. Poachpeople
    Member
    Posted 6 months ago #

    It's ok worked it out.

Reply

You must log in to post.

About this Topic