Tagged: Array error checkbox
January 17, 2022 at 12:37 pm #129148
Hello, Good morning!
We are using the PRO version of the PPOM Plugin and PPOM Add-on Collapse Fields on my page.
But, the following errors is being generated:
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/43/d872669488/htdocs/clickandbuilds/FidensCorretaje/wp-content/plugins/woocommerce-product-addon/inc/nmInput.class.php online 640
Warning: in_array() expects parameter 2 to be array, string given in /homepages/43/d872669488/htdocs/clickandbuilds/FidensCorretaje/wp-content/plugins/woocommerce-product-addon/inc/nmInput.class.php on line 640
We have a separate form in three sections using the PPOM Add-on Collapse Fields in the RCV product. The error occurs when some form data including a checkbox field is filled in (this is the case), but other required fields are not, and click Add To Car button, error messages and previously loaded values are displayed. When the Next button is clicked to move to the 2nd section where the checkbox field is, the error is displayed. The error does not appear when the checkbox is not selected.
You can reproduce the error in the following link:
I would really appreciate your help in solving this case.
Best regards.January 18, 2022 at 12:24 pm #129171
please update to version 24.2January 18, 2022 at 8:04 pm #129199
These are the versions I currently have:
. N-Media WooCommerce PPOM PRO – Versión 18.16
. PPOM Addon – Fields Collapse – Versión 1.1
. PPOM for WooCommerce by N-MEDIA – Versión 24.2, updated on 01/17/2021.
I tried again today and the error persists, any other suggestions please?
Thank you a lot for you response.
Best regards.January 19, 2022 at 1:43 pm #129288
do you have the legacy input rendering option enabled via
WooCommmerce->Settings->PPOM Settings? if yes please turn it off and try again.January 19, 2022 at 7:22 pm #129309
Thanks for your quick response.
I have applied what was suggested and indeed the error no longer appears, but the user loses all previously registered data. The ideal in this case is that the data is preserved and even error messages are displayed immediately below each field, is this possible?January 22, 2022 at 1:59 pm #129654
we have just added a new feature in PPOM PRO version 24.3 – Client-side validation.
it will solve this issue.
it will be released in couple of days after testing.March 7, 2022 at 6:04 pm #133384
On this occasion, I tell you by way of information, that I am being presented with these warnings on my site:
I have decided to hide wordpress warnings, because we are about to go into production. I have applied the following code in the wp-config.php file, replacing the line:
for the following:
ini_set(‘error_reporting’, E_ALL );
I am reporting these warnings, so that it can be considered in future versions.
Kind regards.March 7, 2022 at 6:28 pm #133387March 12, 2022 at 1:32 pm #133950
Ok we have tried to removed this warning in version 24.5, it will be released soon.March 16, 2022 at 3:59 pm #134444
ok, thank you a lotApril 4, 2022 at 5:59 pm #135946
In the download section of N-Media Client Portal I have PPOM PRO version 24 available (01-20-2022) , can you please tell me what I should do to obtain version 24.3?
- You must be logged in to reply to this topic.