Files are not synched back to EE
Hi,
saving as files is working fine. All my variables are now within the default_site folder on the servers file system. The file path has been set within my assets folder (/home/www/p12345/html/expressionengine/assets/variables/) and the folder has write permissions.
But changing any of these files with my text editor wont change anything within the database. The files are not been synched back to the database.
Any idea?
Thanks much for support!
patte
Replies
Low 18 Jan 2012 17:12
Hi Patte,
If you edit the variable in the CP instead of the file, is the file updated?
In order to debug this properly, I'll need SuperAdmin login credentials as well as FTP access. Could you provide me with that info? You can send it to hi at gotolow dot com.
Low 20 Jan 2012 10:01
To follow up, the issue was solved by setting the correct permissions to "the top expression engine folder".
RichardMeredith 15 May 2012 11:09
Hi Low, got the same here, just wanted to know what permissions should be set to the expression engine folder.
Low 15 May 2012 11:18
Hey Richard, take a look at the docs about the file path settings. Make sure to set the permissions of the folder to 755 at least. If that doesn't do it, set it to 777.
RichardMeredith 15 May 2012 11:27
Lovely thanks, thats done the trick.
RichardMeredith 15 May 2012 11:29
Does Low Variables only work with files already created.
Say I create a file locally and upload to the correct folder, would it sync to low variables? (I'm thinking it won't)
Low 15 May 2012 11:30
No, I'm afraid LV won't create new variables based on files. You'll need to create them in the CP.
RichardMeredith 15 May 2012 11:32
No worries, wasn't sure.
Thanks Low
Nutmeg 4 Oct 2012 09:27
So, to be clear whatever you do on your local box needs to be done again on the live (staging) server?
Low 4 Oct 2012 09:31
If you create new save-as-file vars on your local box, uploading the files only will not create the vars on the live/staging server, no. They have to exist there too, in order to sync.
Nutmeg 4 Oct 2012 09:38
Thanks Low, meanwhile I read this thread which has a workaround duplicating the entries.
Current workflow = local box>svn>deploy>live server
Low 4 Oct 2012 09:47
Yeah, that workaround will work.
To clarify, LV won't create new vars based on files because of it's main feature: variable types. All vars -- their values -- can be saved as files, but a variable's properties (label, notes, group, early parsing, type, per-type settings, etc) cannot be saved in the file itself. Just the name (which is the file name) and the value. You can't create a new var based on that info alone...