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

Support archive

Extension settings not saving.

Sean Delaney 18 Apr 2012 15:19 problem, complete

Lodewijk,

I updated LV to 2.2.0 in order to get support for Matrix v2.3 and Playa v2.4.

Updates all seem to have went ok. However I noticed that when I click on the Extensions tab, the checkbox boxes for Matrix, Playa, admins and members don't stick. I have to keep ticking them...

Before the update to v2.2.0 everything worked fine. I updated all 3 modules at the same time.

As you mentioned on Twitter have your login details ready. I've just dropped you an email. :-)

Replies

  1. Low 18 Apr 2012 15:54

    Hi Sean,

    I have no idea why, but every page load, a new row is inserted into the exp_extensions array, as if it doesn't remember it has updated already. Not only LV is doing this, but Structure as well. There are thousands of records in the exp_extensions table belonging to Structure, as you can see in the screenshot.



    I went and tried to look at your php_info(), but that's disabled by the host.

  2. Low 18 Apr 2012 15:57

    If you can comment out line #430 in ext.low_variables.php and then let me know, I'll run a query to get rid of the superfluous records (there should be 2 for LV).

  3. Sean Delaney 18 Apr 2012 15:57

    This is a MSM build with 5 sites. Would this be causing any issues?

  4. Low 18 Apr 2012 15:58

    For LV, I doubt it. It's extension settings should be for all sites.

  5. Sean Delaney 18 Apr 2012 16:04

    If I remove the extension by disabling it will it remove the entries from exp_extensions but keep my LV field values?

  6. Sean Delaney 18 Apr 2012 16:05

    I have a backup if it doesn't but want to check first...

  7. Low 18 Apr 2012 16:09

    Wouldn't recommend disabling the extension, because the module will then not work either. It'll affect the site. Can you remove line #430 from ext.low_variables.php? That will at least stop it from adding new records. After that, we could see what's really going on.

  8. Sean Delaney 18 Apr 2012 17:19

    OK, I will.

    I got your email too. I'll get in touch with the host as they updated the PHP version about two weeks ago...

  9. Sean Delaney 19 Apr 2012 07:13

    Just commented out that line #430.

    Ran that query again and now there is:

    Low_variables_ext - 5548

    I assume I can safely remove all the entries add for LV as when I update the extension settings again they will insert again (when I uncomment #430) ?

  10. Sean Delaney 19 Apr 2012 07:25

    I've also logged into the server and enabled phpinfo.

    visit domain.com/phpinfo/

  11. Sean Delaney 19 Apr 2012 07:54

    I've removed all the redundant entries keeping one for each method. I also removed the Structure ones too.

    Cleared my cached, uncommented line #430 and tried to update the LV extension settings again. This time it worked. I checked the Extensions table again and there wasn't any new records added.

    Not sure what caused this in the first place or if it was an underlying problem from updating LV in the past and not actually checking the extensions table or updating the Extension settings (as I've never needed to).

    It's strange that Structure did the same thing though.

    Ever come across an issue like this before?

  12. Low 19 Apr 2012 08:23

    Hi Sean,

    So, the files are unchanged at the moment, and the new records aren't being added? Strange. But good it's not happening anymore.

    Never seen this issue before, no.

    Somehow, the update routine of the extension was triggered, even though the extension was updated properly. As this must have happened with Structure too, it's most likely an environment issue like PHP version. You said they upgraded PHP 2 weeks ago? That probably solved the main issue, but before that, there were already records in the DB that fucked things up, I suppose. Getting rid of them solved it.

    Seems like problem solved to me! :)

  13. Sean Delaney 19 Apr 2012 08:29

    Yep. Just removed a shit load of entries. DB was 65MB. Now 15.8MB.

    Thanks for the help Lodewijk - much appreciated.