I have a list/form that uses a repeat group. In both groups there is a dropdown element. I intentionally made the default value of the dropdown elements empty and use the 'notempty' plugin to require that a selection be made from those dropdowns.
If a dropdown selection is not made, the 'notempty' validation works - but I also get the error shown below.
This is the same form where I am using a fileupload element.
So it looks like, for some reason, the 'notempty' validation is also being checked against the fileupload file!
Backtrace from warning 'fopen(): Filename cannot be empty' at /home/mydomain/public_html/libraries/joomla/filter/input.php 623:
/home/mydomain/public_html/index.php 49 calling execute()
/home/mydomain/public_html/libraries/cms/application/cms.php 257 calling doExecute()
/home/mydomain/public_html/libraries/cms/application/site.php 230 calling dispatch()
/home/mydomain/public_html/libraries/cms/application/site.php 191 calling renderComponent()
/home/mydomain/public_html/libraries/cms/component/helper.php 380 calling executeComponent()
/home/mydomain/public_html/libraries/cms/component/helper.php 405 calling require_once()
/home/mydomain/public_html/components/com_fabrik/fabrik.php 181 calling execute()
/home/mydomain/public_html/libraries/legacy/controller/legacy.php 728 calling process()
/home/mydomain/public_html/components/com_fabrik/controllers/form.php 226 calling validate()
/home/mydomain/public_html/components/com_fabrik/models/form.php 2246 calling validate()
/home/mydomain/public_html/plugins/fabrik_element/fileupload/fileupload.php 972 calling get()
/home/mydomain/public_html/libraries/joomla/input/files.php 83 calling isSafeFile()
/home/mydomain/public_html/libraries/joomla/filter/input.php 623 calling fopen()
If a dropdown selection is not made, the 'notempty' validation works - but I also get the error shown below.
This is the same form where I am using a fileupload element.
So it looks like, for some reason, the 'notempty' validation is also being checked against the fileupload file!
Backtrace from warning 'fopen(): Filename cannot be empty' at /home/mydomain/public_html/libraries/joomla/filter/input.php 623:
/home/mydomain/public_html/index.php 49 calling execute()
/home/mydomain/public_html/libraries/cms/application/cms.php 257 calling doExecute()
/home/mydomain/public_html/libraries/cms/application/site.php 230 calling dispatch()
/home/mydomain/public_html/libraries/cms/application/site.php 191 calling renderComponent()
/home/mydomain/public_html/libraries/cms/component/helper.php 380 calling executeComponent()
/home/mydomain/public_html/libraries/cms/component/helper.php 405 calling require_once()
/home/mydomain/public_html/components/com_fabrik/fabrik.php 181 calling execute()
/home/mydomain/public_html/libraries/legacy/controller/legacy.php 728 calling process()
/home/mydomain/public_html/components/com_fabrik/controllers/form.php 226 calling validate()
/home/mydomain/public_html/components/com_fabrik/models/form.php 2246 calling validate()
/home/mydomain/public_html/plugins/fabrik_element/fileupload/fileupload.php 972 calling get()
/home/mydomain/public_html/libraries/joomla/input/files.php 83 calling isSafeFile()
/home/mydomain/public_html/libraries/joomla/filter/input.php 623 calling fopen()