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.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

4 arguments are required, 3 given

More
1 year 8 months ago #8985 by zegenrijk
4 arguments are required, 3 given was created by zegenrijk
Hello,

Opening a field and save it, no problem. Now i delele a option in de option list in this field. Saving -> Error: 4 arguments are required, 3 given

How to solve?

Joomla 4.2.8 Visforms 4.21

Regards Michel

More
1 year 8 months ago #8988 by Administrator IV
Replied by Administrator IV on topic 4 arguments are required, 3 given
Hello zegenrijk,

I assume the following is the case.
A Visforms external plugin participates in the event system.
The external plugin can participate in the role of 'Event Sender' and/or 'Event Receiver'.
It uses the wrong number of event parameters.

A detailed PHP error report would be very helpful for us (the whole call stack with all the information).
To get a verbose PHP error report, enable maximum debugging in the Joomla administration before reproducing the error:

Dashboard --> Global Configuration, tab 'System', parameter 'Debug System' = 'Yes'
Dashboard --> Global Configuration, tab 'Server', parameter 'Error Reporting' = 'Maximum'

Kind regards, Ingmar

: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
1 year 8 months ago #8990 by zegenrijk
Replied by zegenrijk on topic 4 arguments are required, 3 given
Ok, i enabled debug/reporting and doing the same thing as yesterday, the option is deleted and there is no error. Solved....but why ?? there was a problem yesterday is a big ? Tryed it yesterday in many different ways.

Thank you for the quick response
Regards Michel

More
1 year 8 months ago #8992 by zegenrijk
Replied by zegenrijk on topic 4 arguments are required, 3 given
Ok, now i'm deleting another option, same error.....i see no php error, only this on the screen:

Er heeft zich een fout voorgedaan.
0 4 arguments are required, 3 given
Call stack
# Function Location
1 () JROOT/libraries/src/Language/Text.php:283
2 sprintf() JROOT/libraries/src/Language/Text.php:283
3 Joomla\CMS\Language\Text::sprintf() JROOT/administrator/components/com_visforms/helpers/visformsconditions.php:314
4 VisformsConditionsHelper::removeDeletedOptionsDependencies() JROOT/administrator/components/com_visforms/src/Model/VisfieldModel.php:454
5 Visolutions\Component\Visforms\Administrator\Model\VisfieldModel->save() JROOT/libraries/src/MVC/Controller/FormController.php:676
6 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:672
7 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
8 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
10 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
11 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
13 require_once() JROOT/administrator/index.php:32

I find this in the server log: [Wed Mar 01 10:36:48.120450 2023] [proxy_fcgi:error] [pid 460:tid 139751574591232] [client 86.92.225.208:51380] AH01071: Got error 'PHP message: PHP Warning: Undefined variable $fid in /home/bakkers17/domains/bakkersuikerbuik.nl/public_html/administrator/components/com_visforms/layouts/form/items_batch_copy_footer.php on line 22', referer: bakkersuikerbuik.nl/administrator/index....view=visfields&fid=1

More
1 year 8 months ago - 1 year 8 months ago #8993 by Administrator IV
Replied by Administrator IV on topic 4 arguments are required, 3 given
Hello zegenrijk,

Thank you for the PHP call stack.
That has helped us a lot.

The error is caused by an incorrect translation text in the Dutch language: COM_VISFORMS_OPTION_TOGGLES_DISPLAY.
I assume that you have Dutch set.

Explanation:

P1 - The English translation in the file:
administrator/language/en-GB/com_visforms.ini
says in the following line 498:
Code:
COM_VISFORMS_OPTION_TOGGLES_DISPLAY="Notice: You deleted an option from the option list of field \"%s\" which was used to toggle the display of the field \"%s\". The conditional settings in the depending field were corrected by automatic action."

P2 - The Dutch translation in the file:
administrator/language/nl-NL/com_visforms.ini
says in the following line 499:
Code:
COM_VISFORMS_OPTION_TOGGLES_DISPLAY="Notitie: U heft het item met id \"%s\" in the option lijst van het veld \"%s\" verwijderd. Deze option was used om de weegave van het veld \"%s\" te verwisselen . As a deze optie de some optie was om de weergave van het afhankelijke veld te wisselen, dan wordt dit veld nooit meer gotoond."

Correct: P1 contains the expression \"%s\" twice.
Wrong: In P2 there are 3 expressions \"%s\".

Therefore, P2 leads to the runtime error when called:
4 - 3 = 1 missing parameter.
You are obviously the first exquisite user to see this language string since the Dutch translation was last changed.

Questions and requests to you:

Q1 - Can you correct the Dutch translation to match the English in spirit and number (\"%s\")?
Q2 - Can you transfer the new translation from Q1 to the following file in your backend?
file = administrator/language/nl-NL/com_visforms.ini
Q3 - Does the error persist?
Q4 - Can you provide us the new translation from Q1 here?

We would then update and exchange the download package for the Dutch translation (visforms-language-nl-NL_j4.zip) as well.

Kind regards, Ingmar

: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 :-).
Last edit: 1 year 8 months ago by Administrator IV.

More
1 year 8 months ago #8994 by zegenrijk
Replied by zegenrijk on topic 4 arguments are required, 3 given
Thank you, solved!

COM_VISFORMS_OPTION_TOGGLES_DISPLAY="Notitie: U heeft een optie verwijderd uit de optielijst van het veld \"%s\" welke werd gebruikt om de weergaven van het veld \"%s\" in te schakelen. De voorwaardelijke instellingen in het afhankelijke veld zijn gecorrigeerd door automatische actie."

(note: i can also send the complete file, let me now how to send it to you)

Regards Michel

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum