Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1092904

    malliktajmahal
    Participant

    I am creating a new page with Portfolio layout.

    I am getting two warnings in portfolio php

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

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

    in wp_config.php WP_DEBUG set as false and no columns is selected as two portfolio columns. Please help me if I am missing something.

    by the way, My requirement is https://goo.gl/2182pB

    #1093027

    Rupok
    Member

    Hi there,

    If your WP_DEBUG is already set to false then maybe your PHP error_reporting is enabled. You can place error_reporting(0); instead of define(‘WP_DEBUG’, false); on your config file.

    Thanks

    #1094095

    malliktajmahal
    Participant

    hi I am using cpanel.

    ini_set('display_errors',0);
    

    error_reporting(E_ALL|E_STRICT);

    this code worked.Thanks.

    #1094203

    Nico
    Moderator

    Thank you so much for sharing.

    Feel free to ask us again.

    Thanks.