All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Running into memory issues using the "Select Files" type in Low Variables

Victor Gutierrez 21 Jun 2016 14:33 problem, active

We have a variable group with 30 "Select Files" types in Low Variables.

The dropdown has around 5000 files in it and every time we load that page it would crash with a blank page indicating memory limit reached. We increased the memory limit to 512M to make it load.

Do you have any ideas on how to make it work with less memory?

Only solution we see is to create a new upload directory and move only the files we need to that directory but that will take a couple of hours of digging and making sure we have them all.

Replies

  1. Low 21 Jun 2016 15:11

    For the record, what are your PHP, EE and LV versions?

    You could also try and split the one variable group into multiple groups, limiting the amount of vars on a page.

  2. Victor Gutierrez 21 Jun 2016 15:16

    yeah sorry, forgot to mention those.

    EE 2.8.1
    Low Variables 2.6.1
    PHP 5.5.36

    Splitting the variables groups could be a short term solution, going to give that a shot.

    LV is caching the data for each field right?

  3. Low 21 Jun 2016 15:21

    Yeah. Check out low_variables/types/low_select_files/vt.low_select_files.php, around line 157. Dirs and files are cached per page load.