• Resolved brchiz

    (@brchiz)


    We use All Import to update rental listings on our website from an XML file provided by our property management software. It has been working fine for years but now we are having issues with our image urls. The only way I have been able to get it to work now is to delete and re-import all images on each update. Here is an example image URL:
    https://rogue.managebuilding.com/Resident/PublicPages/StreamFile.ashx?fileName=eeabfb31ce46424b8c859da801a648a3.jpg

    When testing the import settings, I get the following message:
    File `https://rogue.managebuilding.com/Resident/PublicPages/StreamFile.ashx?
    fileName=eeabfb31ce46424b8c859da801a648a3.jpg` is not a valid image.

    When I use the setting “Search through the Media Library for existing images before importing new images” and choose By URL or by filename, it does not work. It thinks the filename is StreamFile.jpg for every image.

    Here is a sample from the log using the only setting that I have been able to make work, the problem with this setting it it takes an extremely long time to update because it deletes and re-uploads every image on each import:
    [16:52:48] IMAGES:
    [16:52:48] – Importing image https://rogue.managebuilding.com/Resident/PublicPages/StreamFile.ashx?fileName=eeabfb31ce46424b8c859da801a648a3.jpg for 244 Clark Street - Medford
    [16:52:48] – Downloading image from https://rogue.managebuilding.com/Resident/PublicPages/StreamFile.ashx?fileName=eeabfb31ce46424b8c859da801a648a3.jpg
    [16:52:49] – Image https://rogue.managebuilding.com/Resident/PublicPages/StreamFile.ashx?fileName=eeabfb31ce46424b8c859da801a648a3.jpg has been successfully downloaded
    [16:52:49] – Creating an attachment for image https://www.roguerealestate.com/wp-content/uploads/2020/02/StreamFile-864.jpg

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @brchiz

    `https://rogue.managebuilding.com/Resident/PublicPages/StreamFile.ashx?
    fileName=eeabfb31ce46424b8c859da801a648a3.jpg` is not a valid image.

    There’s a line-break after the question mark, which is probably why it failed.

    When I use the setting “Search through the Media Library for existing images before importing new images” and choose By URL or by filename, it does not work. It thinks the filename is StreamFile.jpg for every image.

    Please choose to match by URL and add this code snippet to your site:

    add_filter( 'wp_all_import_search_image_by_wp_attached_file', 'wpai_wp_all_import_search_image_by_wp_attached_file', 10, 1 );
    function wpai_wp_all_import_search_image_by_wp_attached_file( $is_search_by_wp_attached_file ) {
    	return false;
    }

    If that doesn’t fix it, we’ll really need to see the data and run some tests – in this case, replicate the problem at http://wpallimport.com/debug and open a ticket at http://www.wpallimport.com/support/ with the details.

    Thread Starter brchiz

    (@brchiz)

    Thank you for the help and for the code snippet. It seems to be working now, the listings are not duplicating and the images no longer need to be deleted and re-uploaded each time. The last issue I am having is getting the listings to delete from the site if they are no longer in the feed. In the import settings “Delete properties that are no longer present in your file” is greyed out. There is a message that says this feature can be used when records are imported into new items. I do not see where I can change this setting to make sure records are deleted when they are gone from the feed. It is set to “Create new properties from records newly present in your file” and ”
    Records in your file will be matched with Properties on your site based on… TITLE”.

    Plugin Author WP All Import

    (@wpallimport)

    Hi @brchiz

    In the import settings “Delete properties that are no longer present in your file” is greyed out. There is a message that says this feature can be used when records are imported into new items. I do not see where I can change this setting to make sure records are deleted when they are gone from the feed.

    Unfortunately you’ll have to create a new import for this. The steps would be:

    Plugin Author WP All Import

    (@wpallimport)

    Hi @brchiz

    I’m marking this as resolved since we haven’t heard back. Please let us know if you have any other questions regarding this issue. Anyone else, please open a new thread.

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

The topic ‘Issue with image urls using StreamFile.ashx’ is closed to new replies.