• Resolved jordiniubo

    (@jordiniubo)


    First of all, thanks for all the hard work from you and all the people who make freely avaliable projects online.

    I have two polylang / media library assistant sites wich worked perfectly. But recently both developed the next problem: In the attached categories screen an error is printed in the “Attachments” column (see the image linked and the text of the error)
    https://imgur.com/EysKFCH

    Fatal error: Uncaught Error: Call to undefined method PLL_Admin_Filters_Term::terms_clauses() in /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-polylang-shortcode-support.php:79 Stack trace: #0 /usr/home/exampledomain.com/web/wp-includes/class-wp-hook.php(286): MLA_Polylang_Shortcodes::mla_get_terms_clauses(Array) #1 /usr/home/exampledomain.com/web/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #2 /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-shortcode-support.php(5822): apply_filters('mla_get_terms_c...', Array) #3 /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-shortcodes.php(180): MLAShortcode_Support::mla_get_terms(Array) #4 /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-objects.php(220): MLAShortcodes::mla_get_terms(Array) #5 /usr/home/exampledomain.com/web/wp-includes/class-wp-hook.php(286): MLAObjects::mla_taxonomy_column_filter('', 'attachments' in /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-polylang-shortcode-support.php on line 79

    Just replaced the domain with “exampledomain.com”

    Dont know if its media library fault or polylang.

    Thanks for your time.

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

    (@dglingren)

    Thanks for the positive feedback and for your report. Thanks as well for the details on the message you’re seeing and for the screen shot; very helpful.

    I’ve just run a few tests and I could not reproduce your symptoms on my system with Polylang versions 2.2.7 nor 2.5.1, the latest release. I am using MLA version 2.77, but I haven’t changed the Polylang code in some time.

    The problem occurred after I updated WordPress to version 5.0.3. I will investigate further and post an update here when I have progress to report.

    Can you tell me which versions of Polylang, MLA and WordPress you are using? Thanks for any additional information you can provide.

    Thread Starter jordiniubo

    (@jordiniubo)

    Version of wordpress: 5.0.3
    Version of Polylang: 2.5.1
    Version of MLA: 2.77

    Checked my server PHP errors: First time noticed: 07 january 2019

    Here’s a slightly different error from my other site:

    [14-Jan-2019 10:45:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method PLL_Admin_Filters_Term::terms_clauses() in /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-polylang-shortcode-support.php:79
    Stack trace:
    #0 /usr/home/exampledomain.com/web/wp-includes/class-wp-hook.php(286): MLA_Polylang_Shortcodes::mla_get_terms_clauses(Array)
    #1 /usr/home/exampledomain.com/web/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #2 /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-shortcode-support.php(5822): apply_filters('mla_get_terms_c...', Array)
    #3 /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-shortcodes.php(180): MLAShortcode_Support::mla_get_terms(Array)
    #4 /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-objects.php(220): MLAShortcodes::mla_get_terms(Array)
    #5 /usr/home/exampledomain.com/web/wp-includes/class-wp-hook.php(286): MLAObjects::mla_taxon in /usr/home/exampledomain.com/web/wp-content/plugins/media-library-assistant/includes/class-mla-polylang-shortcode-support.php on line 79

    I don’t know if I can provide more useful data, but I’m willing to.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for the version information and for the additional example.

    I have uploaded a new MLA Development Version dated 20190118 that contains a fix for your issue. You can find step-by-step instructions for using the Development Version in this earlier topic:

    PHP Warning on media upload with Polylang

    If you get a chance to try the Development Version please let me know how it works for you. Thanks for your help with this issue.

    Thread Starter jordiniubo

    (@jordiniubo)

    It worked flawlessly! It didn’t show any warning and I can see again the number of attachments.

    Thank you for your quick response!

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 2.78, which contains the fix for your problem.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the new version. Thanks again for your help with this issue.

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

The topic ‘Attached Categories Error’ is closed to new replies.