WordPress.org

Ready to get started?Download WordPress

Forums

gettign error code 2072 for my wordpress site (51 posts)

  1. jackbd
    Member
    Posted 2 years ago #

    Hi i am having problem with my new wordpress site-http://pinterestwarrior.com/.I am getting the following error message-Parse error: syntax error, unexpected '}' in /home/premiuml/public_html/pinterestwarrior.com/wp-includes/functions.php on line 2072.Please help me!

  2. birgire
    Member
    Posted 2 years ago #

    it is a php error, got an extra "}".

    if this came after installing a new plugin, try uninstall it.

    did you edit your theme files?

  3. jackbd
    Member
    Posted 2 years ago #

    I only changed my paypal email id on the payment pages but after that i checked the site & it was working.But then suddenly it stopped working!Please help me solve this situation.

  4. jackbd
    Member
    Posted 2 years ago #

    No i didn't install any new plugin neither did i changed anything other then the one mentioned on my last message.

  5. birgire
    Member
    Posted 2 years ago #

    are you using some WordPress hosting service?

  6. jackbd
    Member
    Posted 2 years ago #

    I am using this particular hosting service for this site-https://infinity.fatbandwidth.com

  7. birgire
    Member
    Posted 2 years ago #

    ok you should try this

    https://infinity.fatbandwidth.com/sla.html?page=2

    it could be something on their side.

  8. jackbd
    Member
    Posted 2 years ago #

    I consulted with them but they told me they have no issue & they think its
    coding issue.Please help me as my site is down again-http://pinterestwarrior.com/

  9. birgire
    Member
    Posted 2 years ago #

    try open the file

    /home/premiuml/public_html/pinterestwarrior.com/wp-includes/functions.php

    on line 2071 (fx. via your ftp access)

    It should look like this around line 2071:

    <body id="error-page">
    <?php endif; // ! did_action( 'admin_head' ) ?>
            <?php echo $message; ?>
    </body>
    </html>
    <?php
            die();
    }
    
    /**
     * Kill WordPress execution and display XML message with error message.
     *
     * This is the handler for wp_die when processing XMLRPC requests.
     *

    ps: recommend taking backup of the site

  10. jackbd
    Member
    Posted 2 years ago #

    What should i fix on that line?

  11. birgire
    Member
    Posted 2 years ago #

    post the code around line 2071, mabye there is an extra "}" around there somewhere?

  12. jackbd
    Member
    Posted 2 years ago #

    OK here's the complete code of that page,please let me know what should i fix in there

    Please don't post large sections of code in the forums -mod

  13. birgire
    Member
    Posted 2 years ago #

    you should use fx.

    http://pastebin.com/

    for long codes.

    (the file is only partly displayd above)

  14. jackbd
    Member
    Posted 2 years ago #

    Here you go-http://pastebin.com/VLmSN38h ,thanks

  15. jackbd
    Member
    Posted 2 years ago #

    Please help me fix this problem permanently.

  16. birgire
    Member
    Posted 2 years ago #

    What is your current WordPress version?

    You should try to reinstall the file from

    http://core.svn.wordpress.org/tags/3.4.1/wp-includes/functions.php

    i.e. if you are using version 3.4.1

    ps: take backup of your site before changing anything - that is always a good rule ;-)

  17. birgire
    Member
    Posted 2 years ago #

    ok, you are using version 3.4.1 according to

    http://pinterestwarrior.com/readme.html

  18. jackbd
    Member
    Posted 2 years ago #

    Ok just tried with the file you just gave me & now the site shows different error message "Parse error: syntax error, unexpected '}' in /home/premiuml/public_html/pinterestwarrior.com/wp-content/plugins/visual-form-builder/visual-form-builder.php on line 1947"

  19. jackbd
    Member
    Posted 2 years ago #

    Yes i am using wordpress version 3.4.1

  20. birgire
    Member
    Posted 2 years ago #

    ok, try rename the plugin folder

    /wp-content/plugins/ => /wp-content/plugins_tmp/

    just to eliminate any error in the plugins - they will then automaically deactivated.

    ps: remember the backup ;-)

  21. jackbd
    Member
    Posted 2 years ago #

    Now it shows this error code "Parse error: syntax error, unexpected '}' in /home/premiuml/public_html/pinterestwarrior.com/wp-includes/default-widgets.php on line 1064"

  22. birgire
    Member
    Posted 2 years ago #

    what if you do the same with

    /wp-content/themes/ => /wp-content/themes_tmp/

    to eliminate any error in the theme.

    you should then try to visit the backend

    http://pinterestwarrior.com/wp-admin/

    since we changed the theme path.

  23. jackbd
    Member
    Posted 2 years ago #

    Its not working,same error code :(.Can't access the backend as well

  24. jackbd
    Member
    Posted 2 years ago #

    Do you think its anything to do with mysql database file?

  25. birgire
    Member
    Posted 2 years ago #

    try replace the error file with a fresh file from the codebase:

    http://core.svn.wordpress.org/tags/3.4.1/

    just to see if the error moves into another file.

  26. birgire
    Member
    Posted 2 years ago #

    the error is saying that the php syntax is not right (doesnt sound like mysql error) - so it could be that your wordpress install is somehow currupted.

  27. jackbd
    Member
    Posted 2 years ago #

    But how could it be corrupted when i made no changes today & it was working fine till afternoon....then it isn't anymore.

  28. birgire
    Member
    Posted 2 years ago #

    well, your site could have been hacked, that is always a possibility
    or maybe an automatic WordPress upgrade that failed, etc ...

    you can also check the modified time for each file.

    ps: was the site working fine today? - I thought it went down 2 days ago.

  29. jackbd
    Member
    Posted 2 years ago #

    Yes it went down two days ago then restore from the backup then it went down again.I don't think its been hacked as i have other site which are much more valuable then this one.Can we do a skype session?Can you walk me through what should i do to fix this problem?I will very grateful if you can do that for me,thanks.

  30. birgire
    Member
    Posted 2 years ago #

    if you are doing everything through ftp,
    then the next step would be to

    1) rename the old wordpress folder

    /public_html/pinterestwarrior.com/ => /public_html/pinterestwarrior_old.com/

    2) install a clean wordpress folder into the new folder

    /public_html/pinterestwarrior.com/

    (you can get it here http://wordpress.org/latest.zip)

    3) copy the old wp-config.php from

    /public_html/pinterestwarrior_old.com/wp-config.php

    into

    /public_html/pinterestwarrior.com/

    4) check if site is working

    5) if it is working then copy the old plugins/themes/upload folders into the new wordpress folder.

    6) Activate the plugins, one at a time.

    I can't do skype but I can continue to you help you on Monday.

    cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.