• Resolved Winework

    (@winework)


    Hello David,

    We have experienced a critical error situation too.

    Users can still download images individually from our Image Library, but using the “Download EVERYTHING I’ve Ticked – NOW” button, sends the user to https://www.wineworkimages.com/wp-admin/admin-ajax.php and displays “There has been a critical error on this website.”

    I have installed “MLA 20250730” but the error persists. Please note our site also uses MLA Gallery Download Checklist (v1.0) & MLA UI Elements Example (v2.06).

    Can you offer any help or guidance?

    Thank you,
    Colin Ford
    Winework Solutions Images

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report I haven’t been able to reproduce the problem on my test site, so I would like more information to investigate further.

    Can you post the full text of your [mla_term_list], [mla_gallery] and [mla_download_checklist] shortcodes? I can use this to make sure my shortcodes match yours.

    Can you look in the error log to see if there are messages related to the critical errors? You can also activate some MLA debugging logic and run a test.

    To activate MLA’s debug logging:

    1. Navigate to the Settings/Media Library Assistant Debug tab.
    2. Scroll down to the “MLA Reporting” text box and enter “0x8003”. This will turn on MLA debug logging for AJAX operations and the Gallery Download Checklist plugin.
    3. Click the Save Changes button to record your new setting.
    4. Optionally, scroll to the bottom of the screen and click “Reset” to clear the error log. You may not want to do this depending on how you manage your error log.

    Once that’s done you can run a test. The debug log will be very detailed, so restricting the test as best you can will be very helpful. For example, try picking one gallery entry and clicking the button.

    When you’ve finished testing, go back to the Debug screen and:

    1. Enter “0” in the MLA Reporting text box to turn debug logic off.
    2. Click the Save Changes button to record your new setting.
    3. Scroll to the bottom and click “Download” to get the log content in a text file.

    There should be a lot of messages written to the log, so limit the amount of activity during the logging period. You should see messages in the log like these:

    [31-Jul-2025 23:24:06 UTC] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'mla-checklist-archive-items' =>
    array (
    0 => '2442',
    1 => '3512',
    ),
    'action' => 'mla_download_checklist',
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'selections' => 'Download ALL Selections',
    )

    Of course, the details will be different. You can download and send the log by email if it’s easier than posting it here. Thanks for any additional information you can provide.

    Thread Starter Winework

    (@winework)

    Hello David,
    I appreciate your prompt reply and apologise if I’m a bit out of my depth. I’ve done my best to provide what you’ve asked for but may need some more guidance for a couple of things…

    Here is the [mla_term_list] shortcode…

    Styles:

    <style type='text/css'>
    #[+selector+] {
    margin: auto;
    width: 100%;
    }
    #[+selector+] .term-list-item {
    text-align: left;
    }
    #[+selector+] .term-list-caption {
    margin-left: 0;
    vertical-align: top;
    }

    #[+selector+].term-list-checklist {
    list-style: none;
    }
    /* see mla_term_list() in media-library-assistant/includes/class-mla-shortcode-support.php */
    </style>

    Here is the [mla_gallery] shortcodes…

    Name: product

    Styles:

    #[+selector+] .gallery-item {
    float: [+float+];
    margin: [+margin+];
    text-align: center;
    width: [+itemwidth+];

    </td>
    <td class='wp-caption-text gallery-caption'>
    <strong>[+title+]</strong><br />
    [+caption+]
    </td>

    Name: product_mu-copy

    Open:

    <table id='[+selector+]' class='gallery galleryid-[+id+] gallery-columns-[+columns+]'>

    Open Row:

    <tr class='gallery-row'>

    Item:

    <td class='gallery-icon' style="width:150px">
    <a onclick="ga('send', 'event', 'download', [+query:attachment_category,single+]', '[+file+]');" href="[+downloadlink_url+]" target="_blank">[+thumbnail_content+]</a>
    </td>
    <td class='wp-caption-text gallery-caption' style="line-height:1.5">
    <div align="left">
    <strong><span style="font-size: 16px; line-height: 1.2; color: #336699">[+caption+]</span></strong><br/><br>
    <span style="letter-spacing:.1px"><strong>File Name:</strong> [+file+]<br />
    <strong>File ID:</strong> [+description+]<br />
    <strong>File Type:</strong> [+terms:category+]<br />
    <strong>File Format:</strong> [+mime_type+]<br />
    <strong>Dimensions:</strong> [+dimensions+] px<br />
    <strong>File Size:</strong> [+file_size,commas+] bytes<br /><br />
    <span style="vertical-align: middle"><input type="checkbox" name="mla-checklist-archive-items[]" value="[+attachment_ID+]"></span><span style="color: #336699"> [ADD to Download]</span>
    </div>
    </td>

    Row Close:

    </tr>

    Close:

    </table>

    [mla_download_checklist]

    Sorry, I don’t know where to find this.

    Under the DEBUG Tab there is a warning message – ERROR: Reading the Error Log file ( /var/www/www.wineworkimages.com/apachelogs/php.www.wineworkimages.com.log ) “.”.

    Following your instructions to download the error log file yields an empty txt file.

    I’m not sure I have been a great deal of help, but I await your further instructions.

    Thank you,
    Colin Ford
    Winework Solution Images

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for trying to follow the instructions in my earlier post.

    The information you supplied looks like the custom templates you are using in your shortcodes. What I’d like to see are the shortcodes and all their parameters. You would find them in the content of your Image Library page. Here is the post you made in your earlier topic describing the ” three sections of MLA code” you implemented:

    Select Multiple Files for Download | WordPress.org

    Regarding the Debug instructions, it looks like MLA can’t read the error log on your server. For testing purposes you can create a new file for the log messages. To do that:

    1. Navigate to the Settings/Media Library Assistant Debug tab.
    2. Scroll down to the “Debug File” text box and enter “/uploads/mla.log”. This will direct all the log messages to a file that MLA can read.
    3. Check the “Replace PHP error_log file” box. This should direct the PHP error messages to the new log file.
    4. Go to the “MLA Reporting” text box and enter “0x8003”. This will turn on MLA debug logging for AJAX operations and the Gallery Download Checklist plugin.
    5. Click the Save Changes button to record your new setting.
    6. When the page refreshes, scroll to the bottom of the screen and click “Reset” to clear the error log.

    You should see the same path and file name in the “New PHP error_log” box and just above the Error Log text area.

    Once that’s done you can run a test. The debug log will be very detailed, so restricting the test as best you can will be very helpful. For example, try running the rule on a single item using the “Map IPTC/EXIF Metadata” link on the Media/Edit Media screen.

    When you’ve finished testing, go back to the Debug screen, scroll to the bottom and click “Download” to get the log content in a text file.

    Then reverse the changes you made to activate the logging:

    1. Scroll to the bottom of the screen and click “Reset” to clear the error log.
    2. Delete the “/uploads/mla.log” in the Debug File text box.
    3. Uncheck the “Replace PHP error_log file” box.
    4. Enter “0” in the MLA Reporting text box to turn debug logic off.
    5. Click the Save Changes button to record your new setting.

    Let me know if you have any problems or questions regarding these additional instructions. Thanks for your help and your patience.

    Thread Starter Winework

    (@winework)

    Hi again David,

    Thank you for bearing with me and for talking me through.

    Here is the code of the Image Library page.

    Block One:

    <form id="mla-text-form" class="row" action="." method="post">
    <p><span style="color: #000000; font-size: 20px;"><strong>BRANDS AVAILABLE FOR DOWNLOAD</strong></span><br><br>
    <span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">Downloading brand images is </span></span><span style="color:rgb(0,0,0);font-family:Verdana, Geneva, sans-serif;"><strong>FREE</strong></span><span style="color:rgb(0,0,0);font-family:Verdana, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">. Choose a brand from the </span></span><span style="color:#b71c1c;font-family:Verdana, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">BRAND SELECTOR/dropdown</span></span><span style="color:rgb(0,0,0);font-family:Verdana, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"> list, click </span></span><span style="color:#b71c1c;font-family:Verdana, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">SELECT</span></span><span style="color:rgb(0,0,0);font-family:Verdana, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"> – then </span></span><span style="color:rgb(0,0,0);font-family:Verdana, Geneva, sans-serif;"><strong>click on an image</strong></span><span style="color:rgb(0,0,0);font-family:Verdana, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"> from the resulting list to </span></span><span style="color:rgb(0,0,0);font-family:Verdana, Geneva, sans-serif;"><strong>download and save…</strong></span></p>
    <p><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">To select and download </span></span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;"><strong>more than one file at a time</strong></span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">, tick the </span></span><span style="color:#b71c1c;font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">[ADD to Download] checkbox</span></span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"> next to the thumbnail of each of your chosen files, then </span></span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;"><strong>click the</strong></span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"> </span></span><span style="color:#b71c1c;font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">Download EVERYTHING I’ve ticked – NOW </span></span><span style="color:#b71c1c;">button</span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"> at the top <strong>or</strong> the bottom of the results list to save them together, as a single </span></span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;"><strong>ZIP file</strong></span><span style="color:rgb(0,0,0);font-family:&quot;AR One Sans&quot;, Tahoma, Geneva, sans-serif;font-size:16px;"><span style="-webkit-text-stroke-width:0px;display:inline !important;float:none;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">.</span><br><br><br><span style="color: #336699; font-size: 18px;"><strong>BRAND SELECTOR:</strong></span><p>
    [mla_term_list taxonomy=attachment_category child_of=15 mla_output=dropdown mla_option_value="{+slug+}" show_count=true pad_counts=false use_filters=true]
    <div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
    <p><span style="padding-left:10px;";><input id="text-form-submit" name="text_form_submit" type="submit" value="SELECT" style="height:42px; width:85px; padding:5px"></span></p>
    </form>

    Block Two:

    <p></p>
    <form action="https://www.wineworkimages.com/wp-admin/admin-ajax.php" method="post" id="mla-checklist-download-form">
    <div align="center">
    [mla_download_checklist]
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I've ticked - NOW"
    allow_empty_gallery=false
    empty_text="No Available Selections"
    [/mla_download_checklist]<br/>
    <p></p>
    </div>
    <p>[mla_gallery]<br>attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}" posts_per_page=100 mla_output="paginate_links, prev_next"<br>mla_link_href='{+new_url+}?tax_input[attachment_category]="{+query:attachment_category,text+}"'<br>[/mla_gallery]</p>
    <p>[mla_gallery]<br>attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}" size="thumbnail" posts_per_page=100 orderby="caption"<br>[/mla_gallery]</p>
    <div align="center">
    [mla_download_checklist]
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I've ticked - NOW"
    allow_empty_gallery=false
    empty_text=" "
    [/mla_download_checklist]<br/>
    <p></p>
    </div>
    </form>

    Here is the Error Log:

    [02-Aug-2025 02:28:05] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'twd_cpt_list',
    'security' => 'd8f96c0d82',
    )
    [02-Aug-2025 02:28:05] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'monsterinsights_vue_get_notifications',
    'nonce' => '0407631019',
    )
    [02-Aug-2025 02:29:05] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'as_async_request_queue_runner',
    'nonce' => '9ca24fa4f2',
    )
    [02-Aug-2025 02:29:55] 391 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $attr = array (
    )
    [02-Aug-2025 02:29:55] 392 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $content = '
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I\'ve ticked - NOW"
    allow_empty_gallery=false
    empty_text="No Available Selections"
    '
    [02-Aug-2025 02:29:55] 410 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $arguments = array (
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'button_attributes' => '',
    'button_class' => '',
    'button_text' => 'Download EVERYTHING I\'ve ticked - NOW',
    'allow_empty_gallery' => 'false',
    'disposition' => 'delete',
    'empty_text' => 'No Available Selections',
    )
    [02-Aug-2025 02:29:55] 442 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode mla_get_shortcode_attachments( 3527 ) $attachments_attr = array (
    'attachment_category' => 'kumeu-river',
    'posts_per_page' => '100',
    )
    [02-Aug-2025 02:29:55] 391 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $attr = array (
    )
    [02-Aug-2025 02:29:55] 392 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $content = '
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I\'ve ticked - NOW"
    allow_empty_gallery=false
    empty_text=" "
    '
    [02-Aug-2025 02:29:55] 410 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $arguments = array (
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'button_attributes' => '',
    'button_class' => '',
    'button_text' => 'Download EVERYTHING I\'ve ticked - NOW',
    'allow_empty_gallery' => 'false',
    'disposition' => 'delete',
    'empty_text' => ' ',
    )
    [02-Aug-2025 02:29:55] 442 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode mla_get_shortcode_attachments( 3527 ) $attachments_attr = array (
    'attachment_category' => 'kumeu-river',
    'posts_per_page' => '100',
    )
    [02-Aug-2025 02:30:09] 391 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $attr = array (
    )
    [02-Aug-2025 02:30:09] 392 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $content = '
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I\'ve ticked - NOW"
    allow_empty_gallery=false
    empty_text="No Available Selections"
    '
    [02-Aug-2025 02:30:09] 410 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $arguments = array (
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'button_attributes' => '',
    'button_class' => '',
    'button_text' => 'Download EVERYTHING I\'ve ticked - NOW',
    'allow_empty_gallery' => 'false',
    'disposition' => 'delete',
    'empty_text' => 'No Available Selections',
    )
    [02-Aug-2025 02:30:09] 442 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode mla_get_shortcode_attachments( 3527 ) $attachments_attr = array (
    'attachment_category' => 'allan-scott',
    'posts_per_page' => '100',
    )
    [02-Aug-2025 02:30:09] 391 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $attr = array (
    )
    [02-Aug-2025 02:30:09] 392 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $content = '
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I\'ve ticked - NOW"
    allow_empty_gallery=false
    empty_text=" "
    '
    [02-Aug-2025 02:30:09] 410 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $arguments = array (
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'button_attributes' => '',
    'button_class' => '',
    'button_text' => 'Download EVERYTHING I\'ve ticked - NOW',
    'allow_empty_gallery' => 'false',
    'disposition' => 'delete',
    'empty_text' => ' ',
    )
    [02-Aug-2025 02:30:09] 442 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode mla_get_shortcode_attachments( 3527 ) $attachments_attr = array (
    'attachment_category' => 'allan-scott',
    'posts_per_page' => '100',
    )
    [02-Aug-2025 02:30:15] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'mla_download_checklist',
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'selections' => 'Download EVERYTHING I\\\'ve ticked - NOW',
    'mla-checklist-archive-items' =>
    array (
    0 => '4094',
    1 => '4095',
    ),
    )
    [02-Aug-2025 02:30:15] 268 MLAGalleryDownloadChecklist::mla_download_checklist_action $_REQUEST = array (
    'action' => 'mla_download_checklist',
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'selections' => 'Download EVERYTHING I\\\'ve ticked - NOW',
    'mla-checklist-archive-items' =>
    array (
    0 => '4094',
    1 => '4095',
    ),
    )
    [02-Aug-2025 02:30:15] 278 MLAGalleryDownloadChecklist::mla_download_checklist_action $arguments = array (
    'action' => 'mla_download_checklist',
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'disposition' => 'delete',
    )
    [02-Aug-2025 02:30:15] 307 MLAGalleryDownloadChecklist::mla_download_checklist_action $file_names = array (
    'WWAS7462.jpg' => '/var/www/www.wineworkimages.com/htdocs/wp-content/uploads/2025/01/WWAS7462.jpg',
    'WWAS7462.png' => '/var/www/www.wineworkimages.com/htdocs/wp-content/uploads/2025/01/WWAS7462.png',
    )
    [02-Aug-2025 02:30:36] 735 MLACore::mla_plugins_loaded_action() MLA 3.27 (20250730) mla_debug_level 0x8003

    I hope this is helpful.

    Regards,

    Colin Ford
    Winework Solutions Images

    Plugin Author David Lingren

    (@dglingren)

    Thanks for posting the shortcode details and the error log. I’ve duplicated your shortcodes on my test system and analyzed the log. The log shows that MLA and the example plugin are working correctly but the critical error occurs when the ZIP archive is being prepared. It looks like some problem with PHP’s ZIP support on your system or the way the example plugin uses it.

    You can test this by navigating to the Media/Assistant screen and pulling down the “Bulk Actions” dropdown control. If you do not see “Download” in the actions list there is no ZIP support on your system. This seems unlikely because it would cause other problems.

    I have updated the example plugin to avoid the critical site error problem and catch whatever error is causing it.

    I have uploaded a new MLA Development Version dated 20250802 that includes the updated example plugin. You can find step-by-step instructions for using the Development Version in this earlier topic:

    How to download & install the current development version of MLA

    Once the Development Version is installed you must update the example plugin. Navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. Type “checklist” in the text box and click “Search Plugins” to filter the table.

    You are looking for the “MLA Gallery Download Checklist” example plugin. Find that plugin and hover over the title in the left-most column. Click the “Update” rollover action, then go to the WordPress Plugins/Installed Plugins submenu and make sure you have the latest version, 1.01, installed and active.

    Once the Development Version and updated example plugin are installed and active you can
    test its handling of your “Download Everything” action. Make sure you have also followed the “Replace PHP error_log file” instructions in my earlier post so you can capture all the MLA debug messages.

    Thanks for your patience and persistence!

    Thread Starter Winework

    (@winework)

    Good Morning David,

    I have followed your clear instructions and the result of clicking the “Download Everything” button now is that the URL https://www.wineworkimages.com/wp-admin/admin-ajax.php is returned and the text “ERROR: The ZIP archive ( /var/www/www.wineworkimages.com/htdocs/wp-content/uploads/selections_20250802_003.zip ) could not be created; no ZipArchive support.” is displayed.

    Here is the error log:

    [02-Aug-2025 23:06:58] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'twd_cpt_list',
    'security' => '847ba3fd42',
    )
    [02-Aug-2025 23:06:58] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'monsterinsights_vue_get_notifications',
    'nonce' => '9faf58d0bf',
    )
    [02-Aug-2025 23:07:06] 735 MLACore::mla_plugins_loaded_action() MLA 3.27 (20250802) mla_debug_level 0x8003
    [02-Aug-2025 23:07:36] 473 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $attr = array (
    )
    [02-Aug-2025 23:07:36] 474 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $content = '
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I\'ve ticked - NOW"
    allow_empty_gallery=false
    empty_text="No Available Selections"
    '
    [02-Aug-2025 23:07:36] 492 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $arguments = array (
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'button_attributes' => '',
    'button_class' => '',
    'button_text' => 'Download EVERYTHING I\'ve ticked - NOW',
    'allow_empty_gallery' => 'false',
    'disposition' => 'delete',
    'empty_text' => 'No Available Selections',
    )
    [02-Aug-2025 23:07:36] 527 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode mla_get_shortcode_attachments( 3527 ) $attachments_attr = array (
    'attachment_category' => 'kumeu-river',
    'posts_per_page' => 1,
    'fields' => 'ids',
    )
    [02-Aug-2025 23:07:36] 473 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $attr = array (
    )
    [02-Aug-2025 23:07:36] 474 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $content = '
    attachment_category="{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}"
    posts_per_page=100
    archive_name=selections
    button_text="Download EVERYTHING I\'ve ticked - NOW"
    allow_empty_gallery=false
    empty_text=" "
    '
    [02-Aug-2025 23:07:36] 492 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode $arguments = array (
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'button_attributes' => '',
    'button_class' => '',
    'button_text' => 'Download EVERYTHING I\'ve ticked - NOW',
    'allow_empty_gallery' => 'false',
    'disposition' => 'delete',
    'empty_text' => ' ',
    )
    [02-Aug-2025 23:07:36] 527 MLAGalleryDownloadChecklist::mla_download_checklist_shortcode mla_get_shortcode_attachments( 3527 ) $attachments_attr = array (
    'attachment_category' => 'kumeu-river',
    'posts_per_page' => 1,
    'fields' => 'ids',
    )
    [02-Aug-2025 23:07:45] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'mla_download_checklist',
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'selections' => 'Download EVERYTHING I\\\'ve ticked - NOW',
    'mla-checklist-archive-items' =>
    array (
    0 => '4101',
    1 => '4098',
    ),
    )
    [02-Aug-2025 23:07:45] 318 MLAGalleryDownloadChecklist::mla_download_checklist_action $_REQUEST = array (
    'action' => 'mla_download_checklist',
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'selections' => 'Download EVERYTHING I\\\'ve ticked - NOW',
    'mla-checklist-archive-items' =>
    array (
    0 => '4101',
    1 => '4098',
    ),
    )
    [02-Aug-2025 23:07:45] 328 MLAGalleryDownloadChecklist::mla_download_checklist_action $arguments = array (
    'action' => 'mla_download_checklist',
    'archive_name' => 'selections',
    'input_array_name' => 'mla-checklist-archive-items',
    'disposition' => 'delete',
    )
    [02-Aug-2025 23:07:45] 357 MLAGalleryDownloadChecklist::mla_download_checklist_action $file_names = array (
    'WWKR6862.jpg' => '/var/www/www.wineworkimages.com/htdocs/wp-content/uploads/2025/01/WWKR6862.jpg',
    'WWKR6858.jpg' => '/var/www/www.wineworkimages.com/htdocs/wp-content/uploads/2025/01/WWKR6858.jpg',
    )
    [02-Aug-2025 23:07:45] 416 MLAGalleryDownloadChecklist::mla_download_checklist_action mla_error = ERROR: The ZIP archive ( /var/www/www.wineworkimages.com/htdocs/wp-content/uploads/selections_20250802_005.zip ) could not be created; no ZipArchive support.
    [02-Aug-2025 23:07:46] 37 MLA_Ajax::initialize( true ) $_REQUEST = array (
    'action' => 'as_async_request_queue_runner',
    'nonce' => '5cbb1d9fd9',
    )
    [02-Aug-2025 23:07:54] 735 MLACore::mla_plugins_loaded_action() MLA 3.27 (20250802) mla_debug_level 0x8003

    It seems to me that since this all worked seamlessly up until a few days ago, there must have been some change to the php on our host server, which changed/eliminated ZipArchive support. Is that a logical conclusion?

    Many thanks again,
    Colin Ford

    Thread Starter Winework

    (@winework)

    Hi again David,

    UPDATE

    I have just communicated with my website hosts again and the answer is YES. They did make a change this past week. They’ve now reinstalled support for Zip Archive and the Image Library is working perfectly again.

    Many, many thanks yet again for your brilliant support of MLA. I feel I owe an apology, as it turned out that MLA wasn’t the problem at all, but I couldn’t have tracked it down without your help. Thank you for all the work you’ve put in to help me.

    Best regards,
    Colin Ford
    Winework Solutions Images

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with this excellent news. No apology needed. I was able to make some improvements to the error handling in the MLA Gallery Download Checklist example plugin that would have made the source of the problem immediately obvious. That may help you or other MLA users in the future.

    Now that the issue is resolved, don’t forget to go back to the Settings/Media Library Assistant and undo the changes you made to activate the alternate log file and the MLA debugging.

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

You must be logged in to reply to this topic.