Skip Navigation

[Resolved] cred_form_validate hook problem

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 23 replies, has 2 voices.

Last updated by Kostas 7 years ago.

Assisted by: Luo Yang.

Author
Posts
#581944

OK, I have uploaded the fix to the test site.

Warnings ARE created but are not shown.
cPanel error_log is full of:

[25-Oct-2017 10:49:37 UTC] PHP Warning: array_unique() expects parameter 1 to be array, boolean given in /home/olive/public_html/wp-content/plugins/cred-frontend-editor/application/controllers/asset_manager.php on line 292
[25-Oct-2017 10:49:37 UTC] PHP Warning: array_unique() expects parameter 1 to be array, boolean given in /home/olive/public_html/wp-content/plugins/cred-frontend-editor/application/controllers/asset_manager.php on line 305

#581945

I have now enabled debugging mode, you can see the warnings on the site, at the bottom of all pages, except on the cred form pages.

#581948

Which one is the test site you mentioned above?
I just enabled the "private detail box", please provide the details for how and where I can see the error message, thanks

#581994

Thanks for the details, I can duplicate same problem with the database dump file from your test site, and escalated this thread to our 2nd tier supporters, will feedback if there is anything news.

#587074

Dear Kostas,

It should be able to fixed in the latest version of CRED 1.9.2.1, you can download it here:
https://toolset.com/account/downloads/

And I just tried it in your website, there isn't same problem, please check it again, for example:
hidden link

#587301

Hi Luo,

I am afraid it is not fixed.
Original problem remains.
To verify, do the same as in the beginning of this thread:

Please go to hidden link
submit the form, then check the source of the page you get (the one with the display_msg).
There are JS and CSS printed twice.

Kostas

#587952

There is a misunderstanding, the warning message you mentioned above is fixed in the latest version of CRED plugin:
1.9.2.1

But the original issue of this thread still needs hot fix be applied manually:
https://toolset.com/errata/custom-css-added-twice-when-a-cred-custom-validation-triggers/

So you will need to do these:
1) Install the latest version of CRED 1.9.2.1, you can download it here:
https://toolset.com/account/downloads/

2) apply the hot fix as the errata mentioned above:
https://toolset.com/errata/custom-css-added-twice-when-a-cred-custom-validation-triggers/

And test again, I just tested it with your database dump file in my localhost, it works fine, please test and confirm it.

#588374

I am sorry Luo, you are right!
OK, I installed brand new CRED 1.9.3 and I confirm issue is resolved 🙂

Thanks a lot,
Kostas