TOPIC:

Cleanlogic3 PHP8 error Argument #1 ($value) must be of type Countable|array 1 month 4 weeks ago #279614

  • Topic Author
  • CJBorst
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 39
  • Thanks: 0
When I select the style of the template Cleanlogic3 I get error "Count(): Argument #1 ($value) must be of type Countable|array". When I use a PHP7 version there is no error. I use Joomla 3.10.11 with PHP 8.1.12. Other PHP 8 versions have the same problem. I have no idea in which statement of which file this error occurs. I searched through the forum and saw the same problem was reported with Breeze Forms but no solution was shown for Joomla 3.10 in the forum.

Please could you give me a solution for this Cleanlogic3 problem. I have the latest available version of Cleanlogic3

Thanks in advance for your cooperation.

Kind regards,
Cees Borst

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

Cleanlogic3 PHP8 error Argument #1 ($value) must be of type Countable|array 1 month 3 weeks ago #279669

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

could you please enable Debug system in System->Global configuration->System->Debug System set to Yes, and then come back to me and tell me in which line of code this error happend that I can help you :)

Regards,
Tihana

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

Cleanlogic3 PHP8 error Argument #1 ($value) must be of type Countable|array 1 month 3 weeks ago #279906

  • Topic Author
  • CJBorst
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 39
  • Thanks: 0
Hi Tihana,

In the uploaded DOC the text I got after I enabled the debug function and opened the style of the Cleanlogic 3 template. I hope it helps to figure out where the problem is.

Kind regards,
C.J.Borst
Attachments:

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

Cleanlogic3 PHP8 error Argument #1 ($value) must be of type Countable|array 1 month 3 weeks ago #279907

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

please go to:
/administator/components/com_gantry/views/template/tmpl/edit.php
in line 292 you will see
								if ((@count($positions['left'][$panels[$i]['name']]) && !@count($positions['right'][$panels[$i]['name']])) || (!@count($positions['left'][$panels[$i]['name']]) && @count($positions['right'][$panels[$i]['name']]))) {
replace it with:
if ((@count(array($positions['left'][$panels[$i]['name']])) && !@count(array($positions['right'][$panels[$i]['name']]))) || (!@count(array($positions['left'][$panels[$i]['name']])) && @count(array($positions['right'][$panels[$i]['name']])))) {

Let me know the result

Regards,
Tihana

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

Cleanlogic3 PHP8 error Argument #1 ($value) must be of type Countable|array 1 month 3 weeks ago #279917

  • Topic Author
  • CJBorst
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 39
  • Thanks: 0
Hi Tihana,

I changed the code in statement 292 but the result is the same as far as I can see in the added DOC file. I noticed that you added "@COUNT(array" at some places in this statement. However the error information states that it should be of type "Countable|array". Could that make any difference? Thanks so far for your appreciated support.
Kind regards,
C.J.Borst
Attachments:

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

Cleanlogic3 PHP8 error Argument #1 ($value) must be of type Countable|array 1 month 3 weeks ago #279918

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

will check again, and come back to you

Regards,
Tihana

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

Moderators: ForumSupport
Time to create page: 0.108 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!