Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Visforms 3.10.4 mit php 7.2

More
6 years 3 days ago #5464 by MrMusic
Visforms 3.10.4 mit php 7.2 was created by MrMusic
Hi,
bei Nutzung eines mehrseitigen Formulars erscheint eine php-Warning:
Warning: count(): Parameter must be an array or an object that implements Countable in ...components/com_visforms/lib/business.php on line 357.
Joomla: 3.8.7
Visforms: 3.10.4
php-Version: 7.2.4

More
6 years 2 days ago #5467 by Administrator AV
Replied by Administrator AV on topic Visforms 3.10.4 mit php 7.2
Hallo,

danke für den Hinweis.
An der betreffenden Stelle ist im Code eine Klammer falsch gesetzt.
Kannst bitte testen, ob das Problem behoben ist, wenn du in der Datei components/com_visforms/lib/business.php die vorhandene Zeile 357
Code:
if (isset($field->showWhen) && (is_array($field->showWhen) && count($field->showWhen > 0)))
gegen folgende Zeile austauschst
Code:
if (isset($field->showWhen) && (is_array($field->showWhen) && count($field->showWhen) > 0))
(mach zuerst eine Sicherungskopie der Datei, falls du auf die Orginaldatei zurückgehen musst).

Das Problem hat nicht mit der mehrseitigen Formular an sich zu tun sondern betrifft alle Layouts. Da ich selbst mit php 7.1 arbeite und diese Notice noch nie gesehen habe, vermute ich dass selbst php 7.1 noch irgendwie mit dem Code klar.

Danke,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
6 years 2 days ago #5468 by MrMusic
Replied by MrMusic on topic Visforms 3.10.4 mit php 7.2

Administrator wrote: ...Kannst bitte testen, ob das Problem behoben ist, wenn du in der Datei components/com_visforms/lib/business.php die vorhandene Zeile 357

Code:
if (isset($field->showWhen) && (is_array($field->showWhen) && count($field->showWhen > 0)))
gegen folgende Zeile austauschst
Code:
if (isset($field->showWhen) && (is_array($field->showWhen) && count($field->showWhen) > 0))
...

Ja, mit der Code-Änderung keine Warning mehr. :)
Danke.

More
6 years 2 days ago #5469 by Administrator AV
Replied by Administrator AV on topic Visforms 3.10.4 mit php 7.2
Danke.
Dann füge ich die Code-Änderung als Bugfix in den Visforms Code ein, so dass das Problem mit dem nächste Visforms Release dann gefixt ist.
Gruß,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum