• Resolved walterjonesjr

    (@walterjonesjr)


    When I try to change the number of items shown under screen options of MLA I get the WordPress Error that my site is experiencing technical difficulties. I turned on debugging in MLA settings and got the following:

    10-May-2019 02:06:32 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type Closure as array in /home/cmans/rms.cmans.org/wp-content/plugins/media-library-assistant/includes/class-mla-core.php:1496
    Stack trace:
    #0 /home/cmans/rms.cmans.org/wp-content/plugins/media-library-assistant/includes/class-mla-main.php(754): MLACore::mla_decode_wp_filter(‘set-screen-opti…’)
    #1 /home/cmans/rms.cmans.org/wp-includes/class-wp-hook.php(286): MLA::mla_set_screen_option_filter(false, ‘mla_entries_per…’, ’10’)
    #2 /home/cmans/rms.cmans.org/wp-includes/plugin.php(208): WP_Hook->apply_filters(false, Array)
    #3 /home/cmans/rms.cmans.org/wp-admin/includes/misc.php(658): apply_filters(‘set-screen-opti…’, false, ‘mla_entries_per…’, ’10’)
    #4 /home/cmans/rms.cmans.org/wp-admin/admin.php(105): set_screen_options()
    #5 /home/cmans/rms.cmans.org/wp-admin/upload.php(10): require_once(‘/home/cmans/rms…’)
    #6 {main}
    thrown in /home/cmans/rms.cmans.org/wp-content/plugins/media-library-assistant/includes/class-mla-core.php on line

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter walterjonesjr

    (@walterjonesjr)

    Figured it out.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and for including the error stack trace; very helpful. Thanks as well for your persistence in “”figuring it out” – excellent news.

    I would be very interested in any further details you can provide so I can make any MLA changes that might help other users in the future. I am traveling until next week, but I can investigate further on my return. Thanks for any help you can give me, and for your interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    As a precaution, I have added a test to the code in mla_decode_wp_filter() to avoid PHP errors when encountering a non-array reference type. I do not plan any further changes unless I can get more information to reproduce this issue for further investigation.

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

The topic ‘Error Screen Options’ is closed to new replies.