Invalid argument
- This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by .
Viewing 5 reply threads
Viewing 5 reply threads
- You must be logged in to reply to this topic.
Home › Forums › GovIntranetters › Invalid argument
Tagged: featured news widget
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
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
Hi
Can you go into Settings, Homepage and let me know if there is anything in the “Pin news stories” entry?
Thanks,
Luke
Hi,
Thanks for replying.
No, there is nothing the “Pin News Stories” entry.
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
Thanks! Installing the updated plugin did the trick.
Matt
Cookie | Duration | Description |
---|---|---|
comment_author_email_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
comment_author_url_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
comment_author_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
wordpress_logged_in_[hash] | Indicates when you’re logged in, and who you are, for most interface use. | |
wp-settings-{time}-[UID] | This is used to customize your view of admin interface, and possibly also the main site interface. |
Cookie | Duration | Description |
---|---|---|
_ga | 2 years | Used to distinguish users. |
_gat | 1 minute | Used to throttle request rate. |
_gid | 24 hours | Used to distinguish users. |