Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1211204
    forgreenspa
    Participant

    Hello,

    I installed the WPML plugin.

    I have a problem with portfolio page.
    This is the error:

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

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

    Thanks in advance for help me

    #1211328
    Christian
    Moderator

    Hey there,

    Please disable WP Debugging. See https://codex.wordpress.org/WP_DEBUG

    Thanks.

    #1212568
    forgreenspa
    Participant

    It’s already disabled:
    define(‘WP_DEBUG’, false);

    #1212569
    forgreenspa
    Participant
    This reply has been marked as private.
    #1212590
    forgreenspa
    Participant

    using categories it’s works

    #1213129
    Lely
    Moderator

    Hi There,

    Glad it is working now. This issue usually happens if Categories is not selected under Portfolio Settings.

    Cheers!

    #1267472
    salilou
    Participant

    Hi I have the same warning but cannot see the solution here.

    #1267815
    Paul R
    Moderator

    Hi,

    The warning is a known issue with the old version of the theme.

    Kindly update your theme and plugins to latest versions.

    The Latest version numbers can be seen here – https://community.theme.co/kb/version-compatibility/

    If you find anything to be out of date, you can review our update guide.

    Thank

    #1270437
    salilou
    Participant

    thank you

    #1270452
    Paul R
    Moderator

    You’re welcome! 🙂

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