Messages at install on frotend / PHP 7.2

  • Posts: 43
  • Thank you received: 0

tpdesigns replied the topic: Messages at install on frotend / PHP 7.2

Yes, I am still receiving this error after the change with error reporting off.
#238891
  • Posts: 8
  • Karma: 1
  • Thank you received: 0

v8tom replied the topic: Messages at install on frotend / PHP 7.2

Hello,

I found a new:

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in ***/html/components/com_breezingforms/facileforms.class.php on line 279
#239143
  • Posts: 2969
  • Karma: 100
  • Thank you received: 393

mihaela replied the topic: Messages at install on frotend / PHP 7.2

Hello again,

Ok. If you wish to remove this notice go to ***/html/components/com_breezingforms/ folder, open the "facileforms.class.php" file and replace this piece of code:
while (list($prop, $val) = each($arr)) {
			$config .= "\$this->".$prop." = \"".addslashes($val)."\";\n";

			$database->setQuery(
				"update #__facileforms_config ".
				   "set value=".$database->Quote($val)." ".
				 "where id = ".$database->Quote($prop).""
			);
			if (!$database->query()) {
				echo "<br/>".$database->getErrorMsg();
				exit;
			} // if
			$database->setQuery(
				"select count(*) from #__facileforms_config ".
				 "where id = ".$database->Quote($prop)
			);
			$saved = $database->loadResult();
			if (!$saved) {
				$database->setQuery(
					"insert into #__facileforms_config (id, value) ".
					"values (".$database->Quote($prop).", ".$database->Quote($val).")"
				);
				if (!$database->query()) {
					echo "<br/>".$database->getErrorMsg();
					exit;
				} // if
			} // if
		} // while
with this code:
	foreach($arr as $prop => $val) {
				$config .= "\$this->".$prop." = \"".addslashes($val)."\";\n";

			$database->setQuery(
				"update #__facileforms_config ".
				   "set value=".$database->Quote($val)." ".
				 "where id = ".$database->Quote($prop).""
			);
			if (!$database->query()) {
				echo "<br/>".$database->getErrorMsg();
				exit;
			} // if
			$database->setQuery(
				"select count(*) from #__facileforms_config ".
				 "where id = ".$database->Quote($prop)
			);
			$saved = $database->loadResult();
			if (!$saved) {
				$database->setQuery(
					"insert into #__facileforms_config (id, value) ".
					"values (".$database->Quote($prop).", ".$database->Quote($val).")"
				);
				if (!$database->query()) {
					echo "<br/>".$database->getErrorMsg();
					exit;
				} // if
			} // if
	 }

That should remove the message.

Regards,

Mihaela
#239155
The following user(s) said Thank You: v8tom
  • Posts: 8
  • Karma: 1
  • Thank you received: 0

v8tom replied the topic: Messages at install on frotend / PHP 7.2

This code working perfectly :)
Thank you
#239237
  • Posts: 8
  • Karma: 1
  • Thank you received: 0

v8tom replied the topic: Messages at install on frotend / PHP 7.2

This code (...in line 192) working perfectly :)
But after I change, I receive a new message:

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in XXX/plugins/content/breezingforms/breezingforms.php on line 242
#239238
  • Posts: 2969
  • Karma: 100
  • Thank you received: 393

mihaela replied the topic: Messages at install on frotend / PHP 7.2

Hello,

I'm glad that this code is working.

I see and I assume there will be more notices like that.

This one you can fix by doing as follows.

Go to JOOMLA ROOT/plugins/content/breezingforms/breezingforms.php, open the breezingforms.php file and around line 192 replace the following code:
reset($_REQUEST);
		while (list($prop, $val) = each($_REQUEST))
			if (!is_array($val) && substr($prop,0,9)=='ff_param_')
				$ff_request[$prop] = $val;
with this code:
// reset($_REQUEST);
			foreach($_REQUEST as $prop => $val) {
				if (!is_array($val) && substr($prop,0,9)=='ff_param_')
					$ff_request[$prop] = $val;
                        }
That should do the trick, the error message should be gone.

Let me know whether that resolved the issue.


Regards,

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