• Resolved JanDieckmann

    (@jandieckmann)


    Hello,

    after a good start with this plugin by creating three galleries that I filled with jpg files from my WP media library, I now recieve the message “Failed to import images from media library” on nearly every attempt to add an image file the same way to an existing or new gallery. On a second try it works, but obviously it is very annoying to do everything twice.

    Any ideas?

    • This topic was modified 3 years, 9 months ago by JanDieckmann.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Dear @jandieckmann,
    Thank you for the report.

    How many images are you trying to import at a time?
    Please try decreasing that number.

    If the problem persists, please share the php error log with us.

    Sincerely,

    Thread Starter JanDieckmann

    (@jandieckmann)

    Hello and thanks for carrying.

    It doesn’t matter how many files I chose, first attemt fails. I love to add several images at once but at the moment I only do one by one.

    Here is the php log, I just anonymized the user:

    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "[14-Jun-2021 12:44:33 UTC] PHP Fatal error:  Uncaught ValueError: Path cannot be empty in /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php:541"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "Stack trace:"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#0 /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php(541): getimagesize('')"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#1 /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php(694): bwg_UploadHandler->handle_image_file('/var/www/virtua...', Object(stdClass))"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#2 /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php(995): bwg_UploadHandler->handle_file_import('AA011-Altenahr-...', 'AA011-Altenahr-...')"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#3 /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php(152): bwg_UploadHandler->post()"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#4 /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php(136): bwg_UploadHandler->initialize()"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#5 /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php(26): bwg_UploadHandler->__construct(Array)"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#6 /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/photo-gallery.php(967): require_once('/var/www/virtua...')"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#7 /var/www/virtual/<user>/html/wp-includes/class-wp-hook.php(292): BWG->bwg_UploadHandler('')"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#8 /var/www/virtual/<user>/html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#9 /var/www/virtual/<user>/html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#10 /var/www/virtual/<user>/html/wp-admin/admin-ajax.php(187): do_action('wp_ajax_bwg_Upl...')"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "#11 {main}"
    [14-Jun-2021 14:44:33] WARNING: [pool www] child 25785 said into stderr: "  thrown in /var/www/virtual/<user>/html/wp-content/plugins/photo-gallery/filemanager/UploadHandler.php on line 541"

    The file’s name and location in this case is “wp-content/uploads/AA011-Altenahr-im-Fruehling.jpg”. The other are similar.

    Dear @jandieckmann,
    Thank you for the log.

    We determined the underlying issue.

    The upcoming update will address the problem.

    Thank you for your patience with the case.

    Sincerely,

    Thread Starter JanDieckmann

    (@jandieckmann)

    Great. I am glad you find the problem. I am looking forward to the update.
    Thank you very much.

    Thread Starter JanDieckmann

    (@jandieckmann)

    There was an update today that fixed several minor issues but not this. I tried again and see no difference. Keep on waiting. ??

    Dear @abubakariqbal and @jandieckmann,
    Sorry for the delay.

    The fixes will go live with version 1.5.77.

    Sincerely,

    Plugin Support Zhanna Khachatryan

    (@zhannak)

    Hi @asyag,

    The fixed version is already released, can you please update the plugin and check again?

    Thread Starter JanDieckmann

    (@jandieckmann)

    I can confirm the fix. For me it is working fine now.

    Thank you very much!

    • This reply was modified 3 years, 8 months ago by JanDieckmann.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Failed to import images from media library’ is closed to new replies.