Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Alex Mills

    (@viper007bond)

    Is this in list or grid view? Is it faster if you switch to the other view?

    Also do you mostly have images being viewed or is it other types such as videos?

    I have some ideas as to what might be wrong, but I’ll need your help tracking it down if you’re up for it. 🙂

    Thread Starter sugardaddy

    (@sugardaddy)

    Well you’re right, it needs some details.
    Both views are slow. It took so long time to load that I can’t tell you which is the slower. But I think the grid view load some media sooner than the the list view.
    Most of the medias are pictures. We have one video, a .zip and a .pdf
    And the library is not so large, about 264 items.

    And you can have all the help I can give you !

    Plugin Contributor Alex Mills

    (@viper007bond)

    Can you try adding the following code to your theme’s functions.php file?

    https://gist.githubusercontent.com/Viper007Bond/0b6c2d15df56dd802e93d32e4e9d055a/raw/8b0e4d3cc0138eafd863d2c6de405e842a7922b0/gistfile1.txt

    If that fixes the issue, then try deleting one of the three remove_ lines at a time to see which of the three is actually fixing the issue.

    Thanks!

    Thread Starter sugardaddy

    (@sugardaddy)

    The following one resolve the issue:
    remove_filter( 'media_row_actions', array( RegenerateThumbnails(), 'add_regenerate_link_to_media_list_view' ), 10 );

    This issue only occurs for me on PHP v7.2 but it works fine on PHP v7.1.

    Commenting out this line of code solved the issue in PHP v7.2 at line regenerate-thumbnails.php#140

    add_filter( 'attachment_fields_to_edit', array( $this, 'add_button_to_edit_media_modal_fields_area' ), 99, 2 );

    – Rahil

    • This reply was modified 6 years, 8 months ago by rahilwazir. Reason: formatting
    • This reply was modified 6 years, 8 months ago by rahilwazir.
    • This reply was modified 6 years, 8 months ago by rahilwazir. Reason: not sure what I'm doing
    Plugin Contributor Alex Mills

    (@viper007bond)

    Hmm, I upgraded my local development environment to PHP 7.2.0 and tried to reproduce this but I can’t.

    Thread Starter sugardaddy

    (@sugardaddy)

    I dont’t think it’s related to the version of PHP. For my part, I get the issue with PHP 5.4

    I agree with @sugardaddy, I tried to reproduce to one of my other projects which is also running under PHP 7.2 and I can’t reproduce it there.

    Let me expand on my issue,

    So whenever I open Media Library it just freezes there, upon investigation it was filling up my server /tmp folder with gigabytes of data, actually taking full space of /tmp folder which is 6GB. But it doesn’t stop there it continues to put the process in queue I guess, which causes my server to freeze unless I forcefully restart my PHP-FPM service.
    I tried disabling all the plugins except Renegerate Thumbnails and switched to default Twenty Seventeen theme this issue still persists. So not a plugin conflict or theme issue.

    My LEMP setup: https://drive.google.com/file/d/1U5VwxAJXethJQY6n_Vwx37eETPdJFrhd/view?usp=sharing
    I have also tested without Xdebug, issue persists..

    • This reply was modified 6 years, 8 months ago by rahilwazir. Reason: add server config
    Plugin Contributor Alex Mills

    (@viper007bond)

    Thanks @rahilwazir! That gave me an idea. Can you guys try this version of the plugin to see if it solves the issue?

    https://raw.githubusercontent.com/Viper007Bond/regenerate-thumbnails/try/image-editor-choose/regenerate-thumbnails.php

    Thread Starter sugardaddy

    (@sugardaddy)

    Sorry for being so long to answer.
    I upgraded to 3.0.1 and it doesn’t do anything.
    I used your file and it’s ok to me.

    Plugin Contributor Alex Mills

    (@viper007bond)

    Excellent. Thanks for testing. The fix will be included in the next release.

    Thread Starter sugardaddy

    (@sugardaddy)

    Thanks to you ! Great support !

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Access to Media Library very slow after update 3’ is closed to new replies.