Warning: in_array() [function.in-array]: Wrong datatype for second……loop.php
July 19, 2011 at 11:00 pm #1381
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.AdminJuly 20, 2011 at 12:26 am #15540
Please update to the latest version 1.4.1 and let me know if the problem still exists.July 20, 2011 at 1:51 am #15541
I’ve installed 1.4.1 and I am still getting the problem.AdminJuly 20, 2011 at 4:08 am #15542
What version of WordPress are you using?July 20, 2011 at 2:27 pm #15543
This is what shows in my dashboard
Theme Graphene Child with 11 Widgets
You are using WordPress 3.2.1.
I would be happy to give you access to my system if it would make resolving this issue easier for you.AdminJuly 21, 2011 at 9:49 am #15544
That will definitely help. Please send me the login details to WP admin and FTP access to the server as well through my contact form here: http://direct.khairul-syahir.com/contact-meJuly 21, 2011 at 2:18 pm #15545
I just sent the information through a contact form as per your request. Thank you for your prompt responses to my issue.AdminJuly 21, 2011 at 10:10 pm #15546
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.July 22, 2011 at 6:51 pm #15547
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 BlockAdminJuly 23, 2011 at 3:35 am #15548
Thanks for the donation, Laura!
Viewing 10 posts - 1 through 10 (of 10 total)
- You must be logged in to reply to this topic.