TOPIC:

PHP 8.x unreported error 4 months 1 week ago #278791

  • Topic Author
  • shinzan
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 88
  • Thanks: 0
I've got Joomla 3.10 and PHP 8.1 and i've applied the fixes on the forums and everything is working fine except in the built in function ff_makeFormUrl() piece (this is not mentioned anywhere i've seen and probably needs added to the overall php 8 fixes but also to the temp workaround thread)

there is another instance of each() in there can you give me some insight on how to fix that line?
while (list($prop, $val) = each($ff_otherparams))
              $url .= '&'.urlencode($ff_otherparams).'='.urlencode($val);  
            } 
is the part that needs putinto a foreach() format

Thanks,

David

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

Last edit: Post by shinzan.

PHP 8.x unreported error 4 months 1 week ago #278798

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

replace this part of code:
while (list($prop, $val) = each($ff_otherparams))
              $url .= '&'.urlencode($ff_otherparams).'='.urlencode($val);  
            } 
with:
foreach(  $ff_otherparams as $prop => $val)

              $url .= '&'.urlencode($ff_otherparams).'='.urlencode($val);  
            } 

Regards,
Tihana

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

PHP 8.x unreported error 4 months 1 week ago #278836

  • Topic Author
  • shinzan
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 88
  • Thanks: 0
Thanks that works in the academic sense of that it gets the each() out and I had done that already too ( you do need the opening culy brace though) and doesn't throw and error but the redirect displays my main homepage with the URL:
https://www.tld.com/index.php?ff_name=intranet_narcs_usedrug&=com_breezingforms&=235&locationid=356&drugid=7472

Note This portion:
&=com_breezingforms&=235
I think this is the issue with the redirect not workining it should read
&option=com_breezingforms&Itemid=235
so I think that is still a problem in this function but in addition even if i add that myself I now get the error

Call to undefined function get_magic_quotes_gpc()

I saw many people with the magic quotes gpc error, is there an experimental beta version for Joomla 3.10 and Breezing forms I could be emailed to fix that?

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

PHP 8.x unreported error 4 months 1 week ago #278841

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

I will send mail to you now :)

Regards,
Tihana

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

PHP 8.x unreported error 4 months 1 week ago #278852

  • Topic Author
  • shinzan
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 88
  • Thanks: 0
My issue was also due to the function piece

ff_makeFormURL
function ff_makeFormUrl($name, $params='') 
{
    global $ff_processor, $ff_otherparams;
    $url = '';
    switch ($ff_processor->runmode) {
        case 2: // preview
        case 1: // backend
            $url .= 'administrator/index2.php?option=com_breezingforms&act=run'.
                    '&ff_name='.urlencode($name);
            if ($ff_processor->inframe) $url .= '&ff_frame=1';
            if ($ff_processor->border) $url .= '&ff_border=1';
            break;
        default: // frontend
            $url .= 'index.php?ff_name='.urlencode($name);
            if ($ff_otherparams['option'] == 'com_breezingforms') {
                reset($ff_otherparams);
                foreach(  $ff_otherparams as $prop => $val)
                    $url .= '&'.urlencode($prop).'='.urlencode($val);
            } else
                $url .= '&option=com_breezingforms';
            if ($ff_processor->target > 1) $url .= '&ff_target='.$ff_processor->target;
            if ($ff_processor->inframe) $url .= '&ff_frame=1';
            if ($ff_processor->border) $url .= '&ff_border=1';
            if ($ff_processor->align !=1) $url .= '&ff_align='.$ff_processor->align;
            if ($ff_processor->top>0) $url .= '&ff_top='.$ff_processor->top;
    } // switch
    return ff_makePageUrl($url. $params);
} // ff_makeFormUrl

Thanks everyone for the support

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

Last edit: Post by shinzan.

PHP 8.x unreported error 4 months 1 week ago #278853

  • 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.058 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!