TOPIC:

php 8 errors 2 weeks 4 days ago #281086

  • Topic Author
  • simun
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 109
  • Thanks: 0
Hi, I've recently tried upgrading one of our Joomla 3 site to php 8 (from php 7.4) due to security reasons and to maybe solve another issue regarding mailbacks, which currently works sometimes and sometimes not which is odd (no idea if it is php related) .

The site uses latest BreezingForms 1.9.1 Stable (943) and Contentbuilder to display the submissions on Frontend.
And after the php change, I've ran into following issues:

Now if I within my frontend Contentbuilder page click on the "New" button I get following error:

The requested page can't be found.
with error message:
0 Call to undefined function each()

turning the system debug on in Global configuration I get a fatal error message as follows:
 Call to undefined function each()
.../plugins/content/breezingforms/breezingforms.php:192
187         $formid   = JRequest::getInt( 'ff_form',  $formid);
188         $formname = JRequest::getVar( 'ff_name',  $formname);
189         $page     = JRequest::getInt( 'ff_page',  $page);
190         $border   = JRequest::getInt( 'ff_border',$border);
191         reset($_REQUEST);
192         while (list($prop, $val) = each($_REQUEST))
193             if (!is_array($val) && substr($prop,0,9)=='ff_param_')
194                 $ff_request[$prop] = $val;
195     } // if
196 
197     // load form

In this post Status on Php 8 compatibility ? a fix for BreezingForms for php 8 is mentioned, but is 2 months old and latest version is only 1 month old?

Also regarding ContentBuilder, if I try to use the "XLS Export" I get following error:
0 count(): Argument #1 ($value) must be of type Countable|array, string given

In my backend ContentBuilder > Views page doesn't work either (just a blank page), so I suppose there are php 8 issues with ContentBuilder as well?

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

Last edit: Post by simun.

php 8 errors 2 weeks 3 days ago #281099

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Administrator
  • Administrator
  • Super Users
  • Posts: 10331
  • Thanks: 827
Hi,

BF pro for Joomla3 is PHP8 ready but ContentBuilder not officially yet (working on it alongside the Joomla4 version).
Please update ContentBuilder from the file attached to see if it solves the issue above.

File Attachment:

File Name: com_conten...1-11.zip
File Size:1,779 KB


Regards,
Markus
Attachments:

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

php 8 errors 2 weeks 3 days ago #281110

  • Topic Author
  • simun
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 109
  • Thanks: 0
Hi Markus,

Thanks for quick reply!

Your attached fix for Content seems to have fixed the the XLS export function and the backend Views page which are now working.

However the 1st issue is till present. When I click on the "New" button to submit a new record, it won't load up my BreezingForm form, I still get the same (fatal) error as shown in the initial post "0 Call to undefined function each()" with the code message.
Based on the error code, it seems to be related to the BreezingForms plugin?

EDIT: It seems that the plugins don't follow the Joomla update?
Downloading the latest BreezingForm zip package and updating the plg_breezingforms seemed to fix the isssue with the "New" button. However I'm not sure it is updated for php 8 as it dates back to August 2012?

It now does loads my BF-submission form, but the "Submit" button doesn't work. It gives me the following error:
0 count(): Argument #1 ($value) must be of type Countable|array, string given

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

Last edit: Post by simun.

php 8 errors 2 weeks 2 days ago #281126

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Administrator
  • Administrator
  • Super Users
  • Posts: 10331
  • Thanks: 827
Hi,

plugin "plg_breezingforms.zip" that ships with the Joomla3 version of BreezingForms has it fixed. Did you already try to install over your existing installation?

Regards,
Markus

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

php 8 errors 2 weeks 2 days ago #281135

  • Topic Author
  • simun
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 109
  • Thanks: 0
Hi,

Yes I did that yesterday, where I downloaded the latest package and installed/updated BreezingForms and its plugins to make sure everything is up to date.

Yet I'm unable to submit a new form when running on php 8.

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

php 8 errors 1 week 5 days ago #281173

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Administrator
  • Administrator
  • Super Users
  • Posts: 10331
  • Thanks: 827
Hm, this is weird, because the exact line of code this is causing it for you is not present anymore in this version. If you don't mind, you can also let me check on your site and send me temporary admin access: support2@crosstec.org

Please refer to this topic when you send the email.

Regards,
Markus

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.061 seconds

Support Discord

Join our Discord and enter the Crosstec channels for live-support, chat forums and directly interacting with the community!

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!