Shape 5

Wordpress Free Themes => Design Control - Free => : scvoyager May 22, 2015, 01:47:26 PM



: Error log filling up
: scvoyager May 22, 2015, 01:47:26 PM
Hi, today I tried your design control template on a wp test site and the error log started filling up. Just to make sure it wasn't a plugin or anything I did a fresh install of 4.2.2 and the template and the error log continues to fill up.

The following is what I'm getting:
:
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND post_status = 'publish' AND  post_type  = 'page'' at line 1 for query SELECT ID FROM wp_posts WHERE post_parent =  AND post_status = 'publish' AND  post_type  = 'page'  made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/s5_design_control/index.php'), require('/themes/s5_design_control/vertex/includes/vertex_includes_top.php'), require('/themes/s5_design_control/vertex/responsive/responsive_mobile_sidebar.php'), include('/themes/s5_design_control/vertex/responsive/responsive_mobile_menu.php'), wp_nav_menu, call_user_func, wp_page_menu, wp_list_pages, walk_page_tree, call_user_func_array, Walker->walk, Walker->display_element, call_user_func_array, MobileMenuWalker->start_el

I'm getting this along with it:
:
[22-May-2015 19:32:01 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/xxx/public_html/xxx/wp-content/themes/s5_design_control/vertex/responsive/responsive_mobile_menu/mobilemenu.walker.sidebar.php on line 58
[22-May-2015 19:32:01 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/xxx/public_html/xxx/wp-content/themes/s5_design_control/vertex/responsive/responsive_mobile_menu/mobilemenu.walker.sidebar.php on line 68
[22-May-2015 19:32:01 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/xxx/public_html/xxx/wp-content/themes/s5_design_control/vertex/responsive/responsive_mobile_menu/mobilemenu.walker.sidebar.php on line 82
[22-May-2015 19:32:01 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/xxx/public_html/xxx/wp-content/themes/s5_design_control/vertex/responsive/responsive_mobile_menu/mobilemenu.walker.sidebar.php on line 90

I have used your joomla templates on many clients sites and they work error free and I would like to commend you on the great work.

Any ideas were this bug is?


: Re: Error log filling up
: Tristan Rineer May 22, 2015, 06:12:04 PM
Make sure you have a menu assigned.  For some reason, WP doesn't always transfer the menu assignment when activating a theme, and the custom code for the menus can cause errors when it doesn't have a menu to work with.