Title: Bug: Invalid argument
Last modified: January 15, 2020

---

# Bug: Invalid argument

 *  [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * (@wendihihihi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/)
 * I’m getting this error:
 * [13-Jan-2020 11:38:47 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /home/domain/public_html/site.com/wp-content/plugins/featured-image-from-url/
   featured-image-from-url.php on line 60
 * Started on Nov 15 2019

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12330304)
 * Hi, [@wendihihihi](https://wordpress.org/support/users/wendihihihi/).
 * Please access Settings > Help > Support > data button. Click on that, copy and
   send me the data.
 *  Thread Starter [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * (@wendihihihi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12330333)
 * Version:Featured Image from URL:2.8.4;
    Site:; Theme:custom; PHP:7.3.13; WooCommerce:;
   WordPress:5.3.2; Pages:69; Posts:844; Products:; Images without Dimensions:; 
   URLs with Metadata:1; URLs:1; php-curl:yes; Plugins: – 404 Error Log and Mail(
   404-error-log-mail) – Admin Menu Editor (admin-menu-editor) – Autoptimize (autoptimize)–
   BJ Lazy Load (bj-lazy-load) – Block Bad Queries (BBQ) (block-bad-queries) – Classic
   Editor (classic-editor) – Contact Form 7 (contact-form-7) – Custom Field Bulk
   Editor (custom-field-bulk-editor) – Deprecation Checker (deprecation-checker)–
   Display Posts (display-posts-shortcode) – Duplicator (duplicator) – Dynamic Widgets(
   dynamic-widgets) – Easy Updates Manager (stops-core-theme-and-plugin-updates)–
   Email Subscribers (email-subscribers) – Enable Media Replace (enable-media-replace)–
   Featured Image from URL (featured-image-from-url) – Google Analytics Dashboard
   for WP (GADWP) (google-analytics-dashboard-for-wp) – Google XML Sitemaps (sitemap)–
   Health Check & Troubleshooting (health-check) – Heartbeat Control by WP Rocket(
   heartbeat-control) – Image Watermark (image-watermark) – KOBE Recipe Rating (
   kobe-stars-rating) – Last Modified Timestamp (last-modified-timestamp) – LiteSpeed
   Cache (litespeed-cache) – Map Categories to Pages (map-categories-to-pages) –
   NextScripts: Social Networks Auto-Poster (social-networks-auto-poster-facebook-
   twitter-g) – NinjaFirewall (WP Edition) (ninjafirewall) – Page template flush
   for file caching. (page-template-flush) – Peter’s Login Redirect (peters-login-
   redirect) – Phoenix Media Rename (phoenix-media-rename) – PHP Everywhere (php-
   everywhere) – Post Type Switcher (post-type-switcher) – Print, PDF & Email by
   PrintFriendly (printfriendly) – Query Monitor (query-monitor) – Reduce Bounce
   Rate (reduce-bounce-rate) – Revive Old Posts (tweet-old-post) – Scheduled Post
   Trigger (scheduled-post-trigger) – Search & Filter (searchandfilter) – Simple
   Tags (simpletags) – Simply Show IDs (simply-show-ids) – Site Kit by Google (google-
   site-kit) – Theme Check (theme-check) – Theme Switcha (theme-switcha) – UpdraftPlus–
   Backup/Restore (updraftplus) – User Role Editor (user-role-editor) – WordPress
   Popular Posts (wordpress-popular-posts) – WP-Optimize – Clean, Compress, Cache(
   wp-optimize) – WP Better Attachments (wp-better-attachments) – WP Content Copy
   Protection & No Right Click (wp-content-copy-protector) – WP Crontrol (wp-crontrol)–
   WP Gallery Custom Links (wp-gallery-custom-links) – WP Maintenance Mode (wp-maintenance-
   mode) – WP Super Cache (wp-super-cache) – WP YouTube Lyte (wp-youtube-lyte) –
   Yet Another Related Posts Plugin (yet-another-related-posts-plugin) – Yoast SEO(
   wordpress-seo); Active Plugins: – 404-error-log-mail – admin-menu-editor – bj-
   lazy-load – block-bad-queries – cf7-google-analytics – classic-editor – contact-
   form-7 – display-posts-shortcode – dynamic-widgets – email-subscribers – featured-
   image-from-url – google-analytics-dashboard-for-wp – google-site-kit – health-
   check – kobe-stars-rating – last-modified-timestamp – litespeed-cache – map-categories-
   to-pages – ninjafirewall – page-template-flush – peters-login-redirect – php-
   everywhere – post-type-switcher – printfriendly – reduce-bounce-rate – scheduled-
   post-trigger – simple-tags – simply-show-ids – social-networks-auto-poster-facebook-
   twitter-g – stops-core-theme-and-plugin-updates – tweet-old-post – updraftplus–
   user-role-editor – wordpress-popular-posts – wordpress-seo – wp-better-attachments–
   wp-gallery-custom-links – wp-youtube-lyte – yet-another-related-posts-plugin;
   fifu_auto_alt:toggleon; fifu_class:toggleoff; fifu_clean_dimensions_all:toggleoff;
   fifu_column_height:64; fifu_content:toggleoff; fifu_content_page:toggleoff; fifu_css:;
   fifu_data_clean:toggleoff; fifu_default_url:; fifu_dynamic_alt:toggleoff; fifu_enable_default_url:
   toggleoff; fifu_fake:toggleoff; fifu_get_first:toggleoff; fifu_grid_category:
   toggleoff; fifu_hide_page:toggleoff; fifu_hide_post:toggleoff; fifu_image_height_arch:;
   fifu_image_height_cart:; fifu_image_height_ctgr:; fifu_image_height_home:; fifu_image_height_page:;
   fifu_image_height_post:; fifu_image_height_prod:; fifu_image_height_shop:; fifu_image_width_arch:;
   fifu_image_width_cart:; fifu_image_width_ctgr:; fifu_image_width_home:; fifu_image_width_page:;
   fifu_image_width_post:; fifu_image_width_prod:; fifu_image_width_shop:; fifu_jquery:
   toggleoff; fifu_lazy:toggleoff; fifu_media_library:toggleoff; fifu_original:toggleoff;
   fifu_ovw_first:toggleoff; fifu_pop_first:toggleoff; fifu_query_strings:toggleoff;
   fifu_save_dimensions:toggleoff; fifu_save_dimensions_all:toggleoff; fifu_save_dimensions_redirect:
   toggleoff; fifu_social:toggleoff; fifu_spinner_db:100; fifu_wc_lbox:toggleon;
   fifu_wc_zoom:toggleon; REST Routes: – [http://www.site.com/wp-json/:PHP](http://www.site.com/wp-json/:PHP);–
   [http://www.site.com/wp-json/:JS](http://www.site.com/wp-json/:JS)
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12330722)
 * Thanks.
 * That’s not an ERROR. That’s a WARNING and I can’t see that here.
 * So please try to replace the line 60 by:
    `foreach ((array) $options['plugins']
   as $each_plugin) {`
 * Something changes?
 *  Thread Starter [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * (@wendihihihi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12330727)
 * Yes, sorry, it’s a warning.
 * I’m going to change it and keep an eye on it. The warning isn’t there every day.
   I’ll keep you updated.
 * Thanks
 *  Thread Starter [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * (@wendihihihi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12351231)
 * Hi,
 * I’m still getting warnings.
 * [15-Jan-2020 23:38:48 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /home/micularc/public_html/site.com/wp-content/plugins/featured-image-from-
   url/featured-image-from-url.php on line 60
    [21-Jan-2020 23:38:10 UTC] PHP Warning:
   Invalid argument supplied for foreach() in /home/micularc/public_html/site.com/
   wp-content/plugins/featured-image-from-url/featured-image-from-url.php on line
   60
 * One thing I noticed is that the warnings are always at 11:38 or at 23:38. Does
   this plugin has cronjobs?
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12351329)
 * Hi, @wendihihih.
 * _I’m still getting warnings._
    Are you still using the change, right? You didn’t
   update, right?
 * _
    One thing I noticed is that the warnings are always at 11:38 or at 23:38. 
   Does this plugin has cronjobs?
   
    No. But your site has. It’s probably checking
   for updates.
 * Since no one else reported this issue, it’s very possible it only happens on 
   your site. I recommend you to deactivate your plugins and check if the problem
   continues. You could start with this one:
    – stops-core-theme-and-plugin-updates
 * You may probably reproduce the issue every time you check for updates.
 *  Thread Starter [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * (@wendihihihi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12351361)
 * Yes, you might be right about the update. They go automatically so I don’t always
   know when a plugin has been updated.
 * Still keeping an eye on it.
 * Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Bug: Invalid argument’ is closed to new replies.

 * ![](https://ps.w.org/featured-image-from-url/assets/icon-256x256.png?rev=2776609)
 * [Featured Image from URL (FIFU)](https://wordpress.org/plugins/featured-image-from-url/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-image-from-url/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-image-from-url/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-image-from-url/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-image-from-url/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-image-from-url/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-argument/#post-12351361)
 * Status: not resolved