Error message breezingforms.php on line 336?

  • restore
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

restore created the topic: Error message breezingforms.php on line 336?

Good day,

I use the form and I find it very good.
Many thanks to the developers.
I've been using it for 3 years.
I have received an error message since this week
"Deprecated: The each () function is deprecated. This message will be suppressed on further calls in /var/www/vhosts/.../httpdocs/components/com_breezingforms/breezingforms.php on line 336"
Unfortunately I can not do anything with the error message.
What does the error message tell me? What should I do?
I have already looked in the admin area and everything is fine there.

Thanks in advance
restore
#238856
  • Posts: 3128
  • Karma: 105
  • Thank you received: 413

mihaela replied the topic: Error message breezingforms.php on line 336?

Hello,

I'm glad that you like our component. :)

We need to refacture some files to be compliant with newer PHP versions. This is rather a notice that an error message. It should not affect the BreezingForms functionality.

To remove the message, for now, you can go to System > Global Configuration and in the Server tab set the Error Reporting to None. Save the change and the notice should be gone.

If you do not want to set the Error reporting to None, here is how you can fix this in the code.

Please go to Joomla root/components/com_breezingforms/ folder and open the breezingforms.php around line 336.

Replace there 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;
			}

Let me know whether this resolves the problem.

Regards,

Mihaela
#238861
  • restore
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

restore replied the topic: Error message breezingforms.php on line 336?

Hi there,

I made the change and now I get the following error message on the page

"syntax error, unexpected end of file"
#238904
  • Posts: 3128
  • Karma: 105
  • Thank you received: 413

mihaela replied the topic: Error message breezingforms.php on line 336?

Hello,

I apologize, there is a closing bracket missing.
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;
			        }
                        }

This is the right code.

Let me know whether this is now working.

Regards,

Mihaela
#238920
  • Posts: 3128
  • Karma: 105
  • Thank you received: 413

mihaela replied the topic: Error message breezingforms.php on line 336?

Hello,

I apologize, there is a closing bracket missing.
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;
			        }
                        }

This is the right code.

Let me know whether this is now working.

Regards,

Mihaela
#238921
  • Posts: 8
  • Thank you received: 0

JasT replied the topic: Error message breezingforms.php on line 336?

Thanks, your new code now works for me also. No more notices on my error_log file. ;)
#238943
Moderators: ForumSupport
Time to create page: 0.041 seconds

We Are Doing Our Part

Massive discounts on all of our extension subscription plans to help you and your business in these times.

Get Your Subscription Here

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!

News and Updates

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

All Extensions Subscription

We are doing our part and support your business with extremely low prices -- For example 6-Months-Subscription for only $9 USD. For as long as necessary.

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!