Member
Member
viktorzen   27-12-2025, 11:11
#1

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?

Administrator
Administrator
acrylian   27-12-2025, 11:30
#2

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.

Member
Member
viktorzen   27-12-2025, 22:40
#3

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?

Administrator
Administrator
acrylian   28-12-2025, 10:08
#4

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

I think yes.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.