Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1372877
    Lucas G
    Participant

    Howdy, Just started a new site on the X Theme. All I’ve done so far is install the theme, validate it, and create a portfolio template page and assign it as the home page.

    I created one portfolio item and already having issues:

    Warning: in_array() expects parameter 2 to be array, string given in /home/content/86/6705786/html/lucas/wp-content/themes/x/framework/functions/global/portfolio.php on line 112

    Warning: Invalid argument supplied for foreach() in /home/content/86/6705786/html/lucas/wp-content/themes/x/framework/functions/global/portfolio.php on line 128

    The site is lucasgarzoli.com

    any ideas? What can I be doing wrong? I thought I did this enough times…

    thanks!

    #1373144
    Rupok
    Member

    Hi there,

    Thanks for writing in! Let’s select the Category from Portfolio Settings and hopefully it will be solved. Also you should disable WP_DEBUG mode for live site.

    You can do this by opening wp-config.php and updating :

    define( 'WP_DEBUG' , true );

    to

    define('WP_DEBUG', false);

    Hope this helps.

    Cheers!

    #1373534
    Lucas G
    Participant

    Thanks for your reply.

    It would seem its that wp-config.php is already set to define(‘WP_DEBUG’, false);

    The error does solve once I pick a category from Portfolio settings. But would I not be able to feature “All Categories” on my main portfolio page?

    Thanks again,

    #1373784
    Rupok
    Member

    Hi there,

    You can select “All Categories” and save the changes.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1372877 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>