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

Support archive

Two-way sync doesn't work in Low Variables

Kevin Beick 12 Sep 2017 19:12 question, complete

In Low Variables, I have one-way disabled but it seems to be allowing only one-way sync. When I make changes to the file the show up in the CP, but when I make changes to the low variable in the CP it doesn't appear in the file. Any ideas?

Replies

  1. Low 13 Sep 2017 10:13

    What are your PHP, EE and LV versions? Also, can you verify that you are indeed editing the var files on the location set in the LV settings?

  2. Kevin Beick 13 Sep 2017 20:03

    EE 3.5.10
    PHP Version 7.0.22-0ubuntu0.16.04.1
    LV 3.0.4

    The "file path" setting in LV is /user/templates/{site_name}/lv/

    The file location on the server I'm using is /user/templates/{site_name}/lv/{site_name}

    It seemed to me that LV added that last folder on its own... but again, one-way sync does work.

    Thanks for your help!

  3. Low 14 Sep 2017 10:59

    Yeah, you don't need to add {site_name} to the path. If you point it to user/templates/lv/, then LV will create folders per site to store the vars.

    That said, it might be a time stamp discrepancy, which is hard to debug. I'd need both SuperAdmin and FTP access to debug properly. If you can, send me those login credentials to hi at gotolow dot com.

  4. Low 15 Sep 2017 11:56

    Managed to locate the bug: a query fetched the edit_date of the native global_variables table, rather than the low_variables table, making LV think the var didn't need syncing. Fixed the query and therefore the syncing. Will add the fix to the next version.

  5. Kevin Beick 15 Sep 2017 16:53

    AWESOME! Looks like it's working correctly now. Thanks so much Low! Really appreciate the help and the great add-ons.

    -Kevin