• Resolved aulemahal

    (@aulemahal)


    I just installed your plugin and it looks quite nice.
    However, I was unable to populate the dropdown options of my fields or update any other options for fields in the Manage database fields section. When I click update, it simply disappears.
    Rolling back to the 1.8.4.9 version, the problem disappeared and I was able to update the fields with more than the default values.

    However, my dropdown field still doesn’t work. I put in : Msc Student, Phd Candidate, Postdoctoral Fellow, Professor, Collaborator, Advisor and this all appears as a single option in the “Add new” backend form. Am I doing something wrong?

    My server is using PhP 5.4 I believe and I get the warning about this. I’ll be happy to give any info you need to help me troubleshoot the problem…

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

    (@xnau)

    I suggest you go to the latest version of Participants Database and solve the problem from there.

    Do you have a large number of fields in the group?

    Thread Starter aulemahal

    (@aulemahal)

    I rolled forward to the latest version. The two problems still happen.

    Right now I have 5 fields in the group, I didn’t touch the other groups yet, so they are at default. That’s 4 “text-line” and one “dropdown-list”. I tried to change the help text of one of them, clicked update and it disappeared.

    Also, I entered values in the “options” field for my dropdown when I was still at v1.8.4.9, and they stayed when I upgraded to 1.9.3.1. But the “Add new” page still shows me only one option. (In between, I tried changing the dropdown to radio buttons, but same thing : only one choice) I believe something is not happening with the string parsing. I don’t have much experience, but is there a console ouput or some kind of journal to see if php failed to parse the string at some point?

    Plugin Author xnau webdesign

    (@xnau)

    When you say it disappeared, what disappeared…the whole field? or just the setting you tried to change?

    I suggest you try turning the Debugging on in the plugin settings under the advanced tab. Then try to update your field definition and see what comes into the log. The log will be an item in the plugin admin menu.

    Thread Starter aulemahal

    (@aulemahal)

    Oh, sorry. Only the content of the settings I try to change disappears. It goes back as if I hadn’t done anything.

    For example, I changed some settings when I was on 1.8.4.9, they are untouched when I update the fields, even when up to date. But changing any settings from the default value is now impossible.

    I’ll try the debugging, thanks!

    Thread Starter aulemahal

    (@aulemahal)

    Log output when trying to add some help text to a text-line field.

    [03/29/19 7:24pm UTC]
    Use of undefined constant ARRAY_FILTER_USE_KEY - assumed 'ARRAY_FILTER_USE_KEY'
    in /var/www/html/pascal/wp-content/plugins/participants-database/classes/PDb_Manage_Fields_Updates.class.php on line 185
    
    [03/29/19 7:24pm UTC]
    array_filter() expects at most 2 parameters, 3 given
    in /var/www/html/pascal/wp-content/plugins/participants-database/classes/PDb_Manage_Fields_Updates.class.php on line 185
    
    [03/29/19 7:24pm UTC]
    Invalid argument supplied for foreach()
    in /var/www/html/pascal/wp-content/plugins/participants-database/classes/PDb_Manage_Fields_Updates.class.php on line 188
    Plugin Author xnau webdesign

    (@xnau)

    That’s is… you need to have a minimum php version of 5.6

    you should upgrade it anyway, even 5.6 is pretty old, and php 7 is much faster.

    Thread Starter aulemahal

    (@aulemahal)

    Ok, thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Manage database fields : Dropdown options’ is closed to new replies.