Please disregard the 'View article...' shown at the bottom of many posts as this is the result of restoring old forum posts from a backup.
Error reporting on to see forms
Hi Dave,
I've made a new install, newest version, including patches, imported an .eql (same version) and found that all my forms had disappeared. Untill I turned error reporting on: they appeared again. Because I still have a problem with the file upload in a form, it's not very charming to leave error reporting on. Any solutions?
I've made a new install, newest version, including patches, imported an .eql (same version) and found that all my forms had disappeared. Untill I turned error reporting on: they appeared again. Because I still have a problem with the file upload in a form, it's not very charming to leave error reporting on. Any solutions?
Best Answer
-
Ok, problem is resolved. In the test installation I had put the formscontroller in the theme (i was planning to remove the confirm). But in the current installation, exponent is not accepting the formscontroller in the theme directory at all..
Answers
The weird thing is, is that the forms only show with error reporting on. They disappear with error reporting is off. But no errors are reported (or in developer tools).
Except what I had earlier, and still do: the file upload in a form. The error is:
Notice: Undefined index: foto_product in XXX//forms/controllers/formsController.phpon line 618
Is the 'undefined index' notice display after submitting a form (e.g., the initial display, then moving to the confirm entries)?
For the error in file upload: yes: the notice displays after submitting the form
Regarding the other problem...Is the warning for line 619 instead of line 618? Your server may have issues uploading files?
You can customize a controller, but you'd need to put the whole 'module' (controller, model, definitions, views, and assets) into the theme. The system always looks for the controller/model/view in the theme before the system, but the controller location determines where it looks for the 'assets' folder.