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.
Admin
Please update to the latest version 1.4.1 and let me know if the problem still exists.
I’ve installed 1.4.1 and I am still getting the problem.
Admin
What version of WordPress are you using?
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.
Admin
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-me
I just sent the information through a contact form as per your request. Thank you for your prompt responses to my issue.
Admin
The problem was caused by the
functions.php
file that you created in your child theme. In that file, you declared the functiongraphene_setup()
, which the theme uses to register support for post formats. Since you’ve already declared the function, the theme cannot redeclare thegraphene_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.php
file tofunctions_.php
file 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!
Sincerely,
Laura De Block
Admin
Thanks for the donation, Laura!
Viewing 10 posts - 1 through 10 (of 10 total)
- You must be logged in to reply to this topic.