• 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 Marcel

    (@marceljm)

    Hi, @wendihihihi.

    Please access Settings > Help > Support > data button. Click on that, copy and send me the data.

    Thread Starter Wendihihihi

    (@wendihihihi)

    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/:JS

    Plugin Author Marcel

    (@marceljm)

    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

    (@wendihihihi)

    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

    (@wendihihihi)

    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 Marcel

    (@marceljm)

    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

    (@wendihihihi)

    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.