Forum Support

Shape 5
April 18, 2021, 12:32:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error log filling up  (Read 473 times)
scvoyager
Jr. Member
**
Offline Offline

Posts: 4



« on: 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:
Code:
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:
Code:
[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?
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.