Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/libraria/publi

Discussion in 'WordPress' started by zwars, Jul 1, 2012.

  1. #1
    Please help me solve this

    i edited my function.php at theme functions in appearance > editor

    i have wrong edited it
     
    zwars, Jul 1, 2012 IP
  2. mnmani

    mnmani Well-Known Member

    Messages:
    379
    Likes Received:
    11
    Best Answers:
    6
    Trophy Points:
    195
    #2
    which part you were editing in functions.php and to achieve what - also give WP version and theme name
    post about 20 lines from line number 510 from the modified functions.php file in code tags here
     
    mnmani, Jul 1, 2012 IP
  3. zwars

    zwars Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i don't know how to search for the line number

    could u please guide me the way ?

    oh yes, version is latest 3.4.1

    theme name is twenty ten

    i edited above the endif part

    i want to remove the default leave comment text below the comment box which is likely this
    "You may use these HTML tags and attributes: <a href=""title="">"

    someone told me to paste this code above the endif tag

    function mytheme_init () {
    add_filter ('comment_form_
    defaults','mytheme_comments_form_
    defaults');
    }
    add_action ('after_setup_theme','mytheme_
    init');

    function mytheme_comments_form_
    defaults($default) {
    unset($default['comment_notes_after']);
    return $default;
    }

    in order to remove the default comment text.

    but what i got is error

    Thanks brothers from DP
     
    zwars, Jul 1, 2012 IP
  4. zwars

    zwars Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i have made it thread closed.
     
    zwars, Jul 1, 2012 IP
  5. mnmani

    mnmani Well-Known Member

    Messages:
    379
    Likes Received:
    11
    Best Answers:
    6
    Trophy Points:
    195
    #5
    glad to know that you have fixed it. let us know what was wrong and how you fixed that !!
     
    mnmani, Jul 1, 2012 IP
  6. zwars

    zwars Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    first of all ehem....:eek:

    oh my gosh i am too shy ...

    okay let's be serious :cool:

    1.login to your cpanel (hosting)

    2.go to your File Manager (if u like u may use Filezilla, but i prefer File Manager)

    3.look at your wp directory > wp content > wp theme > (your preferred theme name) > select function.php

    4.right click function.php and choose "code edit"

    5.find the line that is said to be wrong edited (if u choose code edit you will have the line number shown this line number is to help you search your desired line to be edited later easier)

    6.re edit the text that is said to be wrong to it's correct code (you should be notified which part and which code u have wrong inputted from your error page)

    7.finally save changes

    8.Enjoy !
     
    zwars, Jul 1, 2012 IP