PHP error with Low Variables options tag
I'm getting a PHP error when I use the exp:low_variables:options tag to pull in data from a Select Entries variable.
Here's the code I'm using:
{exp:low_variables:options var="lv_variable_name"}{lv_variable_name:data}
{/exp:low_variables:options}
Here's the PHP Error:
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: low_variables/mod.low_variables.php
Line Number: 333
I'm running EE 2.7.2. Other Low Variables tags seem to work fine - I'm only getting this error with the options tag.
Thanks for your help.
Replies
Low 25 Oct 2013 15:17
What type is the variable in question?
Edit: Sorry, a Select Entries one. That one doesn't have any options to display. Use the Parse/Multiple tag instead to loop through the values.
Stephen 25 Oct 2013 16:27
Thanks, Low. I was just reading quickly and misread the documentation for the Options tag where is says "This tag pair allows you to display the options for a given variable. Use this in combination with the Checkbox Group, Radio Group and Select variable types. "
So my thinking was the options tag would loop through the select entries, but now it makes sense that it would just loop through the actual options for that variable.
Thanks for the quick response.