Depreciated: The each() function is depreciated.

  • muthca
  • muthca's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 70
  • Thank you received: 1

muthca created the topic: Depreciated: The each() function is depreciated.

I upgraded PHP on my Joomla site from 7.0.xx two 7.2.16 and got the following error:
Depreciated: The each() function is depreciated. This message will be suppressed on further calls in /home/.../public_html/plugins/content/breezingforms/breezingforms.php on line 192.
I didn't capture the other message stating line 336 but it was the same message with a different line number on a different form that I was working.
This appears to be in a subroutine called from breezingforms.php. The message has been suppresssed as stated in the callout but I was wondering if this will cause any problems?
#234955
  • Posts: 2461
  • Karma: 86
  • Thank you received: 333

mihaela replied the topic: Depreciated: The each() function is depreciated.

Hello,

This is a notice rather than an error and it shouldn't cause problems, but if you wish you can change the code so that the depreciated "each" function is replaced with "foreach" loop.

You can go to Joomla root > plugins > content > breezingforms and open the breezingforms.php file and around 192 file try to replace this piece of code:
		while (list($prop, $val) = each($_REQUEST))
			if (!is_array($val) && substr($prop,0,9)=='ff_param_')
				$ff_request[$prop] = $val;
with this one:
		foreach($_REQUEST as $prop => $val) {
			if (!is_array($val) && substr($prop,0,9)=='ff_param_')
				$ff_request[$prop] = $val;
		}  //foreach

Let me know whether it resolves the problem.

Regards,

Mihaela
#234975
  • muthca
  • muthca's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 70
  • Thank you received: 1

muthca replied the topic: Depreciated: The each() function is depreciated.

That solved this problem, thanks
#235001
  • Posts: 2461
  • Karma: 86
  • Thank you received: 333

mihaela replied the topic: Depreciated: The each() function is depreciated.

Great! I'm glad that it resolved the problem.

Regards,

Mihaela
#235006
Moderators: ForumSupporttomeperica
Time to create page: 0.063 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