Support » Plugin: LH Add Media From Url » Error when trying to import image from url

  • Resolved Norm Sash

    (@normsash)



    After pasting my url into the url field for upload I get the following errors:

    Warning: Missing argument 2 for media_handle_sideload(), called in /home/…/public_html/sashphotography.com/wp-content/plugins/lh-add-media-from-url/lh-add-media-from-url.php on line 76 and defined in /home/…/public_html/sashphotography.com/wp-admin/includes/media.php on line 382

    Warning: Cannot modify header information – headers already sent by (output started at /home/…/public_html/sashphotography.com/wp-admin/includes/media.php:382) in /home/…/public_html/sashphotography.com/wp-includes/pluggable.php on line 1196

    https://wordpress.org/plugins/lh-add-media-from-url/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author shawfactor

    (@shawfactor)

    I’ve never seen this error and the plugin works perfectly on all my sites.

    Have you tried disabling all your other plugins?

    What sort of media where you tring to upload?

    I get the same error – only one parameter is being passed to media_handle_sideload, and it has several mandatory parameters.

    However the code seems to work.

    It maybe unusual to have PHP warnings turned on in a production wordpress site – hence you not seeing it.

    Plugin Author shawfactor

    (@shawfactor)

    Ive fixed this in the latest release, let me know if there are any problems (shouldn’t be).

    Plugin Author shawfactor

    (@shawfactor)

    marking as resolved

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when trying to import image from url’ is closed to new replies.