Setting Wyvern as a Variable Type displays a PHP error
It's not a deal breaker. But thought you should know.
If you've got Brian Litzinger's Wyvern installed as a Fieldtype on EE2.1.3 and you select it as a Variable Type, you get the following php error in the Low Variables CP:
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: views/manage_var.php
Line Number: 124
Otherwise loving it...
Replies
Low 15 Feb 2011 15:31
Hey Seb,
This is probably something in Wyvern, although I could probably add more checks to see if other devs are returning the right values.
If you want to get rid of it straight away, then:
- open low_variables/libraries/Low_fieldtype_bridge.php in a text editor
- on line 64, replace the question mark "?" with "? (array) " (without the double quotes)
- save the file
That should make sure the fieldtype returns an array, which LV needs to display the settings. If you're then not seeing any settings, you'll need to contact Bold Minded about that.
Seb Neerman 15 Feb 2011 16:36
Hey Low,
Thanks for quick reply & solution. I suspected it had to do with Wyvern rather than Low Variable. I'll give it go later.
Seb