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

Support archive

Select File LV Unset During Code Deployment

Emily Raymond 4 May 2020 21:37 problem, active

I have an Ungrouped OpenGraph Image LV on my site. When I deploy my code base to my web server with updates, that one LV is unset. I have to go back in to the console and manually reset it. The LV (lv_og_image) is using Select Files for Images. I am sure that I am doing something wrong but I cannot figure out what it is. When I update my code base, I am not modifying anything in the database. I have not noticed this issue with any other LVs. The only place I use this LV is in my header template:

meta
property="og:image"
content="{base_site_url}{exp:vim:low_var var="lv_og_image" default="/assets/images/site/logo.jpg"}"

Replies

  1. Low 7 May 2020 07:17

    The Select Files variable type will store the full URL of a file in the database, so if you're deploying the value from local to production, it might push the local URL. Try and set the base url of your site to a relative value like /

    Aside, I'm not familiar with the Vim module you're using there. Might be that that's throwing a spanner in the works, but since it's not my software, I can't really tell.