• I tried to change php.functions. But after i changed it it didn’t work. then i copy and pasted the previous code. after saving it the site totally disppeared. when i asked support team, i am told that there is some error log

    Error log:

    [29-Jul-2010 03:49:49] PHP Parse error: syntax error, unexpected ‘}’ in /home/news365/public_html/wp-content/themes/TodaysNews/functions.php on line 422
    [29-Jul-2010 03:49:49] PHP Parse error: syntax error, unexpected ‘}’ in /home/news365/public_html/wp-content/themes/TodaysNews/functions.php on line 422

    I cannot access my WP login page. They are telling me tp reinstall WP.

    Here are few problems
    1) I cannot install wordpress. I need step by step instructions
    2) after installing new wordpress when i will try to restore the old theme and posts, is it possible to occur the same problem again?
    if so, then how to solve the functions.php error?

    I have saved the previous functions.php code in a notepad..is it somehow going to help?

    can anybody help me out????

Viewing 3 replies - 1 through 3 (of 3 total)
  • You need to correct the problem in your functions.php file if you want to use that theme. Download a fresh copy of the theme to your computer, extract the functions.php and upload it to the theme’s folder in wp-content/themes using FTP or whatever file management application your host provides.

    I have the same problem:

    Appearance > Editor > functions.php

    I tried to put the script:
    add_theme_support(‘post-thumbnails’);

    whereever I put this code and press update file
    the code disapeared !

    I tried another method:
    I downloaded function.php
    inserted the code
    and uploaded it again

    and than I couldn’t log in to admin
    I’ve got the error message same as Bidi.
    Than I have to put back the original function.php

    PLEASE HELP:
    How can I put the upmentioned code in the function.php ?

    Just to mention:
    all this was done under windows host, if it’s metters something.

    Thanks

    I tried to put the script:
    add_theme_support(‘post-thumbnails’);

    There should be no problem with the code:
    add_theme_support('post-thumbnails');

    This needs to go in functions.php after line 1 which should be <?php

    You should place it outside of any other functions, and this will not error, in WordPress 2.9 or later.

    It looks like you might have altered something else, or placed the code in the wrong place, I often add all my new calls right at the end of the functions.php file in thier own section.

    If you want someone to advise you more, then paste you functions.php to https://www.wordpress.pastebin.com and someone would be able to update the code or tell you where to enter the lines.

    This is for adding Post Thumbnails to older Artisteer themes and may help

    To both posters I would politly suggest looking at creating a local environment and maybe using a child theme for for testing, then you are not affecting the website and errors can be easy fixed.

    HTH

    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘function.php error. can't access my wordpress account’ is closed to new replies.