Warning: in_array() [function.in-array]: Wrong datatype for second……loop.php
After installing version 1.4b, I was getting the ‘wrong datatype’ error in validator.php. I made the change you recommended and that error went away but now I am getting the following error above the posts on every page:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/content/d/e/b/deblock306/html/metalartwelding/wp-content/themes/graphene/loop.php on line 16
Please advise. Your assistance is much appreciated.AdminAdminAdmin
The problem was caused by the
functions.phpfile that you created in your child theme. In that file, you declared the function
graphene_setup(), which the theme uses to register support for post formats. Since you’ve already declared the function, the theme cannot redeclare the
graphene_setup()function, hence support for post formats were never registered by the theme, hence the error message you’re seeing.
I’ve renamed your child theme’s
functions_.phpfile so it won’t be executed by WordPress.
I’ve checked my whole site and everything seems to be working fine so I guess that I didn’t need the child functions.php. (Not really sure why I created it). Thank you so much for taking time to help me with what appears to be a self-inflicted error.
I love this theme and I appreciate all of your efforts to support it as well as continuing to improve upon it. I am going to make a donation right now to support you in return.
Thanks again for your prompt assistance with my issue!
Laura De Block
- You must be logged in to reply to this topic.