{"action":"opened","issue":{"url":"https://api.github.com/repos/rilwis/meta-box/issues/566","labels_url":"https://api.github.com/repos/rilwis/meta-box/issues/566/labels{/name}","comments_url":"https://api.github.com/repos/rilwis/meta-box/issues/566/comments","events_url":"https://api.github.com/repos/rilwis/meta-box/issues/566/events","html_url":"https://github.com/rilwis/meta-box/issues/566","id":59282702,"number":566,"title":"Integrating Meta-Box in Template ","user":{"login":"LockeAG","id":8461849,"avatar_url":"https://avatars.githubusercontent.com/u/8461849?v=3","gravatar_id":"","url":"https://api.github.com/users/LockeAG","html_url":"https://github.com/LockeAG","followers_url":"https://api.github.com/users/LockeAG/followers","following_url":"https://api.github.com/users/LockeAG/following{/other_user}","gists_url":"https://api.github.com/users/LockeAG/gists{/gist_id}","starred_url":"https://api.github.com/users/LockeAG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LockeAG/subscriptions","organizations_url":"https://api.github.com/users/LockeAG/orgs","repos_url":"https://api.github.com/users/LockeAG/repos","events_url":"https://api.github.com/users/LockeAG/events{/privacy}","received_events_url":"https://api.github.com/users/LockeAG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-27T19:32:11Z","updated_at":"2015-02-27T19:32:11Z","closed_at":null,"body":"For us , is easier to include Meta-Box in our Templates.... \r\n\r\nWe do it the old reliable way:\r\n\r\n```\r\n$prefix = \"p_\";\r\n\r\ndefine( 'RWMB_URL', trailingslashit( get_stylesheet_directory_uri() . '/inc/plugins/meta-box' ) );\r\ndefine( 'RWMB_DIR', trailingslashit( STYLESHEETPATH . '/inc/plugins/meta-box' ) );\r\nrequire_once RWMB_DIR . 'meta-box.php';\r\n\r\nfunction den_register_meta_boxes($meta_boxes){\r\n\tglobal $prefix;\r\n\r\n\r\n\t$meta_boxes[] = array(\r\n\t\t'title'  => 'Galería',\r\n\t\t'pages'    => array( 'post', 'page' ),\r\n\t\t'context'  => 'normal',\r\n\t\t'priority' => 'high',\r\n\t\t'fields' => array(\r\n\t\t\tarray(\r\n\t\t\t\t'name' => 'Galeria',\r\n\t\t\t\t'id'   => $prefix . 'gal1',\r\n\t\t\t\t'type' => 'image_advanced',\r\n\t\t\t\t),\r\n\t\t\t)\r\n\t\t);\r\n\r\n\treturn $meta_boxes;\r\n\r\n\r\n}\r\n\r\n//Metaboxes\r\nadd_filter( 'rwmb_meta_boxes', 'den_register_meta_boxes', 99 );\r\n```\r\n\r\nBut Since newer version appear .. I'm getting this issues in debug:\r\n\r\n\r\n```\r\n[27-Feb-2015 19:09:54 UTC] PHP Warning:  Illegal string offset 'title' in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 342\r\n[27-Feb-2015 19:09:54 UTC] PHP Notice:  Undefined index: fields in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 367\r\n[27-Feb-2015 19:09:54 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 385\r\n[27-Feb-2015 19:09:54 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 150\r\n[27-Feb-2015 19:09:54 UTC] PHP Notice:  Undefined index: title in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 342\r\n[27-Feb-2015 19:09:54 UTC] PHP Notice:  Undefined index: fields in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 367\r\n[27-Feb-2015 19:09:54 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 385\r\n[27-Feb-2015 19:09:54 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 150\r\n[27-Feb-2015 19:09:58 UTC] PHP Warning:  Illegal string offset 'title' in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 342\r\n[27-Feb-2015 19:09:58 UTC] PHP Notice:  Undefined index: fields in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 367\r\n[27-Feb-2015 19:09:58 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 385\r\n[27-Feb-2015 19:09:58 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 150\r\n[27-Feb-2015 19:09:58 UTC] PHP Notice:  Undefined index: title in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 342\r\n[27-Feb-2015 19:09:58 UTC] PHP Notice:  Undefined index: fields in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 367\r\n[27-Feb-2015 19:09:58 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 385\r\n[27-Feb-2015 19:09:58 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/th/site.com/http/wp-content/themes/TH/inc/plugins/meta-box/inc/meta-box.php on line 150\r\n```\r\n\r\nis this a conflict between some external plugin or is my config\r\n\r\n\r\nthanks"}}