Coming Soon gives PHP Warning

Home Forums Themes Forum BizCop Coming Soon gives PHP Warning

This topic contains 1 reply, has 2 voices, and was last updated by  Kenus 5 months, 2 weeks ago.

  • Author
    Posts
  • #934

    brry
    Participant

    Hello Kenus,

    I like the theme, nice work.

    The Coming Soon function generates a PHP warning:

    Warning: Invalid argument supplied for foreach() in [...]/fat-core/premiums/fat-coming-soon/fat-coming-soon.php on line 53

    I was able to make the warning go away by adding pages to the “Allow pages” configuration field.

    I studied the function. It seems to fail if an array is empty.

    I consider this a bug since the site admin should not have to manually add pages to the Coming Soon feature.

    There should be a way to completely disable Coming Soon if the site owner does not need it.

    Thanks much for looking into this issue.

    Barry

You must be logged in to reply to this topic.