contact_form plugin: omitted fields still visible

Hi, I upgraded from 1.5.x to 1.6.8. and got some issues with the contact_form plugin:

Omitted fields like Title or Company of the form are still displayed although they are set to "omitted" in the plugin options.

Also discovered that I cannot change the options of the contact_form plugin in the admin panel. If I make changes the changes are not saved.

During the upgrade I also got the following warning:

Warning: the zp_options table appears not to have a proper UNIQUE key. There are probably duplicate entries in the table which can cause unpredictable behavior. This can normally be corrected by creating a Zenphoto backup, dropping the table, running setup to restore the table, and then restoring from the backup. Note, however, that the duplicate entries will be lost.

Although the table has id set as the primary key.

Any ideas?

Comments

  • acrylian Administrator, Developer
    edited December 2025

    The warning tells you exactly the problem. The primary key is not the same as the unique key.

    The options table must have these unique keys set:

    UNIQUE: name(95), ownerid, theme(95)

    Otherwise you create duplicated option entries on each option update and are filling up your options table with "garbage". We had a few users encountering this in the past but I have no idea why and never did on any site I manage myself so far.

    Before you set these unique keys you have to manually remove all duplicated entries first.

  • thx for info, I cleaned up the table and added the unique key, and now it works as intended, also loading times got much faster as a side effect :)

    can I delete all "deprecated" options in the table if I dont use deprecated_functions plugin?

  • acrylian Administrator, Developer

    can I delete all "deprecated" options in the table if I dont use deprecated_functions plugin?

    I think yes.

Sign In or Register to comment.