Viewing 8 replies - 1 through 8 (of 8 total)
  • I was able to get it to work when I changed line 304 of the import-external-images.php file

    Original code:

    if ( $uri != '' && preg_match( '/^http:\/\//' , $uri ) ) {

    New code:

    if ( $uri != '' && preg_match( '/^https?:\/\//' , $uri ) ) {

    Then the plugin started to work.

    @nakita_dog thanks for the tip, it didn’t work for me though. The import dialog appears with your change, but does not import ??
    Any idea why that could be?

    That is strange.

    I would recommend that you double check the changes and try again.

    I’m sorry but I wish I could help you further.

    (@dominicbusinaro)

    Thanks for this @nakita_dog

    Worked great!

    Good one @nakita_dog!

    @nakita_dog Just as @mailme.eva says, your fix makes the plugin recognize that there are images that should be imported, but they are not imported. In my case, the external images are on a subdomain, https://cdn.domain…
    Could that be the problem? If so, what changes do I need to the code?

    Edit: After a second thought, www is also like a subdomain, so I guess that couldn’t be the problem…

    I can confirm that the suggestion posted by nakita_dog works wonderfully well for https images. Thanks a lot for this nakita_dog! ??

    I would like to second adding the “feature” of pulling from HTTPS sites as well. We force all our sites to HTTPS and try not to manually modify any plugins that would stop working when a plugin is updated.

    Should be able to change line 304 from this:
    if ( $uri != '' && preg_match( '/^http:\/\//' , $uri ) ) {

    to this:

    if ( $uri != '' && preg_match( '/^(http|https):\/\//' , $uri ) ) {

    to allow for HTTP or HTTPS.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Images from secure site don't import’ is closed to new replies.