Joomla 5 Notice

We are pleased to announce that as of October 14, 2025, all of our Joomla extensions are compatible with Joomla 6.

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

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

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?

SQL-Statements im Header/Footer in PDF-Templates

More
2 years 3 months ago - 2 years 3 months ago #9490 by MaliRaj
SQL-Statements im Header/Footer in PDF-Templates, die im Dokument funktionieren, führen bei mir zu einem Fehler
Code:
<p id="sum" class="sql">Teilnehmer gesamt: ${sum:teilnehmer} / Gesamtsumme: ${sum:sum}</p> array_column(): Argument #1 ($array) must be of type array, null given

Kann ich keine SQL-Statements im Header/Footer nutzen oder ist meine Syntax falsch? Ich möchte gerne für die PDF-Listenansicht SQL-Platzhalter im Header nutzen, die oben auf jeder Seite platziert sind.
 

Freundliche Grüße aus PM
Heinz
(Joomla 5.2.3 / Visforms+Subscription 5.4.1 / PHP 8.2)
Last edit: 2 years 3 months ago by MaliRaj. Reason: Themensymbol geändert [gelöst]

More
2 years 3 months ago #9494 by Administrator IV
Replied by Administrator IV on topic SQL-Statements im Header/Footer in PDF-Templates
Hallo Heinz,

ich kann den Fehler mit einem sehr kleinen PDF-Beispiel mit deinem Header/Footer Text bei mir reproduzieren.

Es handelt sich um einen Bug in Visforms und wir werden das Verhalten anpassen.
Ich habe dazu einen Issue zur Entwicklung für die Bug-Liste angelegt:
Issue [VF-850] Forum: PDF: error on using placeholder SQL-statements in header and footer

Wenn wir den Bug-Fix releasen, wirst du explizit über das Release hier im Thema informiert.
Vielen Dank nochmal für deinen Hinweis!

Liebe Grüße, Ingmar

: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 :-).
The following user(s) said Thank You: MaliRaj

More
2 years 3 months ago #9496 by Administrator IV
Replied by Administrator IV on topic SQL-Statements im Header/Footer in PDF-Templates
Hallo Heinz,

es gibt einen Bug-Fix zur Behebung des Fehlers.

Die folgende(n) Datei(en) herunterladen:
- vi-solutions.de/forum-bugfixes/RenderPdfViewBase_v4.3.1.txt

Die heruntergeladene(n) Datei(en) umbenennen in
- RenderPdfViewBase.php

Mit ihnen auf dem Server die folgende(n) Datei(en) überschreiben:
- administrator/components/com_visforms/src/View/RenderPdfViewBase.php

Nach dem manuellen einspielen der Datei funktionieren die SQL-Platzhalter in Header und Footer wieder:

SQL-Statement:
vi-solutions.de/forum-uploads/sql-statem...s_sql-statements.png
Header:
vi-solutions.de/forum-uploads/sql-statem...templates_header.png
Vorschau:
vi-solutions.de/forum-uploads/sql-statem...in-pdf-templates.png

Liebe Grüße, Ingmar

: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 :-).
The following user(s) said Thank You: MaliRaj

More
2 years 3 months ago #9498 by MaliRaj
funktioniert auch bei mir tadellos! Dankeschön :-)

Freundliche Grüße aus PM
Heinz
(Joomla 5.2.3 / Visforms+Subscription 5.4.1 / PHP 8.2)
The following user(s) said Thank You: Administrator IV

More
2 years 1 week ago #9755 by Administrator IV
Replied by Administrator IV on topic SQL-Statements im Header/Footer in PDF-Templates
Hallo Heinz,

der Fehler ist behoben im neusten Release vom 12.10.2023 für Joomla 4:
Visforms 4.3.1
docs.joomla-4.visforms.vi-solutions.de/updates/version-4-3-1/
Visforms Subscription 4.3.1
docs.joomla-4.visforms.vi-solutions.de/u...s/sub-version-4-3-1/

Liebe Grüße, Ingmar

: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 :-).
The following user(s) said Thank You: MaliRaj

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum