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

[ask] ganti themes wp muncul warning..gimana cara memperbaikinya??

Discussion in 'Wordpress' started by coffeecangkir, Aug 26, 2013.

  1. coffeecangkir

    coffeecangkir Newbie

    Joined:
    Jan 20, 2013
    Messages:
    20
    Likes Received:
    0
    selamat sore....
    Permisi momod, dan agan2 semua.. dari sabang sampai marauke .Maaf klu misalnya repost atau melanggar peraturan silahkan di hapus .. (jika repost kasih donk refensi buat bahan bacaan)...

    ane baru aja ganti themes wp, pada awalnya kagak ada masalah semua berjalan lancar sesuai kemauan... selang 1 hari ane akses themesnya melalui browser . themes tampil berantakan dan gambar berubah menjadi kotak hitam yang di dalamnya ada tulsan alt teks yang saya gunakan untuk gambar. bahkan saya akses di kompi laen tampilan tidak ada cuma muncul tulisan "error" dan sesekali muncul tampilan yang tak beraturan..

    saya coba melaukan deactive all plugin dan muncul tulisan
    Code:
    "Warning: Illegal string offset 'id' in /home/**/public_html/wp-conten**/themes/manito/header.php on line 4 " 
    saya check pemberitahuan tersebut dan saya dapat kode ini
    Code:
    foreach ($options as $value) {
        if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    } 
    apa yang harus saya lakukan untuk memperbaikinya ?
    mohon bantuan momod, suhu master atau teman2 semua yang pernah mengalami hal ini atau bisa memperbaiki warning tersebut
     
  2. mp3online

    mp3online Super Hero

    Joined:
    Jul 19, 2011
    Messages:
    2,228
    Likes Received:
    294
    Location:
    jakarta
    krn ada yg dobel $$ kali boss
     
  3. coffeecangkir

    coffeecangkir Newbie

    Joined:
    Jan 20, 2013
    Messages:
    20
    Likes Received:
    0
    emmm yang ini ya gan
    Code:
    { $$value['id'] = $value['std']; } else { $$value['id']
    da ane coba ini yang di hasilkan

    View attachment 32753

    ada masukan lain gan?
     
  4. nasdin

    nasdin Super Hero

    Joined:
    May 28, 2013
    Messages:
    806
    Likes Received:
    182
    coba tambah kode diatas foreach ($options as $value) {

    jadi gini

    PHP:
    echo '<pre>';
    print_r($options);
    echo 
    '</pre>';
    foreach (
    $options as $value) {
    tar copy / ss hasilnya
     
  5. coffeecangkir

    coffeecangkir Newbie

    Joined:
    Jan 20, 2013
    Messages:
    20
    Likes Received:
    0
    ni gan sebagian code perintah print yang tampil ketika blog nya saya muat di browser
    Code:
    Array([0] => Array        
    (            
    [name] => Manito Theme Settings            
    [type] => title        
    )   
      
    [1] => Array        
    (            
    [type] => open        
    )   
      
    [2] => Array        
    (           
     [type] => menu-open        
    )     
    
    [3] => Array        
    (            
    [type] => menu-item            
    [image] => icon_tools.png            
    [id] => 1            
    [name] => General Settings        
    )    
    
     [4] => Array        
    (            
    [type] => menu-item            
    [image] => icon_home.png            
    [id] => 2            
    [name] => Homepage Options        
    )
    
    [5] => Array        
    (            
    [type] => menu-item            
    [image] => icon_seo.png            
    [id] => 3            
    [name] => SEO Options        
    ) 
    
    [6] => Array        
    (            
    [type] => menu-item 
    [image] => icon_menu.png
    [id] => 4
    [name] => Navigation
    )
    
    [7] => Array 
    (
    [type] => menu-item 
    [image] => icon_misc.png
    [id] => 5
    [name] => Miscellaneous        
    )     
    
    [8] => Array        
    (            
    [type] => menu-item            
    [image] => icon_banner.png            
    [id] => 6            
    [name] => Banners        
    )     
    
    [9] => Array        
    (            
    [type] => menu-close        
    )     
    
    
    [10] => Array       
     (            
    [type] => start-column            
    [id] => 1           
     [name] => General Settings       
    )     
    
    [11] => Array        
    (            
    [type] => preheader            
    [name] => General Settings        
    )    
    
     [12] => Array        
    (           
     [name] => Color Style            
    [desc] => Choose the style that you would like to use.
    In the future, new color palettes could become available. Follow the official theme's release page for updates.            
    [id] => wpzoom_theme_style            
    [options] => Array                
    (                    
    [0] => Default                    
    [1] => Dark                    
    [2] => Blue                    
    [3] => Green                    
    [4] => Grey                    
    [5] => Orange                    
    [6] => Pink                    
    [7] => Purple                    
    [8] => Red                    
    [9] => Yellow                
    )             
    [std] => Default            
    [type] => select        
    )     
    
    [13] => Array       
     (            
    [name] => Logo Image URL           
    [desc] => You can upload your own logo via Media Uploader
    Leave this field blank if you want to use the default images/logo.png file.           
     [id] => wpzoom_misc_logo_path            
    [std] =>             
    [type] => text        
    ) 
    
    [14] => Array        
    (            
    [name] => Favicon URL           
    [desc] => You can upload your own favicon image (16x16px) via Media Uploader
    Leave this field blank if you don't want to display a favicon.            [id] => wpzoom_misc_favicon            [std] =>             [type] => text        )     
    
    [15] => Array       
    (            
    [name] => RSS Feed URL            
    [desc] => If you want to use Feedburner to track your RSS readers, insert your Feed Address here.
    
    Example: [B][FONT=&amp]http://feeds2.feedburner.com/wpzoom[/FONT][/B]
    
    Leave it blank if you want to use the standard WordPress Feed.            
    [id] => wpzoom_misc_feedburner            
    [std] =>             
    [type] => text        
    )     
    
    [16] => Array        
    (            
    [type] => preheader            
    [name] => Single Page Posts Display Options        
    )     
    
    [17] => Array        
    (            
    [name] => Category            
    [id] => wpzoom_singlepost_cat            
    [options] => Array                
    (                    
    [0] => Show                    
    [1] => Hide                
    )            
     [std] => Show            
    [type] => select        
    )     
    
    [18] => Array        
    (            
    [name] => Author            
    [id] => wpzoom_singlepost_author            
    [options] => Array                
    (                    
    [0] => Show                    
    [1] => Hide                
    )             
    [std] => Show            
    [type] => select        
    )     
    
    [19] => Array        
    (            
    [name] => Date/time           
     [desc] => [B][FONT=&amp]Date/Time format[/FONT][/B] can be changed here.            
    [id] => wpzoom_singlepost_date            
    [options] => Array                
    (                    
    [0] => Show                    
    [1] => Hide                
    )             
    [std] => Show            
    [type] => select        
    )     
    
    [20] => Array        
    (            
    [name] => Tags            
    [id] => wpzoom_singlepost_tag            
    [options] => Array                
    (                    
    [0] => Show                    
    [1] => Hide                
    )             
    [std] => Show            
    [type] => select        
    )     
    
    [21] => Array       
     (            
    [type] => end-column        
    )     
    
    [22] => Array        
    (            
    [type] => start-column            
    [id] => 2           
     [name] => Homepage Options       
     )     
    
    [23] => Array       
     (            
    [type] => preheader            
    [name] => Recent Posts        
    )     
    
    [24] => Array        
    (            
    [name] => Show recent posts on homepage?            
    [desc] => Do you want to show the most recent posts on the homepage? They will appear at the bottom of the page, after all featured posts / categories.            
    [id] => wpzoom_recent_posts_show            
    [options] => Array               
     (                    
    [0] => Yes                    
    [1] => No               
     )             
    [std] => Yes            
    [type] => select        
             ) 
    dan ane liat ada comment error ni nambah :

    Code:
    "Warning: Illegal string offset 'id' in /home/**/public_html/wp-conten**/themes/manito/header.php on line 7 "
    percobaan ane :
    ane coba lakukan deactive all plugin dan instal 1 persatu... dan begitu ane instal plugin SEO auto link & related post maka error itu ilang ..
    dan tampil sempurna. begitu ane log out admin panel dan ane akses di kompi laen maka muncul kotak tanpa gambar dan kotak yang seharusnya gambar cuma lambang x aja dan menu category di klik ada yang tampil dan ada yang error. menurut pandangan awam ane semcam "kode js" di eksekusi tdk sempurna.
     
  6. nasdin

    nasdin Super Hero

    Joined:
    May 28, 2013
    Messages:
    806
    Likes Received:
    182
    saya liat banyak file yg di awali dg kode seperti ini
    PHP:
    foreach ($options as $value) {
        if (
    get_settings$value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings$value['id'] ); }
    }
    kalo mau edit 1 doang, yg laen ntar ikut2an minta diedit.. saran saya, coba seting ulang theme options, kalo intervacenya tab-tab, buka setiap tab dan klik save di setiap tab, kalo masih error, contact developernya.. kalo developernya ga bisa atasi... ya ganti theme :peace:
     
  7. coffeecangkir

    coffeecangkir Newbie

    Joined:
    Jan 20, 2013
    Messages:
    20
    Likes Received:
    0
    kagak ada ane edit tu code.. karena ane juga kagak paham..xixiix

    theme option da ane default kan n di setting ulang... msh tetap..

    klu hubungin developernya keknya ane kagak berani gan alna ni juga dapat dari teman

    keknya option ganti themes adalah yang terbaik...
    ya kembali ke themes asal...

     

Share This Page