each() php 7.2 function deprecated in

  • hoekbrwr
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 3

hoekbrwr created the topic: each() php 7.2 function deprecated in

My code just broke because there is still this each() function in php active.
I get this error message in my code on the console:

inschrijven:formatted:1855 Uncaught TypeError: Cannot set property 'checked' of null
at ff_wds_datum_action (inschrijven:formatted:1855)
at HTMLSelectElement.onchange (inschrijven:1452)
at Object.trigger (js-35479-90248.js:28)
at Object.a.event.trigger (js-35479-90248.js:41)
at a.fn.init.triggerHandler (js-35479-90248.js:28)
at bfTriggerRules (inschrijven:formatted:428)
at bfRegisterToggleFields (inschrijven:formatted:393)
at HTMLDocument.<anonymous> (inschrijven:formatted:696)
at u (js-35479-90248.js:28)
at Object.fireWith [as resolveWith] (js-35479-90248.js:28)
ff_wds_datum_action @ inschrijven:formatted:1855
onchange @ inschrijven:1452
trigger @ js-35479-90248.js:28
a.event.trigger @ js-35479-90248.js:41
triggerHandler @ js-35479-90248.js:28
bfTriggerRules @ inschrijven:formatted:428
bfRegisterToggleFields @ inschrijven:formatted:393
(anonymous) @ inschrijven:formatted:696
u @ js-35479-90248.js:28
fireWith @ js-35479-90248.js:28
ready @ js-35479-90248.js:28
_ @ js-35479-90248.js:28
inschrijven:formatted:1393 BF-Trace
<strong>*** EXCEPTION CAUGHT BY BREEZINGFORMS ***</strong>
PHP error level : E_DEPRECATED
PHP filename : /home/ndo/public_html/components/com_breezingforms/facileforms.process.php
PHP linenumber : 1471
Error message : The each() function is deprecated. This message will be suppressed on further calls


<strong>*** EXCEPTION CAUGHT BY BREEZINGFORMS ***</strong>
PHP error level : E_NOTICE
PHP filename : /home/ndo/public_html/administrator/components/com_breezingforms/libraries/crosstec/classes/BFQuickMode.php
PHP linenumber : 1741
Error message : Undefined index: size

The code is trying to change a property of a field, but it cannot select that field/property anymore!

function ff_wds_datum_action(element, action) {
switch (action) {
case 'change':
bfToggleFields('on', 'section', 'sec_clubles', bfDeactivateField);
bfToggleFields('on', 'element', 'chkb_clb', bfDeactivateField); //<<<<<< line 1855
ff_getElementByName('chkb_clb').checked = true;
bfToggleFields('on', 'element', 'clb_kl', bfDeactivateField);
ff_getElementByName('clb_kl').options[0].selected = true;



Can I do some setting to make this work again or do we need to update our software? What is the latest version at the moment.
We are on BreezingForms 1.9.0 Stable (build 931) in Joomla
#236812
  • Eddy.vh
  • Eddy.vh's Avatar
  • Away
  • Gold Boarder
  • Gold Boarder
  • Posts: 236
  • Karma: 1
  • Thank you received: 26

Eddy.vh replied the topic: each() php 7.2 function deprecated in

HEllo.

hoekbrwr wrote: <strong>*** EXCEPTION CAUGHT BY BREEZINGFORMS ***</strong>
PHP error level : E_DEPRECATED
PHP filename : /home/ndo/public_html/components/com_breezingforms/facileforms.process.php
PHP linenumber : 1471
Error message : The each() function is deprecated. This message will be suppressed on further calls

Show this post:
crosstec.org/en/forums/1-forums/126088-d...reciated.html#234975

For the rest, I do not know how to help you
#236841
The following user(s) said Thank You: hoekbrwr, mihaela
  • hoekbrwr
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 3

hoekbrwr replied the topic: each() php 7.2 function deprecated in

This item has been resolved now I edited the affected file according to your link.
The latest version has the necessary corrections to avoid this error message after we installed it.
There are still fragments of the old syntax, however they do not produce PHP errors anymore. In the same time the other PHP error - Undefined index: size - also disappeared.
#236846
Moderators: ForumSupporttomeperica
Time to create page: 0.056 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here