TOPIC:

Update error 3 years 8 months ago #236348

  • Topic Author
  • jchermant
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 38
  • Thanks: 0
Hello,
I see this message when using BF :

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in C:\wamp64\www\asc\components\com_breezingforms\breezingforms.php on line 336

This corresponds to these lines of the file concerned:

"if ($my_ff_params) {
reset($_REQUEST);
while (list($prop, $val) = each($_REQUEST))
if (!is_array($val) && substr($prop,0,9)=='ff_param_')
$ff_request[$prop] = $val;
} // if"

How can I rewrite these lines so that the message disappears?
Thank you so much
Jean Claude

Please Log in or Create an account to join the conversation.

Update error 3 years 8 months ago #236349

  • Eddy.vh's Avatar
  • Eddy.vh
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 810
  • Thanks: 128
Bonjour Jean-Claude.
Il y a plusieurs posts à ce sujet sur le forum. Une petite recherche donné les résultats.

Please Log in or Create an account to join the conversation.

Update error 3 years 8 months ago #236352

  • mihaela
  • Offline
  • User is blocked
  • User is blocked
  • Registered
  • Posts: 3128
  • Thanks: 416
Hello,

Eddy is right, there are more issues related to this notice.

This is rather a notice than an error message and everything should work fine if you just go to System > Global Configuration and in Server tab set the Error Reporting to None. Save the change and the notice will be gone.

The better way is to change the code as you wanted. Here are instructions on how to rewrite those lines.
Replace this piece of code:
if ($my_ff_params) {
reset($_REQUEST);
while (list($prop, $val) = each($_REQUEST))
if (!is_array($val) && substr($prop,0,9)=='ff_param_')
$ff_request[$prop] = $val;
} // if
with this piece of code:
if ($my_ff_params) {
			// reset($_REQUEST);
			foreach($_REQUEST as $prop => $val) {
				if (!is_array($val) && substr($prop,0,9)=='ff_param_')
					$ff_request[$prop] = $val;
			}
That should resolve the issue.

Let me know whether it worked.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

Update error 3 years 8 months ago #236353

  • Topic Author
  • jchermant
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 38
  • Thanks: 0
Thank you so much,
I corrected and it works.

Please Log in or Create an account to join the conversation.

Update error 3 years 8 months ago #236355

  • mihaela
  • Offline
  • User is blocked
  • User is blocked
  • Registered
  • Posts: 3128
  • Thanks: 416
I'm glad I've helped and that it is working as it should.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.053 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

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 and enter the Crosstec channels to receive live support and talk directly to the team!