Support » Plugin: Featured Image from URL » Update error

  • Warning: Missing argument 3 for fifu_replace_attachment_image_src() in /home/b/public_html/wp-content/plugins/featured-image-from-url/includes/attachment.php on line 50

    Update: Trying to re-add the default ( which was probably still working although the field was empty) removed all images.

Viewing 1 replies (of 1 total)
  • Plugin Author Marcel

    (@marceljm)

    Hi, @functionmunchkin.

    Once you are a “non-coder”, you may not understand what I’ll say, but let’s try…

    fifu_replace_attachment_image_src() is a FIFU function that’s not called by FIFU. That’s a filter for the WordPress function wp_get_attachment_image_src().

    It means that always your theme or another plugin calls wp_get_attachment_image_src() the function fifu_replace_attachment_image_src() will be called too.

    However fifu_replace_attachment_image_src() is expecting 3 parameters from wp_get_attachment_image_src(), but something in your environment (it can be a theme or a plugin) is providing only 2, then you have this “Warning” and maybe an error as well.

    Solution…
    1) first, I need you to identify the moment when this error happens. Which action did you take when the warning was produced?
    2) try to disable the plugins (and change the theme), one by one, until the warning disappears;
    3) inform the cause (theme/plugin), then I can install that on my environment, simulate your problem and try to provide a solution, maybe contacting the plugin/theme developer.

    By the way, you are the first user to report that, so I still don’t have any clue.

    And if you need a fast support, please contact me by email. My messages here are constantly filtered by a moderator that can take many hours to approve that.

    Reference:
    https://developer.wordpress.org/reference/hooks/wp_get_attachment_image_src/
    https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/

Viewing 1 replies (of 1 total)
  • The topic ‘Update error’ is closed to new replies.