I am trying to:
Save a custom form, after which a hooked script performs several tasks. Ran well until I attempted to create a post and have the logged in user become author of the post. On using wp_insert_post for this purpose, my hosting provider's protocol shows the error mentioned above. Redundantly tested, coincidence with attempt to send the form confirmed.
Link to a page where the issue can be seen: hidden link (form restricted to specific user role)
I expected to see: form sent and become empty (set to stay on form page, no redirection)
Instead, I got: form remains filled out, no data sent. none of the script's actions performed, error message in protocol file
Hello. Thank you for contacting the Toolset support.
Can you please share details - are you using Toolset post form? If yes:
- what hook you are using and what error you see? If you can share more details and what you have exactly where and what is your goal that information will help me to guide you in the right direction.
thanks for the swift response here. The error message is quoted in the headline of my request. The form is a toolset user form; the post command is part of the hooked script that is fired upon sending the form at the following hooks:
The table is actually missing from the database as the protocol noted.
Maybe the issue vanishes on table creation, thus an SQL command to create an empty relationships table the proper way would be my first approach. Can you provide it (I have no idea what that table looks like).
That is really strange and I wonder why you use those hooks as Toolset Form's offers the hook cred_save_data or cred_submit_complete that should be triggered after you submit the form.
Can you please share access details so I can verify few things.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
OK, this improved the situation as the form works again. In the protocol now two more tables are announced missing:
toolset_type_sets
toolset_associations
Will they be created on first relationship entry in the new table I've set up with your SQL statement or will I have to create them manually too? In the latter case, I'd need the fitting SQL commands same as before.