1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

<ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpected

Discussion in 'Pemrograman Web' started by rfansk8, Apr 18, 2013.

Thread Status:
Not open for further replies.
  1. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Permisi suhu,,mohon bantuanya kenapa saya ingin buka blog saya dan ingin login admin malah muncul tulisan Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/bhisyril/public_html/irfanpermana.com/wp-content/themes/ready2launch/functions.php on line 21

    mohon bantuannya , sudah di cari2 jawabannya masih blom ketemu :'(
     
  2. nnttoo

    nnttoo Super Hero

    Joined:
    Apr 16, 2010
    Messages:
    1,260
    Likes Received:
    620
    Cari function.php lain 21 kalau bingung copas di sini..



    Sent from my Nokia 3310 using Tapatalk 2
     
  3. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    dimana om?
    dan disini saya tidak bisa login wp-admin
    silahkan di cek dulu om irfanpermana.com :'(
     
  4. nnttoo

    nnttoo Super Hero

    Joined:
    Apr 16, 2010
    Messages:
    1,260
    Likes Received:
    620
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    kalau gak bisa login wp kan bisa login via hostingnya,,(cpanel)

    trus masuk ke file manager, kemudian cari/home/bhisyril/public_html/irfanpermana.com/wp-content/themes/ready2launch/functions.php
     
  5. xenovesta

    xenovesta Super Hero

    Joined:
    Sep 1, 2010
    Messages:
    857
    Likes Received:
    11
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    Hapus aja themenya via ftp . Do folder wp-content kalo ga salah
     
  6. sentabi

    sentabi Ads.id Fan

    Joined:
    Oct 11, 2008
    Messages:
    207
    Likes Received:
    1
    Location:
    DMOZ
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    sama kaya yang diatas-atas, coba copy paste disini, kayanya sih ada 1 karakter yang ketinggalan, coba copas functions.php ke pastebin.com biar enak ngeliatnya
     
  7. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    nih om


    1. array( "name" => "Show top menu? Uses new Wordpress 3.0 functionality - <a href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus/">Custom Menus</a>. It can be customized under Appearance > Menus. Great for more links than 2 at bottom.",
    2. "id" => $shortname."_topmenu",
     
  8. nnttoo

    nnttoo Super Hero

    Joined:
    Apr 16, 2010
    Messages:
    1,260
    Likes Received:
    620
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec


    yang betul dong ngopasnya,, pake wrap code tuh,, kayak gini contohnya

    PHP:
    disini

    kalau begitu cara ngopasnya gemana mau ngeliat sintak yang errornya,, :-B
     
    rfansk8 likes this.
  9. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    PHP:
       array(    "name" => "Show top menu? Uses new Wordpress 3.0 functionality - <a href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus/">Custom Menus</a>. It can be customized under Appearance > Menus. Great for more links than 2 at bottom.",

     
  10. nnttoo

    nnttoo Super Hero

    Joined:
    Apr 16, 2010
    Messages:
    1,260
    Likes Received:
    620
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec


    jah,, kependekan ngopasnya gan,, gak ketahuan errornya di mana,, array(); mesti ada ujungnya,,,
    ampun dah,,, semuanya aja napa ngopasnya?

    ini script php di copas spotong gitu gemana agan ini,,
     
  11. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    haha maaf om itu saya ngopasnya yg line yg eror hehehe

    kepanjangan gan kalo copas semua

    wait yaa
     
    Last edited: Apr 18, 2013
  12. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    nih suhu
    PHP:
     $options = array (         array(  "name" => "Theme <em>(Choose your theme)</em>",                        "id" => $shortname."_theme",            "inblock" => "css",                        "type" => "select",                        "desc" => "Choose theme",            "std" => "cloud2",                "options" => array( "cloud""cloud2""stripe-grey""stripe-vicious""stripe-red""cloud-no_rocket""glass""elegant-blue""elegant-violet""elegant-green",) ),              array(    "name" => "Show top menu? Uses new Wordpress 3.0 functionality - <a href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus/">Custom Menus</a>. It can be customized under Appearance > Menus. Great for more links than 2 at bottom.",                        "id" => $shortname."_topmenu",            "inblock" => "css",                        "type" => "select",            "std" => "Hidden",                        "options" => array("Hidden", "Visible",)),                                                                array( "name" => "Top menu background color <em>(Use some darker color)</em>",                        "id" => $shortname."_color_topmenu",            "inblock" => "css",                        "type" => "color",            "std" => "242424",),                      array(  "name" => "Alternate heading <em>(Write a title for your page)</em>",                        "id" => $shortname."_title_content",            "inblock" => "css",                        "type" => "text",            "std" => "We’re sorry! Our website is now under construction!"),                                                                  array(  "name" => "Page Text <em>(Choose a text for your page - MAX 270 characters<br /> <strong>Basic HTML allowed</strong>: &lt;strong&gt;text&lt;/strong&gt;, &lt;a href="http://google.com"&gt;link&lt;/a&gt;&lt;/em&gt;text&lt;/em&gt;)",                        "id" => $shortname."_text_content",            "inblock" => "css",                        "type" => "textarea",            "std" => "Our website is temporarily unavailable. We apologize for the inconvenience."),             array(        "name" => "Second Heading <em>(Customize a second heading)</em>",                        "id" => $shortname."_second_heading",            "inblock" => "css",                        "type" => "text",            "std" => "Launch soon!"),                array(     "name" => "Countdown or Mail <em>(Select if you want to show Countdown or Mail form)</em>",                        "id" => $shortname."_count_mail",            "inblock" => "css",                        "type" => "select",            "std" => "Count",                        "options" => array("Count", "Mail",)),                         array(  "name" => "IF COUNT - Custom Date Countdown <em>(mm/dd/yyyy hh:mm AM/PM + Optional - timezone - e.g. UTC+0600 (You may find your UTC time here: http://www.thetimenow.com))</em>",                        "id" => $shortname."_date",            "inblock" => "css",                        "type" => "text",            "std" => "07/14/2013 5:00 PM UTC-0500"),        array(  "name" => "IF COUNT - Custom message, when countdown reach 0",                        "id" => $shortname."_finish_mssg",            "inblock" => "css",                        "type" => "text",            "std" => "Page should be online soon! Please be patient. <em>You can visit http://irfanpermana20.blogspot.com.</em>"),                     array(       "name" => "Left Link <em>(Where will the down left link go. You can put there any link, Twitter account is just an example)</em>",                        "id" => $shortname."_left_link",            "inblock" => "css",                        "type" => "text",            "std" => "http://twitter.com/"),                         array(       "name" => "Right Link <em>(Where will the down right link go - If you want to use mail, use this: <strong>mailto:[email protected]</strong>)</em>",                        "id" => $shortname."_right_link",            "inblock" => "css",                        "type" => "text",            "std" => "mailto:"),          array(  "name" => "Left Text <em>(What will the down left link say)</em>",                        "id" => $shortname."_left_text",            "inblock" => "css",                        "type" => "text",            "std" => "Follow us on Twitter!"),                      array(  "name" => "Right Text <em>(What will the down right link say)</em>",                        "id" => $shortname."_right_text",            "inblock" => "css",                        "type" => "text",            "std" => "Send us mail!"),           array(  "name" => "Left Twitter Icon?",                        "id" => $shortname."_twitter",            "inblock" => "css",                        "type" => "select",            "std" => "Visible",                        "options" => array("Visible", "Hidden",)),               array(    "name" => "Right Mail Icon?",                        "id" => $shortname."_mail",            "inblock" => "css",                        "type" => "select",            "std" => "Visible",                        "options" => array("Visible", "Hidden",)),                                                     array(      "name" => "Font Style <em>(Choose a font style for your page - I recommend staying with default one)</em>",                        "id" => $shortname."_font_type",            "type" => "select",            "inblock" => "css",                        "std" => "Century, Garamond, serif",                        "options" => array(            "Century, Garamond, serif",            "Century, Georgia, serif",            "'Lucida Sans Unicode', 'Lucida Grande', sans-serif",            "'MS Sans Serif', Geneva, sans-serif",            "'MS Serif', 'New York', sans-serif",            "'Palatino Linotype', 'Book Antiqua', Palatino, serif",            "'Times New Roman', Times, serif",            "'Trebuchet MS', Helvetica, sans-serif",            )            ),      array(      "name" => "Page Heading Color",                        "id" => $shortname."_color_head",            "inblock" => "css",                        "type" => "color",            "std" => "000000",),                      array(      "name" => "Alternate Heading Color",                        "id" => $shortname."_color_alt_head",            "inblock" => "css",                        "type" => "color",            "std" => "242424",),                               array(     "name" => "Page text color ",                        "id" => $shortname."_color_text",            "inblock" => "css",                        "type" => "color",            "std" => "242424",),                              array( "name" => "Second heading color ",                        "id" => $shortname."_color_second",            "inblock" => "css",                        "type" => "color",            "std" => "242424",),                    array(     "name" => "Countdown color ",                        "id" => $shortname."_color_cntdwn",            "inblock" => "css",                        "type" => "color",            "std" => "242424",),                                                 );
     
  13. sentabi

    sentabi Ads.id Fan

    Joined:
    Oct 11, 2008
    Messages:
    207
    Likes Received:
    1
    Location:
    DMOZ
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    makin pusing liatnya, berantakan banget, coba pake pastebin deh. dan di kasi tau yang mana line yang error
     
  14. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    itu udah di copas dari patebin
     
  15. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    nih kalo yg eror
    array( "name" => "Show top menu? Uses new Wordpress 3.0 functionality - <a
    href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus/">Custom Menus</a>. It can be
    customized under Appearance > Menus. Great for more links than 2 at bottom.",
     
  16. sentabi

    sentabi Ads.id Fan

    Joined:
    Oct 11, 2008
    Messages:
    207
    Likes Received:
    1
    Location:
    DMOZ
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    bukan maksud saya coba kaya ini .pastebin.ca/2361760, coba liat ngga jelas kan baris berapa dan semua scriptnya bersatu, makin sulit untuk menemukan yang mungkin jadi masalahnya
     
    Last edited: Apr 19, 2013
  17. rfansk8

    rfansk8 Newbie

    Joined:
    Apr 18, 2013
    Messages:
    22
    Likes Received:
    0
  18. nekaters

    nekaters Hero

    Joined:
    Aug 12, 2012
    Messages:
    673
    Likes Received:
    31
    Location:
    Yogyakarta
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    awas live link tuh
    coba ganti ini
    PHP:
    array(    "name" => "Show top menu? Uses new Wordpress 3.0 functionality - <a href=\"http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus/\">Custom Menus</a>. It can be customized under Appearance > Menus. Great for more links than 2 at bottom.",  
    kemungkinan karna itu pakai double quote jd pada link a href yg ada double quote perlu di kasih slash back didepannya jadi \"

    maaf kalo salah haraf dimaklum soalnya masih nubie :hmm:
     
  19. sentabi

    sentabi Ads.id Fan

    Joined:
    Oct 11, 2008
    Messages:
    207
    Likes Received:
    1
    Location:
    DMOZ
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    setuju :), klo ngga harus aja bagian
     
  20. mp3online

    mp3online Super Hero

    Joined:
    Jul 19, 2011
    Messages:
    2,228
    Likes Received:
    294
    Location:
    jakarta
    Re: <ASK> Mohon Bantuannya suhu,Benar2 Bingung dgn Parse error: syntax error, unexpec

    hedeh... dari code yg pertama ts tulis aja udah kliatan salahnya di mana, pake bawa2 pastebin segala :)
    itu kesalahannya karena pemakaian " yg tidak pada tempatnya.
    solusinya bisa pake seperti yg dikasih boss nekaters atau yg di href itu ganti pake single quote.

    biar lebih jelasnya ini aku kasih beberapa contoh kasus yg lebih sederhana:
    Code:
    array("ini"salah", "error");
    code kayak ini gak boleh

    Code:
    array("ini\"benar", "gak error");
    yg ini boleh

    Code:
    array("ini'juga benar", "gak error");
    ini jg boleh

    Code:
    array('ini'salah', 'error');
    kayak gini gak boleh

    Code:
    array('ini\' gak salah', 'gak error');
    boleh kayak gini

    Code:
    array('ini" gak salah', 'gak error');
    boleh jg kayak gini


    intinya:
    double quote dlm double quote gak boleh, kl mau make double quote dlm double quote hrs ditambah \

    single quote dlm single quote jg gak boleh

    penggunaan dlm echo dll jg berlaku ketentuan seperti di atas
     
    rfansk8 and rindek like this.
Thread Status:
Not open for further replies.

Share This Page