LOW_VAR_VERS instead of actual version number
For the past couple of versions, when I look into the modules page to check the version that I have Low Variables is reporting LOW_VAR_VERS instead of an actual version number. All my other plugins are reporting proper version numbers. Low Variables itself seems to be working just fine, and NSM updater reports the currently installed version, so I don’t think that there’s anything wrong, however I would like to correct this just in case. Any ideas?
Thanks.
Replies
Low 10 Aug 2012 07:46
That's strange. I use the constant LOW_VAR_VERSION, not LOW_VAR_VERS to keep track of the version. You can check if the right constant is being set in config.php and in base.low_variables.php (like 42).
Maybe there's an older file somewhere. Anyways, I cannot replicate...
nicolasln 10 Aug 2012 13:53
Everything refers to LOW_VAR_VERSION in those two files that you mentioned, and I always overwrite the folder when upgrading, so as far as I know that deletes the old one first and copies the new updated version, so I don’t think that there are leftover files in there.
Do you think that uninstalling and reinstalling might help? Do I loose my variables if I do that?
Thanks!
Low 10 Aug 2012 14:15
It might be that it's put in the DB for some reason. Can you check exp_modules and see what the version number for LV is there? You can manually change it to the current version number if it's wrong.
nicolasln 10 Aug 2012 14:22
It’s definitely in the DB:
Now changing it is a bit advanced for me, how do I do that? in PHPmyAdmin? Is it going to be updated the next time that I update LV?
Low 10 Aug 2012 14:27
It's a simple SQL query you can execute in the SQL manager in EE:
...if indeed the version you have is 2.3.1. Change that to whichever version you currently have.
nicolasln 10 Aug 2012 14:30
That worked, thanks. Now is it going to update automatically the next time I update LV?
Low 10 Aug 2012 14:31
It should, yes.
You might want to check the exp_extensions table as well, by the way. See if the version number is okay for Low_variables_ext rows.
nicolasln 10 Aug 2012 14:41
Those 2 rows show the right version number, so it looks like I’m all good.
Thanks for the great support!