• Resolved painter602

    (@painter602)


    Hello
    First – thank-you for Media Library Assistant, the plugin helps with my gallery pages.

    I updated many of the plugins on my site today after a long period of no change.
    All seem to be working OK except recent versions of Media Library Assistant (versions 2.92 and 2.84).

    Rolling back to MLA v 2.83 the site works as intended.

    With the two later versions, loading my gallery pages is very slow before failing/erroring.

    The first time I encountered the problem, all my plugins were moved to a save folder (not sure if this is WordPress, or something set up by my system admins).
    No error log is produced, so I can’t chase down where the problem occurs.

    I haven’t seen the save folder reappear in later test, but still don’t get an error log.

    I tried deleting and installing a fresh copy of MLA, but that gave the same issues as updating.

    I’d like to understand the problem with the newer versions of MLA, and bring my site up to date.
    Hope you can help

    Regards

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

    (@dglingren)

    Thanks for your positive MLA feedback and for your report. Thanks as well for the investigation work you’ve done to help isolate the updates causing the problem.

    I do not know why the “save folder” appeared, but as you suspect it may be a WordPress function. I know they have made some improvements in isolating failing plugins in the recent updates.

    I want to make sure I understand your issue. It looks like the problem occurs when you use the [mla_gallery] shortcode to display a gallery on a front end post/page; is that right?

    There were a number of changes from v2.83 to v2.84 that could be causing the problem, although they look fine to me. You wrote “No error log is produced…“. Have you tried accessing the Settings/Media Library Assistant Debug tab to view the log? If you don’t see the log there you can try using the “Debug File” and “Replace PHP error log file” settings to set up a file MLA can access.

    It would also be helpful to know if the problem affects all of your shortcodes or a smaller subset. If you post the source text of a shortcode that has the problem I can try reproducing it on my own system.

    I will leave this topic unresolved until I hear back from you. Thanks for your help and your interest in the plugin.

    Hello David,

    I have used MLA for years on my site and it has been the backbone of our downloadable media library.

    However, today I too discovered that my Product Image Library (https://www.winework.com/our-services/winework-solutions-images/product-image-library/) stopped working after recently installing plugin updates. The last date I can identify it as working correctly is 02 December 2020.

    The fault produced was such that selecting the desired brand from the Drop Down Menu, and clicking the GO button, did not return the images for the brand selected.

    The issue is resolved by rolling back to version 2.84.

    Please let me know if I can provide additional info that may help you resolve the issue in a new update.

    Kind regards,

    Colin Ford
    Winework Solutions

    Plugin Author David Lingren

    (@dglingren)

    Thanks, @winework, for your report. I note that you resolved your problem by going back to v2.84, while the original post says a rollback to v2.83 was required.

    It would be very helpful if you could past the source code for your [mla_term_list] and [mla_gallery] shortcodes so I can try to reproduce the problem. Thanks for any additional details you can provide.

    Hi David,

    I can confirm that my site is working with version 2.84.

    [term_list]
    Name: term-list
    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>

    [gallery]
    Name:
    Default
    Open:
    <div id='[+selector+]’ class=’gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+]’>
    Row Open:
    <!– row-open –>
    Item:
    <[+itemtag+] class=’gallery-item [+last_in_row+]’>
    <[+icontag+] class=’gallery-icon [+orientation+]’>
    [+link+]
    </[+icontag+]>
    [+captiontag_content+]
    </[+itemtag+]>
    Row Close:
    <br style=”clear: both” />

    Custom Templates

    [product_mu]
    Name:
    product_mu
    Open:
    <table id='[+selector+]’ class=’gallery galleryid-[+id+] gallery-columns-[+columns+]’>
    Row Open:
    <tr class=’gallery-row’>
    Item:
    <td class=’gallery-icon’>
    [+thumbnail_content+]
    </td>
    <td class=’wp-caption-text gallery-caption’>
    <font color=”black”>[+title+]</font><br />
    <br>
    File Name: [+file+]<br />
    File Type: [+terms:category+]<br />
    File Format: [+mime_type+]<br />
    Dimensions: [+dimensions+] px<br />
    File Size: [+file_size,commas+] bytes<br />
    </td>
    Row Close:
    </tr>

    [product]
    Name:
    product
    Styles:
    #[+selector+] .gallery-item {
    float: [+float+];
    margin: [+margin+];
    text-align: center;
    width: [+itemwidth+];
    </td>
    <td class=’wp-caption-text gallery-caption’ style=”border: none”>
    [+title+]<br />
    [+caption+]
    </td>

    I hope this is the info you meant… and hope it is helpful.

    Best regards,
    Colin

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the source text; very helpful.

    For anyone reading this topic who wants to go back to an earlier version, here are some instructions:

    How Do I Rollback MLA to an Earlier Version?

    Version 2.83 seems to ne fine – see the last post in the related topic.

    Plugin Author David Lingren

    (@dglingren)

    @winework – It would be very helpful to see the shortcodes you are using for the control and the gallery, e.g., something like:

    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" show_count=true pad_counts=false ]
    
    [mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}" posts_per_page=3 mla_caption="{+title+} : {+description+}" mla_nolink_text="Select a term to display the gallery."]
    

    Your parameters will be different, but you get the idea. Thanks!

    Hi David,

    Sorry, but I don’t know where to look for those sections of code. Can you guide me?

    I have the following templates showing under the Sortcodes tab in MLA settings.

    Name, Type, Term List

    default, Style, Gallery
    (default)

    default, Markup, Gallery
    (default)

    product, Style, Gallery

    product_mu, Markup, Gallery

    tag-cloud-dl, Markup, Tag Cloud
    (default)

    tag-cloud-ul, Markup, Tag Cloud
    (default)

    tag-cloud, Style, Tag Cloud
    (default)

    tag-cloud, Markup, Tag Cloud
    (default)

    term-list-checklist, Markup, Term List
    (default)

    term-list-dl, Markup, Term List
    (default)

    term-list-dropdown, Markup, Term List
    (default)

    term-list-ul, Markup, Term List
    (default)

    term-list, Style, Term List
    (default)

    Are any of these going to contain the code you’re looking for? Or am I looking in the wrong place?

    Colin

    • This reply was modified 4 years, 3 months ago by Winework.
    Plugin Author David Lingren

    (@dglingren)

    Sorry for the confusion. The shortcodes I am referring to would be in the content of the post/page that displays the Product Image Library. If the page is displayed by a PHP template file they might be found in a do_shortcode function call.

    If it’s not obvious how to find them, don’t worry about it. Thanks!

    David,

    Thanks for the pointer. I think this may be what you’re looking for…

    [mla_term_list taxonomy=attachment_category child_of=26 mla_output=dropdown mla_option_value=”{+slug+}” show_count=true pad_counts=false ]

    [mla_gallery]
    attachment_category=”{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}” posts_per_page=20 mla_output=”paginate_links, prev_next”
    mla_link_href='{+new_url+}?tax_input[attachment_category]=”{+query:attachment_category,text+}”‘
    [/mla_gallery]

    [mla_gallery]
    attachment_category=”{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}” size=”thumbnail” posts_per_page=20 orderby=”title”
    [/mla_gallery]

    [mla_gallery]
    attachment_category=”{+template:({+request:tax_input.attachment_category+}|kumeu-river)+}” posts_per_page=20 mla_output=”paginate_links, prev_next”
    mla_link_href='{+new_url+}?tax_input[attachment_category]=”{+query:attachment_category,text+}”‘
    [/mla_gallery]

    Regards,

    Colin

    Plugin Author David Lingren

    (@dglingren)

    @winework – Thanks for posting your shortcode source text; exactly what I needed to see.

    Your shortcodes fail because of a defect I introduced in MLA v2.90-2.92 that fails to access substitution parameters containing compound names. In your application these include the {+request:tax_input.attachment_category+} parameter required to filter the gallery display.

    I have uploaded a new MLA Development Version dated 20201210 that corrects the problem. You can find step-by-step instructions for using the Development Version in this support topic:

    PHP Warning on media upload with Polylang

    It would be great if you could install the Development Version and let me know if it works for you. Thanks again for alerting me to this MLA defect.

    @painter602 – There is a small chance that the updates I made will resolve your problem, but without seeing your shortcode text(s) I cannot be sure. It would be great if you can try the Development Version and/or respond to my first post asking for more information about your specific situation. Thanks for your patience, your help and any additional details you can provide.

    Plugin Author David Lingren

    (@dglingren)

    @winework – I discovered that I hadn’t actually updated the Development Version when I wrote my last post. If you install the Development Version, make sure you see “20201210” in the Plugins/Installed Plugins description for MLA so you know you got the right code.

    My apologies for any inconvenience.

    Hi David,

    I have installed the Development Version (20201210) and it works perfectly!

    Issue resolved.

    Thank you for your outstanding customer service, as usual!

    Colin Ford
    Winework Solutions

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA v2.94, which contains the fixes for the problem reported by @winework and may also resolve the problem originally reported in this topic by @painter602.

    I am marking this topic resolved, but please update it if you continue to have slow or failing page loads after updating to the new version. Thanks for your patience and your interest in the plugin.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Slow loading or failing to load after v 2.84’ is closed to new replies.