• Resolved PegWeb

    (@pegweb)


    We are seeing a strange error on the client side.

    Warning: Invalid argument supplied for foreach() in /home/ppwcc/public_html/wp-content/plugins/participants-database/classes/PDb_Form_Field_Def.class.php on line 301

    It also appears to be blocking our ability to sort the columns. Any idea what is causing this?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Make sure all your fields that require values (dropdowns, checkboxes, etc.) are fully configured with values.

    Thread Starter PegWeb

    (@pegweb)

    If I go in and edit the listing that shows the error all I do is pull it up and hit submit. It just moves the error to the next one. Do I have to edit and submit each one for some reason now?

    Plugin Author xnau webdesign

    (@xnau)

    Have you configured all the fields that need to have values defined? You only need to check those fields.

    Thread Starter PegWeb

    (@pegweb)

    It’s been setup and running for a couple years. We didn’t change anything to my knowledge. Like I said if I open a listing I don’t make any changes to it I just hit submit. Then the error leaves that row and goes to the next one. So I haven’t changed any values or anything.

    Plugin Author xnau webdesign

    (@xnau)

    To address this, the first step is to confirm that your fields are configured correctly, the error indicates that you may have fields that are not.

    Thread Starter PegWeb

    (@pegweb)

    Do you mean the fields for each record listing or do you mean the fields as in the Manage Database Feilds section?

    Plugin Author xnau webdesign

    (@xnau)

    Sorry, that wasn’t clear…on the Manage Database Fields page, make sure all your fields that require “values” are set up…checkboxes, dropdowns, radio buttons, etc.

    Thread Starter PegWeb

    (@pegweb)

    Yes we only have two that are required. First and Last Name. Every record has those filled out.

    Plugin Author xnau webdesign

    (@xnau)

    OK, what I am talking about are any fields such as checkboxes, dropdowns, and radio buttons which require a list of values. Not looking at required fields at all, just the fields that need to have “values” defined. This is on the Manage Database fields page. Actually has nothing to do with what is in the records, only with the configuration of your form fields.

    Thread Starter PegWeb

    (@pegweb)

    So, for example, a checkbox should have what in the values field? I assumed this is just a boolean so it is either a 1 or a 0?

    Plugin Author xnau webdesign

    (@xnau)

    The value is up to you, a checkbox can have one or two values. This is explained here: Defining Participants Database Fields look for the “Values” section.

    Thread Starter PegWeb

    (@pegweb)

    Ok this seems to have fixed the issue.

    • This reply was modified 6 years ago by PegWeb.
    Plugin Author xnau webdesign

    (@xnau)

    thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Strange Error’ is closed to new replies.