Invalid argument

Home Forums GovIntranetters Invalid argument

Viewing 5 reply threads
  • Author
    Posts
    • #1055
      mecray
      Participant

      Hi,

      Thanks for this theme. Looking forward to getting it setup.

      I’ve added the Featured News widget to the main column on the home page. However, I get the following error above any posts:

      Warning: Invalid argument supplied for foreach() in /home/dcladmin/public_html/durhamcountylibrary/staff-new/wp-content/plugins/ht-feature-news/ht_feature_news.php on line 66

      Any idea why this might be happening? I’ve investigated a little, but don’t notice anything obvious.

      Thanks in advance,
      Matt

    • #1056
      mecray
      Participant

      Recopying the error message as it didn’t wrap and the end is hidden on my screen:

      Warning: Invalid argument supplied for foreach() in /home/dcladmin/public_html/durhamcountylibrary/staff-new/wp-content/plugins/ht-feature-news/ht_feature_news.php on line 66

    • #1057
      Luke Oatham
      Keymaster

      Hi

      Can you go into Settings, Homepage and let me know if there is anything in the “Pin news stories” entry?

      Thanks,

      Luke

    • #1066
      mecray
      Participant

      Hi,

      Thanks for replying.

      No, there is nothing the “Pin News Stories” entry.

    • #1070
      Luke Oatham
      Keymaster

      Okay. Can you download the feature news plugin from github again and copy to your plugins folder, I’ve uploaded the latest version. See if you still get the error.

      If that doesn’t work, try adding a news story to the Pin News Stories field, saving, and then removing the story and saving again.

      Cheers

      Luke

    • #1071
      mecray
      Participant

      Thanks! Installing the updated plugin did the trick.

      Matt

Viewing 5 reply threads
  • You must be logged in to reply to this topic.