• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Yes / No Element throwing SQL Error

Hey there,

I have the "yes/no" element enabled on a form and when trying to add a record, it throws the attached error. Disabling the "yes/no" element allows us to successfully add a record.

Thoughts?

Thanks much in advance for your help!
 

Attachments

  • Screen Shot 2014-11-20 at 8.06.44 AM.png
    Screen Shot 2014-11-20 at 8.06.44 AM.png
    45.3 KB · Views: 190
Is 'current' the yes/no, script-files the list/DB table?
Do you have a validation on this element?
Or some form plugins?
 
Hey there troester,

Yes, 'script_files' is the list/DB, and 'current' is the yes/no element. No validation on the element, however it does use the 'single' option, which is what this error is in relation to. Don't have access to the file right now, but the line of code that updates the db rows to "0" is at the bottom of the yes/no PHP element plugin file.

The syntax looks correct, so not really sure what to say.

Thanks much in advance!
 
I didn't test (no time at the moment) but the problem may be that the rowid doesn't exist in a new record before it is saved.
 
Hi troester,

Yeah, I figured it had something to do with that. That makes a lot of sense.

I can't do anything with this until next week Monday, but any additional input you, rob, or others have in the meantime is most appreciated. Obviously, no problem about your time, thanks fir your follow up here.

Cheers
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top