Warning: in_array() [function.in-array]: Wrong datatype for second……loop.php

  • ldeblock306

    #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.

    Admin

    Syahir Hakim

    #15540

    Please update to the latest version 1.4.1 and let me know if the problem still exists.

    ldeblock306

    #15541

    I’ve installed 1.4.1 and I am still getting the problem.

    Admin

    Syahir Hakim

    #15542

    What version of WordPress are you using?

    ldeblock306

    #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.

    Admin

    Syahir Hakim

    #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-me

    ldeblock306

    #15545

    I just sent the information through a contact form as per your request. Thank you for your prompt responses to my issue.

    Admin

    Syahir Hakim

    #15546

    The problem was caused by the functions.php file 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.php file to functions_.php file so it won’t be executed by WordPress.

    ldeblock306

    #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!

    Sincerely,

    Laura De Block

    Admin

    Syahir Hakim

    #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.