I understand that this error means that I just cannot understand why this is happening.
I am using Joomla 1.7 and created a component. Now everything worked and on one strange day I received this error when trying to submit a form. This is what I have:
<form action="index.php" method="post" name="adminForm"> ..some elements... <input type="hidden" name="option" value="<?php echo $lists['option']; ?>" /> <input type="hidden" name="task" value="<?php echo $lists['task']; ?>" /> </form>
When $lists['task'] echo exactly matches what it is capable of. Now the error is displayed inside the core.js joomla file in the submitForm function, which contains:
function submitform(a) { if (a) document.adminForm.task.value = a; if (typeof document.adminForm.onsubmit == "function") document.adminForm.onsubmit(); typeof document.adminForm.fireEvent == "function" && document.adminForm.fireEvent("submit"); document.adminForm.submit() }
Sorry, the file is compressed, basically it is a very simple function that sets the task element to the given var form and sends. (FYI: a var is the correct var, and everything is sent fine)
Now, what I canβt understand is how I can get this error when it didnβt happen before, and I created many forms like this inside the component, exactly the same, and it works fine.
source share