TOPIC:

PHP Deprecated 8.0 10 months 2 weeks ago #273567

  • Topic Author
  • Mitch
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 24
  • Thanks: 0
Hi,
in my Error Logs, i got this Message:
[30-Apr-2022 17:15:10 Europe/Berlin] PHP Deprecated:  Required parameter $body follows optional parameter $from in /home/www/website/joomla/administrator/components/com_breezingforms/libraries/crosstec/functions/helpers.php on line 371

Line 371:
function bf_createMail( $from = '', $fromname = '', $subject, $body, $alt_sender = '' ) {

	jimport( 'joomla.version' );
	$version = new JVersion();
	$version = $version->getShortVersion();

	$_mailfrom = '';
	$_fromname = '';

	if ( version_compare( $version, '3.0', '<' ) ) {
		$_mailfrom = JFactory::getConfig()->getValue( 'config.mailfrom', '' );
		$_fromname = JFactory::getConfig()->getValue( 'config.fromname', '' );
	} else {
		$_mailfrom = JFactory::getConfig()->get( 'mailfrom', '' );
		$_fromname = JFactory::getConfig()->get( 'fromname', '' );
	}

Greetings,
Mitch

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

PHP Deprecated 8.0 10 months 2 weeks ago #273568

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

please try this:
function bf_createMail( $body, $from = '', $fromname = '', $subject, $alt_sender = '' ) {

	jimport( 'joomla.version' );
	$version = new JVersion();
	$version = $version->getShortVersion();

	$_mailfrom = '';
	$_fromname = '';

	if ( version_compare( $version, '3.0', '<' ) ) {
		$_mailfrom = JFactory::getConfig()->getValue( 'config.mailfrom', '' );
		$_fromname = JFactory::getConfig()->getValue( 'config.fromname', '' );
	} else {
		$_mailfrom = JFactory::getConfig()->get( 'mailfrom', '' );
		$_fromname = JFactory::getConfig()->get( 'fromname', '' );
	}

Let me know the result

Regards,
Tihana

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

PHP Deprecated 8.0 10 months 2 weeks ago #273569

  • Topic Author
  • Mitch
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 24
  • Thanks: 0
Thanks for your fast reply.

Now i got the entry:
[03-May-2022 17:19:51 Europe/Berlin] PHP Deprecated:  Required parameter $subject follows optional parameter $from in /home/www/website/joomla/administrator/components/com_breezingforms/libraries/crosstec/functions/helpers.php on line 371

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

PHP Deprecated 8.0 10 months 2 weeks ago #273570

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

oh, I forgot on this, sorry

Like this:
function bf_createMail( $body, $subject, $from = '', $fromname = '', $alt_sender = '' ) 

Let me know the result

Regards,
Tihana
The following user(s) said Thank You: Mitch

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

PHP Deprecated 8.0 10 months 2 weeks ago #273698

  • Topic Author
  • Mitch
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 24
  • Thanks: 0
it works :-)

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

PHP Deprecated 8.0 10 months 2 weeks ago #273699

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.060 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!