Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Wichtige Angaben für fast jede Frage:
V1: Welche Visforms-Version läuft?
V2: Welche Joomla-Version läuft?
V3: Welche PHP-Version läuft?

Error after updating my submit handler plugin for Joomla 5

Mehr
4 Tage 10 Stunden her #11860 von PTCWebmaster
I have followed the instructions in the "Code correction of your own plugins" documentation (Visforms 5) to update my submit handler plugin. After installing the plugin and go to use one of my forms I get the error:
0 - Undefined constant "Visolutions\Plugin\Visforms\Ptcsubmithandler\Extension\Ptcsubmithandler"
In the call stack it is triggered by - JROOT\plugins\visforms\ptcsubmithandler\services\provider.php:24

I have double checked all my changes to match the instructions. Therefore, I need help to solve this error please.
I have attached the code for the associated Provider PHP file to help.
 

Dateianhang:

Dateiname: provider.txt
Dateigröße:2 KB


V1: Which Visforms version is running? - 5.5.1
V2: Which Joomla version is running? - 5.3.4
V3: Which PHP version is running? - 8.2.18

Mehr
4 Tage 6 Stunden her #11861 von Administrator AV
Hello,

thanks for your message.

The instruction was incorrect at this point.
I've already corrected the instruction in the documentation.
docs.joomla-5.visforms.vi-solutions.de/e...update-plugins-code/

The use keyword is missing.

Correct:
Code:
use Visolutions\Plugin\Visforms\Myplugin\Extension\Myplugin;

In your case
Code:
use Visolutions\Plugin\Visforms\Ptcsubmithandler\Extension\Ptcsubmithandler;

Kind Regards,
Aicha

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

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

Mehr
3 Tage 13 Stunden her #11864 von PTCWebmaster
Great. I made that change but now I have the following error:
Visolutions\Plugin\Visforms\Ptcsubmithandler\Extension\Ptcsubmithandler::__construct(): Argument #1 ($subject) must be of type Visolutions\Plugin\Visforms\Ptcsubmithandler\Extension\DispatcherInterface, Joomla\Event\Dispatcher given, called in C:\wamp64\www\PTC\plugins\visforms\ptcsubmithandler\services\provider.php on line 35

I do know PHP classes but I cant work out why this error is there. Your help again would be appreciated.

To help here is a copy of my plugin which was working with V4 and again which I changed as per the instructions.
 

Dateianhang:

Dateiname: ptcplugin.txt
Dateigröße:7 KB

Mehr
3 Tage 56 Minuten her #11865 von Administrator AV
Hi,

The instruction in the documentation was not fully complete.
I've already corrected the documentation.

In your plugin file Ptcsubmithandler.php please add the following use statement.
Code:
use Joomla\Event\DispatcherInterface;

Regards,
Aicha

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

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

Mehr
13 Stunden 33 Minuten her #11868 von PTCWebmaster
Thank you Aicha

My plugin is now working. I appreciate your help. I'm also pleased that I was able to help highlight the errors in the instruction documentation.
Regards

Lyndsay

Mehr
6 Stunden 58 Minuten her #11869 von Administrator AV
Hi Lyndsay,

I'm glad, your plugin is working now.

I, very much appreciate, that your work help us improve the documentation.

Thanks for your patience!

Kind Regards,
Aicha

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

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

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum