Home › Forums › PPOM Add-on Collapse Fields › Array error with input type=”checkbox”
Tagged: Array error checkbox
- This topic has 10 replies, 2 voices, and was last updated 2 years, 6 months ago by Mario A.
-
AuthorPosts
-
January 17, 2022 at 12:37 pm #129148Mario AParticipant
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 640Warning: 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 #129171nmediaKeymasterHi,
please update to version 24.2
January 18, 2022 at 8:04 pm #129199Mario AParticipantHi,
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 #129288nmediaKeymasterHi,
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 #129309Mario AParticipantHi,
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 #129654nmediaKeymasterHi,
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 #133384Mario AParticipantHello
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:define(‘WP_DEBUG’, true);
for the following:
ini_set(‘display_errors’,’Off’);
ini_set(‘error_reporting’, E_ALL );
define(‘WP_DEBUG’, false);
define(‘WP_DEBUG_DISPLAY’, false);I am reporting these warnings, so that it can be considered in future versions.
Kind regards.
March 7, 2022 at 6:28 pm #133387Mario AParticipantWarning no numeric field fidens co
March 12, 2022 at 1:32 pm #133950nmediaKeymasterOk we have tried to removed this warning in version 24.5, it will be released soon.
March 16, 2022 at 3:59 pm #134444Mario AParticipantok, thank you a lot
April 4, 2022 at 5:59 pm #135946Mario AParticipantHello!
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?
Kind regards. -
AuthorPosts
- You must be logged in to reply to this topic.