e-spin / form-newsletter-bundle Goto Github PK
View Code? Open in Web Editor NEWForm Newsletter BundleWith this extension you can add a newsletter subscription to a form in the Contao CMS.
License: GNU General Public License v3.0
Form Newsletter BundleWith this extension you can add a newsletter subscription to a form in the Contao CMS.
License: GNU General Public License v3.0
Contao Version 4.9.20
terminal42/notification_center 1.6.1
terminal42/contao-ajaxform 1.1.3
terminal42/contao-leads 1.4.20
terminal42/contao-mp_forms 4.2.2
e-spin/form-newsletter-bundler 1.0.2
in den Benachrichtigungen des NC werden die Tokens
##newsletter_token## ##newsletter_domain## ##newsletter_link## ##newsletter_channels##
nicht ersetzt.
Contao version: 4.9.16
form-newsletter-bundle version: 1.0.2
I set up a simple form with a newsletter subscription (according to the screenshot on your github page).
Sending the form works, I receive an email with the newsletter activation link.
As soon as clicking the activation link in the email, a Contao error page is shown in the browser.
Here's the error from the log file in /var/logs:
[2021-07-27 14:23:22] request.INFO: Matched route "tl_page.2.root". {"route":"tl_page.2.root","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.2.root"},"request_uri":"https://www.domain.tld/?form_newsletter_token=a9c073f28797e8d373d2c8e285a29721","method":"GET"} []
[2021-07-27 14:23:22] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2021-07-27 14:23:22] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\InvalidFieldNameException: "An exception occurred while executing 'SELECT tl_newsletter_recipients.* FROM tl_newsletter_recipients WHERE tl_newsletter_recipients.`token`='a9c073f28797e8d373d2c8e285a29721'': SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause'" at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 79 {"exception":"[object] (Doctrine\\DBAL\\Exception\\InvalidFieldNameException(code: 0): An exception occurred while executing 'SELECT tl_newsletter_recipients.* FROM tl_newsletter_recipients WHERE tl_newsletter_recipients.`token`='a9c073f28797e8d373d2c8e285a29721'':\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause' at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:79, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause' at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause' at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:132)"} []
[2021-07-27 14:23:22] request.INFO: Matched route "tl_page.2.root". {"route":"tl_page.2.root","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.2.root"},"request_uri":"https://www.domain.tld/?form_newsletter_token=a9c073f28797e8d373d2c8e285a29721","method":"GET"} []
[2021-07-27 14:23:22] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2021-07-27 14:23:22] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\InvalidFieldNameException: "An exception occurred while executing 'SELECT tl_newsletter_recipients.* FROM tl_newsletter_recipients WHERE tl_newsletter_recipients.`token`='a9c073f28797e8d373d2c8e285a29721'': SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause'" at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 79 {"exception":"[object] (Doctrine\\DBAL\\Exception\\InvalidFieldNameException(code: 0): An exception occurred while executing 'SELECT tl_newsletter_recipients.* FROM tl_newsletter_recipients WHERE tl_newsletter_recipients.`token`='a9c073f28797e8d373d2c8e285a29721'':\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause' at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:79, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause' at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_newsletter_recipients.token' in 'where clause' at /var/www/clients/client1/web5/web/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:132)"} []
I've tried a lot of different set ups, unfortunately I always get these errors.
Help would be greatly appreciated!
Die Benachrichtigung im NC wird nicht ausgelöst, wenn ein Subscriber sein Abo bestätigt.
siehe #2 (comment)
Contao Version 4.9.20
e-spin/form-newsletter-bundle 1.0.2
terminal42/contao-leads 1.4.20
terminal42/notification_center 1.6.1
Das Abschicken eines NL-Anmelde-Formulars führt zu einem Fehler:
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'pid' in where clause is ambiguous
Der Query:
HTTP 500 Internal Server Error
An exception occurred while executing 'SELECT tl_form_field.*, j1.`id` AS newsletter_email__id, j1.`pid` AS newsletter_email__pid, j1.`sorting` AS newsletter_email__sorting, j1.`tstamp` AS newsletter_email__tstamp, j1.`type` AS newsletter_email__type, j1.`label` AS newsletter_email__label, j1.`name` AS newsletter_email__name, j1.`text` AS newsletter_email__text, j1.`html` AS newsletter_email__html, j1.`options` AS newsletter_email__options, j1.`mandatory` AS newsletter_email__mandatory, j1.`rgxp` AS newsletter_email__rgxp, j1.`placeholder` AS newsletter_email__placeholder, j1.`minlength` AS newsletter_email__minlength, j1.`maxlength` AS newsletter_email__maxlength, j1.`minval` AS newsletter_email__minval, j1.`maxval` AS newsletter_email__maxval, j1.`step` AS newsletter_email__step, j1.`size` AS newsletter_email__size, j1.`multiple` AS newsletter_email__multiple, j1.`mSize` AS newsletter_email__mSize, j1.`extensions` AS newsletter_email__extensions, j1.`storeFile` AS newsletter_email__storeFile, j1.`uploadFolder` AS newsletter_email__uploadFolder, j1.`useHomeDir` AS newsletter_email__useHomeDir, j1.`doNotOverwrite` AS newsletter_email__doNotOverwrite, j1.`class` AS newsletter_email__class, j1.`value` AS newsletter_email__value, j1.`accesskey` AS newsletter_email__accesskey, j1.`tabindex` AS newsletter_email__tabindex, j1.`fSize` AS newsletter_email__fSize, j1.`customTpl` AS newsletter_email__customTpl, j1.`slabel` AS newsletter_email__slabel, j1.`imageSubmit` AS newsletter_email__imageSubmit, j1.`singleSRC` AS newsletter_email__singleSRC, j1.`invisible` AS newsletter_email__invisible, j1.`rsce_data` AS newsletter_email__rsce_data, j1.`isConditionalFormField` AS newsletter_email__isConditionalFormField, j1.`conditionalFormFieldCondition` AS newsletter_email__conditionalFormFieldCondition, j1.`isGallery` AS newsletter_email__isGallery, j1.`maxConnections` AS newsletter_email__maxConnections, j1.`chunking` AS newsletter_email__chunking, j1.`chunkSize` AS newsletter_email__chunkSize, j1.`concurrent` AS newsletter_email__concurrent, j1.`addToDbafs` AS newsletter_email__addToDbafs, j1.`uploadButtonLabel` AS newsletter_email__uploadButtonLabel, j1.`maxWidth` AS newsletter_email__maxWidth, j1.`maxHeight` AS newsletter_email__maxHeight, j1.`newsletter_email` AS newsletter_email__newsletter_email, j1.`newsletter_channels` AS newsletter_email__newsletter_channels, j1.`newsletter_hideChannels` AS newsletter_email__newsletter_hideChannels, j1.`newsletter_jumpTo` AS newsletter_email__newsletter_jumpTo, j1.`newsletter_confirmation` AS newsletter_email__newsletter_confirmation, j1.`newsletter_subscribe` AS newsletter_email__newsletter_subscribe, j1.`recipient_subject` AS newsletter_email__recipient_subject, j1.`recipient_defaultEmail` AS newsletter_email__recipient_defaultEmail, j1.`recipient_sendCopy` AS newsletter_email__recipient_sendCopy, j1.`leadStore` AS newsletter_email__leadStore FROM tl_form_field LEFT JOIN tl_form_field j1 ON tl_form_field.`newsletter_email`=j1.id WHERE pid = '20' AND type = 'recipientmenu' LIMIT 0,1':
Kann es sein dass in der Klasse RecipientManager / Funktion prepareRecipients bei
$objFormField = \FormFieldModel::findOneBy(
array('pid = ?', 'type = ?'),
array($objForm->id, 'recipientmenu')
);
einfach die Angabe der entsprechenden Tabelle - vermutl. tl_form_field - fehlt?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.