Giter Site home page Giter Site logo

solspace / craft-freeform Goto Github PK

View Code? Open in Web Editor NEW
47.0 10.0 59.0 56.31 MB

Freeform for Craft: The most reliable form builder that's ready for wherever your project takes you.

Home Page: https://docs.solspace.com/craft/freeform/v5/

License: Other

PHP 66.29% CSS 2.05% HTML 0.36% JavaScript 1.27% Twig 7.99% TypeScript 19.42% SCSS 2.08% MDX 0.01% EJS 0.53%
craft-plugin craftcms

craft-freeform's Introduction

Solspace Freeform plugin for Craft CMS 5.x

Freeform is the most reliable, intuitive and powerful form builder for Craft. Effortlessly build beautiful forms in minutes!

Freeform icon

Overview

Freeform is the most reliable, intuitive and powerful form-building plugin for Craft. Everything is at your fingertips in our elegant form builder. It gives you full control to create simple or complex multi-page forms, as well as connect your forms to many built-in popular API integrations. Templating is easy and highly customizable. Our ready-to-go templates and features will have you ready in minutes! You can trust Freeform and the team behind it to deliver the quality and support you expect and deserve.

Helpful Links

craft-freeform's People

Contributors

a-solaris avatar aaronlinley avatar angrybrad avatar arnevanbael-axxes avatar birdkiwi avatar bradlilley avatar davidstrada avatar engram-design avatar frdh avatar gustavs-gutmanis avatar jackatomix avatar jrrdnx avatar kjmartens avatar lodekennes avatar martinbjeldbak avatar mdominguez avatar panlatent avatar rvgool-oym avatar scandella avatar seandelaney avatar thejahid avatar timkelty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

craft-freeform's Issues

SQL Error after install

After installing freeform lite, the following SQL error was encountered, and the plugin had to be manually disabled via the DB to regain access to the control panel.

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'av04121_secondChance.craft_freeform_unfinalized_files' doesn't exist The SQL being executed was: SELECT assetId FROM craft_freeform_unfinalized_files WHERE dateCreated < '2018-01-24 12:18:59'

error on install

When trying to install (from Craft Plugin store and/or with Composer) i get this error. Can you help, what i'm doing wrong?

`Error: An error occurred

Output: Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Installation request for solspace/craft3-freeform 2.0.0-beta.11 -> satisfiable by solspace/craft3-freeform[2.0.0-beta.11].
  • solspace/craft3-freeform 2.0.0-beta.11 requires hashids/hashids ^1.0 -> satisfiable by hashids/hashids[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6] but these conflict with your requirements or minimum-stability.

Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.`

No e-mail notifications are being sent

We've setup an e-mail template and correctly configured the form to use it, but no e-mail notifications are being sent for all forms.

We've debugged with mailhog, but they are actually not sent, it's not a delivery issue.
Though the forms are correctly processed and stored in the DB, for some reason the e-mail is not triggers, not to admin nor to the form submittor.

Also, no logs errors in the log present..

Using craft RC-14 and the beta11 of your extension. Any ideas?

Error installing plugin (in Craft-backend)

When attempting to install the plugin (LITE version - haven't tried PRO yet) I get a MigrationException:

An error occurred while executing the "Solspace\Freeform\migrations\Install migration: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'dateCreated'

The SQL being executed was:
CREATE TABLE freeform_forms (
id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
name varchar(100) NOT NULL,
handle varchar(100) NOT NULL UNIQUE,
spamBlockCount int(11) UNSIGNED NOT NULL DEFAULT 0,
submissionTitleFormat varchar(255) NOT NULL,
description text,
layoutJson mediumtext,
returnUrl varchar(255),
defaultStatus int(11) UNSIGNED,
formTemplateId int(11) UNSIGNED,
color varchar(10),
dateCreated datetime NOT NULL DEFAULT NOW(),
dateUpdated datetime NOT NULL DEFAULT NOW() ON UPDATE CURRENT_TIMESTAMP,
uid char(36) DEFAULT 0
) ENGINE=InnoDb DEFAULT CHARSET=utf8"`

The trace is as follows:

#0 /var/www/moldejazz.test/vendor/craftcms/cms/src/base/Plugin.php(112): craft\db\MigrationManager->migrateUp(Object(Solspace\Freeform\migrations\Install))
#1 /var/www/moldejazz.test/vendor/craftcms/cms/src/services/Plugins.php(461): craft\base\Plugin->install()
#2 /var/www/moldejazz.test/vendor/craftcms/cms/src/controllers/PluginsController.php(49): craft\services\Plugins->installPlugin('freeform')
#3 [internal function]: craft\controllers\PluginsController->actionInstallPlugin()
#4 /var/www/moldejazz.test/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#5 /var/www/moldejazz.test/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#6 /var/www/moldejazz.test/vendor/craftcms/cms/src/web/Controller.php(80): yii\base\Controller->runAction('install-plugin', Array)
#7 /var/www/moldejazz.test/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('install-plugin', Array)
#8 /var/www/moldejazz.test/vendor/craftcms/cms/src/web/Application.php(251): yii\base\Module->runAction('plugins/install...', Array)
#9 /var/www/moldejazz.test/vendor/craftcms/cms/src/web/Application.php(453): craft\web\Application->runAction('plugins/install...', Array)
#10 /var/www/moldejazz.test/vendor/craftcms/cms/src/web/Application.php(211): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#11 /var/www/moldejazz.test/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#12 /var/www/moldejazz.test/web/index.php(21): yii\base\Application->run()
`#13 {main}``

Error when attempting to edit user, or user group

Error: Undefined class constant 'PERMISSION_FORMS_MANAGE' in SERVERPATH/vendor/solspace/craft3-freeform/src/Freeform.php:230
Stack trace:
0. [internal function]: Solspace\Freeform\Freeform->Solspace\Freeform{closure}(Object(craft\events\RegisterUserPermissionsEvent))

  1. SERVERPATH/vendor/yiisoft/yii2/base/Event.php(221): call_user_func(Object(Closure), Object(craft\events\RegisterUserPermissionsEvent))
  2. SERVERPATH/vendor/yiisoft/yii2/base/Component.php(565): yii\base\Event::trigger('craft\services\...', 'registerPermiss...', Object(craft\events\RegisterUserPermissionsEvent))
  3. SERVERPATH/vendor/craftcms/cms/src/services/UserPermissions.php(213): yii\base\Component->trigger('registerPermiss...', Object(craft\events\RegisterUserPermissionsEvent))
  4. SERVERPATH/vendor/craftcms/cms/src/services/UserPermissions.php(229): craft\services\UserPermissions->getAllPermissions()
  5. SERVERPATH/vendor/twig/twig/lib/Twig/Extension/Core.php(1595): craft\services\UserPermissions->getAssignablePermissions(NULL)
  6. SERVERPATH/vendor/craftcms/cms/src/helpers/Template.php(76): twig_get_attribute(Object(craft\web\twig\Environment), Object(Twig_Source), Object(craft\services\UserPermissions), 'getAssignablePe...', Array, 'method', false, false)
  7. SERVERPATH/storage/runtime/compiled_templates/ee/ee660c2ec1da6451467b3a63f866e5b34c572f99922a09fa516c418fee52c43a.php(48): craft\helpers\Template::attribute(Object(craft\web\twig\Environment), Object(Twig_Source), Object(craft\services\UserPermissions), 'getAssignablePe...', Array, 'method')
  8. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(389): __TwigTemplate_c345e269ca0acbdf7b24c9afea5a20395ad5d1cf1da76819f5fba90f2385bb2c->doDisplay(Array, Array)
  9. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
  10. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
  11. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
  12. SERVERPATH/storage/runtime/compiled_templates/34/348c7b819e6ea66a836efc604e1bea7fcc77473ebc6396db98d6526705e1e975.php(380): craft\web\twig\Template->display(Array)
  13. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(188): __TwigTemplate_450d8c6a5992a09e15987ec269b3d759c9f3ccf0dbb775e5435c0dec51f359dc->block_content(Array, Array)
  14. SERVERPATH/storage/runtime/compiled_templates/52/52d095f7769e22f93570415195f8d799b06daee8b8054f55716751c547d867e6.php(636): Twig_Template->displayBlock('content', Array, Array)
  15. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(188): __TwigTemplate_0ff8b6b2d9197e5523a2797e6c1f6845dd3c4defe5a1952ada4f16bf797cfec3->block_main(Array, Array)
  16. SERVERPATH/storage/runtime/compiled_templates/52/52d095f7769e22f93570415195f8d799b06daee8b8054f55716751c547d867e6.php(533): Twig_Template->displayBlock('main', Array, Array)
  17. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(188): __TwigTemplate_0ff8b6b2d9197e5523a2797e6c1f6845dd3c4defe5a1952ada4f16bf797cfec3->block_body(Array, Array)
  18. SERVERPATH/storage/runtime/compiled_templates/e2/e25fa1820e2c95cdafc542dd213dfb93302d556734df7fa87eb39ce1c66a81cd.php(53): Twig_Template->displayBlock('body', Array, Array)
  19. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(389): __TwigTemplate_4d29c2e31e93d8ae352742824113e33c0aa9aa8a95e07330b62a1d3ab9612ab1->doDisplay(Array, Array)
  20. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
  21. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
  22. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
  23. SERVERPATH/storage/runtime/compiled_templates/81/818c62b9550f9232c78a3d76e8d955117d0839ce1174664453eb28e92cd6ed32.php(36): craft\web\twig\Template->display(Array, Array)
  24. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(389): __TwigTemplate_46c305540d19a0585fbec8246e9bb8908a46630f49e6029cabd97f51c0e14b96->doDisplay(Array, Array)
  25. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
  26. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
  27. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
  28. SERVERPATH/storage/runtime/compiled_templates/52/52d095f7769e22f93570415195f8d799b06daee8b8054f55716751c547d867e6.php(90): craft\web\twig\Template->display(Array, Array)
  29. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(389): __TwigTemplate_0ff8b6b2d9197e5523a2797e6c1f6845dd3c4defe5a1952ada4f16bf797cfec3->doDisplay(Array, Array)
  30. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
  31. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
  32. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
  33. SERVERPATH/storage/runtime/compiled_templates/34/348c7b819e6ea66a836efc604e1bea7fcc77473ebc6396db98d6526705e1e975.php(82): craft\web\twig\Template->display(Array, Array)
  34. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(389): __TwigTemplate_450d8c6a5992a09e15987ec269b3d759c9f3ccf0dbb775e5435c0dec51f359dc->doDisplay(Array, Array)
  35. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
  36. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
  37. SERVERPATH/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
  38. SERVERPATH/vendor/twig/twig/lib/Twig/Template.php(374): craft\web\twig\Template->display(Array)
  39. SERVERPATH/vendor/twig/twig/lib/Twig/Environment.php(289): Twig_Template->render(Array)
  40. SERVERPATH/vendor/craftcms/cms/src/web/View.php(308): Twig_Environment->render('users/_edit', Array)
  41. SERVERPATH/vendor/craftcms/cms/src/web/View.php(356): craft\web\View->renderTemplate('users/_edit', Array)
  42. SERVERPATH/vendor/craftcms/cms/src/web/Controller.php(121): craft\web\View->renderPageTemplate('users/_edit', Array)
  43. SERVERPATH/vendor/craftcms/cms/src/controllers/UsersController.php(871): craft\web\Controller->renderTemplate('users/_edit', Array)
  44. [internal function]: craft\controllers\UsersController->actionEditUser('815', Object(craft\elements\User))
  45. SERVERPATH/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
  46. SERVERPATH/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
  47. SERVERPATH/vendor/craftcms/cms/src/web/Controller.php(80): yii\base\Controller->runAction('edit-user', Array)
  48. SERVERPATH/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('edit-user', Array)
  49. SERVERPATH/vendor/craftcms/cms/src/web/Application.php(251): yii\base\Module->runAction('users/edit-user', Array)
  50. SERVERPATH/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('users/edit-user', Array)
  51. SERVERPATH/vendor/craftcms/cms/src/web/Application.php(216): yii\web\Application->handleRequest(Object(craft\web\Request))
  52. SERVERPATH/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
  53. SERVERPATH/public/index.php(21): yii\base\Application->run()
  54. {main}

Deactivate Include Attachments? does not work. Also saving some input fields

Hi.

I created an Email Notification. The field Include Attachments? was deactivated on first save. But when I go back to edit the template it's on and now I cant deactivate it.

Another thing is that If I edit the Email body text, it resets after saving. So I guess something is not saved properly.

I see the same issue for Reply-to Email field.

Freeform Lite v2.0.0-beta.2.

Thanks!

Accessing /admin/freeform/submissions throws an error

After upgrading to the latest beta and completing a form-submission in the front-end, I started seeing this error in the back-end.

The error only shows for both "All submissions" and for the form that has a submission; any form that has no submissions does not throw an error.

The data from the submission does not show up in the back-end, but it is correctly exported

Next Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Illegal offset type"). in /var/www/www.moldejazz.no/vendor/craftcms/cms/src/templates/_elements/element.html:1
Stack trace:
#0 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
#1 /var/www/www.moldejazz.no/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
#2 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
#3 /var/www/www.moldejazz.no/storage/runtime/compiled_templates/60/60af87bb9aed6170f480324275b4bbdb6982a35157b67b358c0cbd548e1114b9.php(126): craft\web\twig\Template->display(Array)
#4 /var/www/www.moldejazz.no/vendor/twig/twig/lib/Twig/Template.php(389): __TwigTemplate_0f793673f68a403232b681359cfe4df2e409dcf047b318548d4ba8f3ab531f81->doDisplay(Array, Array)
#5 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
#6 /var/www/www.moldejazz.no/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
#7 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
#8 /var/www/www.moldejazz.no/storage/runtime/compiled_templates/17/17622d2c80c6740d9541f2f4e4a1f494841247850ce618152c22bf741b971a8e.php(77): craft\web\twig\Template->display(Array)
#9 /var/www/www.moldejazz.no/vendor/twig/twig/lib/Twig/Template.php(389): __TwigTemplate_ecf5dcea59fa7ed607b7eb367404ff18f305e4cc3ca3cc1a187857821cb82ef4->doDisplay(Array, Array)
#10 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/twig/Template.php(51): Twig_Template->displayWithErrorHandling(Array, Array)
#11 /var/www/www.moldejazz.no/vendor/twig/twig/lib/Twig/Template.php(366): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
#12 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/twig/Template.php(32): Twig_Template->display(Array, Array)
#13 /var/www/www.moldejazz.no/vendor/twig/twig/lib/Twig/Template.php(374): craft\web\twig\Template->display(Array)
#14 /var/www/www.moldejazz.no/vendor/twig/twig/lib/Twig/Environment.php(289): Twig_Template->render(Array)
#15 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/View.php(308): Twig_Environment->render('_elements/table...', Array)
#16 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/base/Element.php(446): craft\web\View->renderTemplate('_elements/table...', Array)
#17 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(391): craft\base\Element::indexHtml(Object(Solspace\Freeform\Elements\Db\SubmissionQuery), Array, Array, '*', 'index', true, true)
#18 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(119): craft\controllers\ElementIndexesController->_elementResponseData(true, true)
#19 [internal function]: craft\controllers\ElementIndexesController->actionGetElements()
#20 /var/www/www.moldejazz.no/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#21 /var/www/www.moldejazz.no/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#22 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/Controller.php(80): yii\base\Controller->runAction('get-elements', Array)
#23 /var/www/www.moldejazz.no/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('get-elements', Array)
#24 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/Application.php(240): yii\base\Module->runAction('element-indexes...', Array)
#25 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/Application.php(450): craft\web\Application->runAction('element-indexes...', Array)
#26 /var/www/www.moldejazz.no/vendor/craftcms/cms/src/web/Application.php(211): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#27 /var/www/www.moldejazz.no/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#28 /var/www/www.moldejazz.no/web/index.php(21): yii\base\Application->run()
#29 {main}
$_POST = [
    'context' => 'index'
    'elementType' => 'Solspace\\Freeform\\Elements\\Submission'
    'source' => '*'
    'criteria' => [
        'status' => ''
        'siteId' => ''
        'search' => ''
        'limit' => '50'
        'enabledForSite' => ''
    ]
    'viewState' => [
        'mode' => 'table'
        'order' => 'dateCreated'
        'sort' => 'desc'
    ]
]
$_SESSION = [
    'bd62416aa8538ede709019a5e113eea5__flash' => [
        'freeform_submission_flash2' => -1
    ]
    '1031b8c41dfff97a311a7ac99863bdc5__id' => '1'
    '1031b8c41dfff97a311a7ac99863bdc5__expire' => 1518607862
    'freeformActiveSessions' => [
        1518603839 => '5KM0OK02p_e6264b6f5560d6b1e5b8d95baad6f02d822f2b685a840e3f77227'
        1518603885 => '5KM0OK02p_e6264b6f5560d6b1e5b8d95baad6f02d822f2b685a840e3f77227'
        1518603912 => '5KM0OK02p_e6264b6f5560d6b1e5b8d95baad6f02d822f2b685a840e3f77227'
    ]
    'freeformHoneypotHashList' => '[]'
    'freeform_submission_flash2' => true
]

Cacheable forms CSRF token error

Describe the bug or issue you're experiencing
When using the code on this page: https://docs.solspace.com/craft/freeform/v3/templating/caching.html#static-page-caching-cdn-blitz to handle forms on cached pages, the system returns an error "Unable to verify your data submission.” At the bottom of the error message, the CSRF tokens don’t match.

Steps to reproduce

  1. Create a form in Freeform
  2. Create a blank template with the form’s handle as suggested in docs, as well as a file in /dynamic/index.twig following all instructions for “Static Page Caching”
  3. Exclude dynamic from Blitz caching
  4. The page works for 10-15 minutes, but then no longer does when the cached page gets old.

Expected behavior
CSRF token should be swapped in by the script.

Craft & Plugin Info (please complete the following information):

  • Craft Version:3.5.17.1
  • Freeform Version: 3.10.0
  • Freeform Edition: Pro Trial
  • Fresh Install or Upgrade: Upgrade

Additional context
Have tried this with a setup that was working fine without any caching, but recently added caching. Error occurs on existing templates that were updated with the suggested code, so I then created a blank template I created with only the suggested code in it and have the same problem. I confirmed that files in the “/templates/dynamic” folder are not being cached.

Error after updating to Craft 3.0.0

The following error gets thrown by Freeform after updating to Craft 3.0.0:

Undefined class constant 'Client'

I apologize, I disabled the plugin before grabbing the remainder of the trace so that I could complete the Craft upgrade process.

Error when using Freeform on server with PHP 7.0

When using Craft 3.0.2 on a server with PHP 7.0.28, submitting the form fails because apparently Symfony requires PHP 7.1-specific Nullable types ("?" notation). We're using Freeform Lite 2.0.0-beta.16 for the form.

Shouldn't it be possible to use Freeform with PHP 7.0 without Symfony requiring PHP 7.1-specific language features?

Error 'Form has to be an int'

After selecting a form and saving the section, an error appears that the form have to be an Integer.
(Sorry, screenshot is in german)
form

Error Installing: Syntax error or access violation

I'm getting an error trying to install Freeform Lite on a site that was just updated from Craft 2.

Database Exception: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'craft_freeform_crm_fields_integrationId_fk'; check that column/key exists
The SQL being executed was: ALTER TABLE craft_freeform_crm_fields DROP FOREIGN KEY craft_freeform_crm_fields_integrationId_fk

Migration: Solspace\Freeform\migrations\m180120_140521_CraftUpgrade

Output:

> drop foreign key craft_freeform_crm_fields_integrationId_fk from table {{%freeform_crm_fields}} ...Exception: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'craft_freeform_crm_fields_integrationId_fk'; check that column/key exists
The SQL being executed was: ALTER TABLE craft_freeform_crm_fields DROP FOREIGN KEY craft_freeform_crm_fields_integrationId_fk (/Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/db/Schema.php:664)
#0 /Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/db/Command.php(1263): yii\db\Schema->convertException(Object(PDOException), 'ALTER TABLE cr...')
#1 /Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/db/Command.php(1075): yii\db\Command->internalExecute('ALTER TABLE cr...')
#2 /Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/db/Migration.php(479): yii\db\Command->execute()
#3 /Users/tdavis/sites/hamilton/vendor/solspace/craft3-freeform/src/migrations/m180120_140521_CraftUpgrade.php(45): yii\db\Migration->dropForeignKey('craft_freeform_...', '{{%freeform_crm...')
#4 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/db/Migration.php(42): Solspace\Freeform\migrations\m180120_140521_CraftUpgrade->safeUp()
#5 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/db/MigrationManager.php(243): craft\db\Migration->up(true)
#6 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/db/MigrationManager.php(163): craft\db\MigrationManager->migrateUp(Object(Solspace\Freeform\migrations\m180120_140521_CraftUpgrade))
#7 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/services/Updates.php(219): craft\db\MigrationManager->up()
#8 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/controllers/BaseUpdaterController.php(435): craft\services\Updates->runMigrations(Array)
#9 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/controllers/UpdaterController.php(207): craft\controllers\BaseUpdaterController->runMigrations(Array, 'restore-db')
#10 [internal function]: craft\controllers\UpdaterController->actionMigrate()
#11 /Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#12 /Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#13 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/web/Controller.php(74): yii\base\Controller->runAction('migrate', Array)
#14 /Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('migrate', Array)
#15 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/web/Application.php(237): yii\base\Module->runAction('updater/migrate', Array)
#16 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/web/Application.php(546): craft\web\Application->runAction('updater/migrate')
#17 /Users/tdavis/sites/hamilton/vendor/craftcms/cms/src/web/Application.php(191): craft\web\Application->_processUpdateLogic(Object(craft\web\Request))
#18 /Users/tdavis/sites/hamilton/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#19 /Users/tdavis/sites/hamilton/public/index.php(21): yii\base\Application->run()
#20 {main}

EVENT_AFTER_UPLOAD not returning assetId

I'm trying to get uploaded asset id with EVENT_AFTER_UPLOAD event.
However, an example provided in docs not working. $field->getValue() returning empty value array(0) { }.
https://docs.solspace.com/craft/freeform/v3/developer/file-upload-events.html#after-an-upload-has-finished

Steps to reproduce

  1. Create an empty module
  2. Add init method
public function init()
{
    Craft::setAlias('@modules', __DIR__);
    parent::init();

    Event::on(
        FilesService::class,
        FilesService::EVENT_AFTER_UPLOAD,
        function (UploadEvent $event) {
            $field = $event->getField();

            // Get the uploaded Asset ID
            $assetId = $field->getValue();

            var_dump($assetId);
            die();
        }
    );
}
  1. Upload any file in any form.

Expected behavior

$assetId is not empty and returning asset ids.

Craft & Plugin Info (please complete the following information):

  • Craft Version: 3.5.17.1
  • Freeform Version: 3.9.11
  • Freeform Edition: PRO
  • Fresh Install or Upgrade: fresh

Additional context

Radio translation

I have a bit of a challenge here and would appreciate it very much, if someone could give me a little support. The problem I have is with two languages and radiobox. German is the main language and English is the second language. If I do a translation within the translation file the German text (main language) on the German side will also be translated in English (second language). But only within radioboxes. It makes no difference, if I do the translation within my own translation folder or if I replace it with the folder of freeform.

Client account cannot view submissions on Freeform Lite with Craft Client License

Set up a system that works perfectly for my admin account, but when I try to access submissions with the Client account, I get a double An unknown error occurred. message at the top. They have permissions to access everything in the CP as far as the settings will allow, and they can create/modify forms, just aren't able to see the results.

I’m running Craft CMS 3.0.0-RC10.1
and Freeform Lite v2.0.0-beta.9

Incorrect file path for JS calendar plugin used with Date field

I get a PHP Warning when using the Date field in a form. It appears a file path for the Flatpickr plugin is incorrect:

file_get_contents(example-project/vendor/solspace/craft3-freeform/src/Services/../Resources/js/cp/fields/flatpickr.js): failed to open stream: No such file or directory

I believe the correct path should be example-project/vendor/solspace/craft3-freeform/src/Resources/js/cp/fields/flatpickr.js

This error happens on both local and staging environments, and only when a form is using a Date field with the "Use the Freeform datepicker for this field?" option checked.

Thanks for your help!

Minor issue: Blank line in Formatting Template dropdown

When I click the Formatting Template dropdown in the Form Settings sidebar, I noticed there's a blank item under "Custom Templates":

screen shot 2018-04-08 at 3 38 00 pm

When I select the blank item, the form is rendered like this:

screen shot 2018-04-08 at 3 39 06 pm

This is on a local installation of Craft 3.0.0-RC12 with Freeform Lite 2.0.0-beta.15. The other file in my freeform_formatting folder alongside my default.twig template (currently used for rendering all forms) is .DS_Store (a Mac system file)... could it be picked up as a template?

Column not found: 1054 Unknown column 'fileCount'

Upgrading from Craft CMS 2.6.3012 / Freeform Pro 1.8.6 to Craft CMS 3.0.0-RC15.

I'm trying to install Freeform Lite from the Plugin store, composer dependencies install correctly, but database update fails.

Database Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'fileCount' in 'field list'
The SQL being executed was: SELECT id, type, notificationId, value, values, placeholder, options, checked, fileKinds, rows, maxFileSizeKB, fileCount, additionalProperties, assetSourceId
FROM craft_freeform_fields

Migration: Solspace\Freeform\migrations\m180120_140521_CraftUpgrade

Output:

> add column formTemplateId int unsigned to table {{%freeform_forms}} ... done (time: 0.101s)
> drop foreign key craft_freeform_crm_fields_integrationId_fk from table {{%freeform_crm_fields}} ... done (time: 0.294s)
> drop foreign key craft_freeform_export_profiles_formId_fk from table {{%freeform_export_profiles}} ... done (time: 0.124s)
> drop foreign key craft_freeform_export_settings_userId_fk from table {{%freeform_export_settings}} ... done (time: 0.201s)
> drop foreign key craft_freeform_fields_notificationId_fk from table {{%freeform_fields}} ... done (time: 0.190s)
> drop foreign key craft_freeform_mailing_list_fields_mailingListId_fk from table {{%freeform_mailing_list_fields}} ... done (time: 0.201s)
> drop foreign key craft_freeform_mailing_lists_integrationId_fk from table {{%freeform_mailing_lists}} ... done (time: 0.192s)
> drop foreign key craft_freeform_submissions_id_fk from table {{%freeform_submissions}} ... done (time: 0.191s)
> drop foreign key craft_freeform_submissions_statusId_fk from table {{%freeform_submissions}} ... done (time: 0.179s)
> drop foreign key craft_freeform_submissions_formId_fk from table {{%freeform_submissions}} ... done (time: 0.201s)
> add foreign key crm_fields_integrationId: {{%freeform_crm_fields}} (integrationId) references {{%freeform_integrations}} (id) ... done (time: 0.189s)
> add foreign key mailing_list_fields_mailingListId: {{%freeform_mailing_list_fields}} (mailingListId) references {{%freeform_mailing_lists}} (id) ... done (time: 0.169s)
> add foreign key mailing_lists_integrationId: {{%freeform_mailing_lists}} (integrationId) references {{%freeform_integrations}} (id) ... done (time: 0.189s)
> add foreign key submissions_id_fk: {{%freeform_submissions}} (id) references {{%elements}} (id) ... done (time: 0.191s)
> add foreign key submissions_formId_fk: {{%freeform_submissions}} (formId) references {{%freeform_forms}} (id) ... done (time: 0.241s)
> add foreign key submissions_statusId_fk: {{%freeform_submissions}} (statusId) references {{%freeform_statuses}} (id) ... done (time: 0.307s)
> rename table {{%freeform_export_profiles}} to {{%freeform_export_profiles_backup}} ... done (time: 0.006s)
> rename table {{%freeform_export_settings}} to {{%freeform_export_settings_backup}} ... done (time: 0.005s)
> add column metaProperties text default null after assetSourceId to table {{%freeform_fields}} ... done (time: 0.127s)
Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'fileCount' in 'field list'
The SQL being executed was: SELECT id, type, notificationId, value, values, placeholder, options, checked, fileKinds, rows, maxFileSizeKB, fileCount, additionalProperties, assetSourceId
FROM craft_freeform_fields (/Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/db/Schema.php:664)
#0 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/db/Command.php(1263): yii\db\Schema->convertException(Object(PDOException), 'SELECT id, t...')
#1 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/db/Command.php(1148): yii\db\Command->internalExecute('SELECT id, t...')
#2 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#3 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll()
#4 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/db/Query.php(136): yii\db\Query->all(NULL)
#5 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/solspace/craft3-freeform/src/migrations/m180120_140521_CraftUpgrade.php(142): craft\db\Query->all()
#6 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/db/Migration.php(42): Solspace\Freeform\migrations\m180120_140521_CraftUpgrade->safeUp()
#7 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/db/MigrationManager.php(243): craft\db\Migration->up(true)
#8 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/db/MigrationManager.php(163): craft\db\MigrationManager->migrateUp(Object(Solspace\Freeform\migrations\m180120_140521_CraftUpgrade))
#9 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/services/Updates.php(219): craft\db\MigrationManager->up()
#10 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/controllers/BaseUpdaterController.php(435): craft\services\Updates->runMigrations(Array)
#11 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/controllers/UpdaterController.php(207): craft\controllers\BaseUpdaterController->runMigrations(Array, 'restore-db')
#12 [internal function]: craft\controllers\UpdaterController->actionMigrate()
#13 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#14 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#15 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/web/Controller.php(74): yii\base\Controller->runAction('migrate', Array)
#16 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('migrate', Array)
#17 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/web/Application.php(237): yii\base\Module->runAction('updater/migrate', Array)
#18 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/web/Application.php(546): craft\web\Application->runAction('updater/migrate')
#19 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/craftcms/cms/src/web/Application.php(191): craft\web\Application->_processUpdateLogic(Object(craft\web\Request))
#20 /Users/joshuamartin/Documents/Websites/vanilla-craft3/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#21 /Users/joshuamartin/Documents/Websites/vanilla-craft3/web/index.php(21): yii\base\Application->run()
#22 {main}

Possible to send a form without CRAFT_CSRF_TOKEN?

Hi,

I got a problem trying to send data to the form-action without using the CRAFT_CSRF_TOKEN. I want it to work without the token-verification.
I see that Controllers/ApiController.php has protected $allowAnonymous = true; in it, so it should be possible workaround the token-check would it?
Can it be done, and so how is this possible?

Dutch translations not coming through

So the Dutch translation files have been added, but they're not actually being applied.

afbeelding

As you can see in the screenshot, the sidebar is Dutch, but nothing from the plugin is in Dutch.

Textarea encoding issue

Hi.

I have an issue with the textarea field. Basically, I use the plugin to allow my client to edit submissions and add notes in the CP. We are writing in french, so special characters are really important.

It seems there's an encoding bug with the textarea field. If, for example, I write:
Test d'un texte

It will save like this and show like this in the edit submission page:
Test d&amp;#039;un texte

This issue doesn't seem to appear with a normal text field. Is there a way for me to fix this?

Thank you.

Error when uninstalling Freeform Lite

I upgraded Freeform Lite today (which was previously working) and noticed the issue mentioned here: (#8).

When I went to uninstall Freeform from Settings > Plugins so that I could work with the users, I got the following error:

Database Exception – yii\db\Exception
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'craft3.freeform_unfinalized_files' doesn't exist
The SQL being executed was: SELECT assetId
FROM freeform_unfinalized_files
WHERE dateCreated < '2018-01-30 05:55:45'
Error Info: Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'craft3.freeform_unfinalized_files' doesn't exist
)

Caused by: PDOException
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'craft3.freeform_unfinalized_files' doesn't exist

Alternate Success Markup docs incorrect for 3.10

Describe the bug or issue you're experiencing
In 3.10, the method for calling alternate success message (AJAX) changed according to the docs. I switched my code to the new method and it doesn’t work. This is using the “existing div” instructions from the docs.

Steps to reproduce

  1. Create form, turn on AJAX
  2. Enter 3.10 code into template using “Existing Div” instructions from this page: https://docs.solspace.com/craft/freeform/v3/guides/ajax-return-loads-success.html#alternate-success-markup-from-a-template-or-existing-div-after-ajax-submit

Expected behavior
The suggested 3.9 code still works in 3.10, but the new suggested code for 3.10 from the docs does not work.

Craft & Plugin Info (please complete the following information):

  • Craft Version: 3.5.17.1
  • Freeform Version: 3.10.0
  • Freeform Edition: Pro Trial
  • Fresh Install or Upgrade: Upgrade

Additional context

PaymentRecord relations with Submission

Hi!

Seems like a bug: ActiveRecord PaymentRecord has getSubmission function with relation to Submission. The first argument passed is {{%freeform_submissions}}. According to Yii documentation, the first argument should be the class name.

I'm trying to get payments with related submissions in a custom controller:

$payments = PaymentRecord::find()
            ->with('submission')
            ->orderBy('id DESC');

and getting this error:
Class '{{%freeform_submissions}}' not found

https://github.com/solspace/craft3-freeform/blob/master/src/Records/Pro/Payments/PaymentRecord.php#L64

Steps to reproduce

  1. Trying to get Payments with Submissions

Expected behavior
Get payments and related submissions

Craft & Plugin Info (please complete the following information):

  • Craft Version: 3.5.17
  • Freeform Version: 3.9.10
  • Freeform Edition: PRO
  • Fresh Install or Upgrade: Fresh

Invalid argument supplied for foreach() in FileUploadField

I'm having an issue uploading a file. The field is not required, nor does it have a maximum file size or count limit. The error occurs with any of the allowed file types.

Invalid argument supplied for foreach() at line 133
/craft3-freeform/src/Library/Composer/Components/Fields/FileUploadField.php

Email templates can't be deleted in Freeform Lite 2.0.0-beta.13

When I want to delete an email notification template in Freeform Lite 2.0.0-beta.13, it's deleted just as expected, but when I click on the "Email Notifications" tab at a later time, the template suddenly shows up again (even though it should be deleted).

It's not a big issue per se, but I just wanted to let you know anyways.

French translation

I would like to translate (at least) error messages for the form validation. I used the recommended way for Craft 3 to do it, by creation a folder craft/translations/fr and by adding the "plugin-handle.php" (so craft3-freeform.php) but it seems that is not working. Am I doing it wrong?

Note: I also tried to add directly in vendors/solspace/craft3-freeform/translations/fr.php", no success there either.

Spam protection does not work

Hi.

The spam filter does not work, every email sent with spam protection ON is identified as spam. How come?
No errors or debug info about this issue.

Craft 3
Freeform 2.0.0-beta.12

Form submit creates no submission

Everything in the CP section works fine: Creating a form ect. All good.
But integrated in a article we have following problem:
If the form is correctly filled and the user clicks submit, a post is made on the same page and the user just sees his filled out form again. Also, no submission are seen in the CP.
Example: http://www.friday-magazine.ch/advertorials/freeform-test?token=GTbzQ-hhCw2SlV7BSIz5N1VT_VgS_RVT

Template integration:
{% if block.freeForm|length > 0 %}

{{ craft.freeform.form(block.freeForm.handle).render() }}
{% endif %}

We disabled spam protection and tried out changing freeform settings in the CP

Error installing with composer

Hi
When I try to access the craft admin after installling the plugin via the composer I get following error:
Craft CMS 3 RC 7 , Freeform beta 3 (and 2), Mysql 5.7.17

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my7cych01v6ycydg.craft_freeform_unfinalized_files' doesn't exist
The SQL being executed was: SELECT assetId
FROM craft_freeform_unfinalized_files
WHERE dateCreated < '2018-01-29 16:08:41'

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my7cych01v6ycydg.craft_freeform_unfinalized_files' doesn't exist in C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Command.php:1067
Stack trace:
#0 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Command.php(1067): PDOStatement->execute()
#1 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Command.php(429): yii\db\Command->queryInternal('fetchAll', 7)
#2 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Query.php(292): yii\db\Command->queryColumn()
#3 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\db\Query.php(168): yii\db\Query->column(NULL)
#4 C:\xampp\htdocs\friday-magazine\vendor\solspace\craft3-freeform\src\Services\FilesService.php(152): craft\db\Query->column()
#5 C:\xampp\htdocs\friday-magazine\vendor\solspace\craft3-freeform\src\Freeform.php(263): Solspace\Freeform\Services\FilesService->cleanUpUnfinalizedAssets()
#6 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\BaseObject.php(108): Solspace\Freeform\Freeform->init()
#7 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\Module.php(158): yii\base\BaseObject->__construct(Array)
#8 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\base\Plugin.php(88): yii\base\Module->__construct('freeform', Object(craft\web\Application), Array)
#9 [internal function]: craft\base\Plugin->__construct('freeform', Object(craft\web\Application), Array)
#10 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(381): ReflectionClass->newInstanceArgs(Array)
#11 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('Solspace\Freefo...', Array, Array)
#12 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('Solspace\Freefo...', Array, Array)
#13 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\services\Plugins.php(777): yii\BaseYii::createObject(Array, Array)
#14 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\services\Plugins.php(196): craft\services\Plugins->createPlugin('freeform', Array)
#15 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\base\ApplicationTrait.php(1167): craft\services\Plugins->loadPlugins()
#16 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\web\Application.php(95): craft\web\Application->_init()
#17 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\BaseObject.php(108): craft\web\Application->init()
#18 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\Application.php(206): yii\base\BaseObject->__construct(Array)
#19 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\web\Application.php(83): yii\base\Application->__construct(Array)
#20 [internal function]: craft\web\Application->__construct(Array)
#21 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(381): ReflectionClass->newInstanceArgs(Array)
#22 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('craft\web\Appli...', Array, Array)
#23 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('craft\web\Appli...', Array, Array)
#24 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\bootstrap\bootstrap.php(243): yii\BaseYii::createObject(Array)
#25 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\bootstrap\web.php(42): require('C:\xampp\htdocs...')
#26 C:\xampp\htdocs\friday-magazine\web\index.php(41): require('C:\xampp\htdocs...')
#27 {main}

Next yii\db\Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my7cych01v6ycydg.craft_freeform_unfinalized_files' doesn't exist
The SQL being executed was: SELECT assetId
FROM craft_freeform_unfinalized_files
WHERE dateCreated < '2018-01-29 16:08:41' in C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Schema.php:595
Stack trace:
#0 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Command.php(1082): yii\db\Schema->convertException(Object(PDOException), 'SELECT `assetId...')
#1 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Command.php(429): yii\db\Command->queryInternal('fetchAll', 7)
#2 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\db\Query.php(292): yii\db\Command->queryColumn()
#3 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\db\Query.php(168): yii\db\Query->column(NULL)
#4 C:\xampp\htdocs\friday-magazine\vendor\solspace\craft3-freeform\src\Services\FilesService.php(152): craft\db\Query->column()
#5 C:\xampp\htdocs\friday-magazine\vendor\solspace\craft3-freeform\src\Freeform.php(263): Solspace\Freeform\Services\FilesService->cleanUpUnfinalizedAssets()
#6 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\BaseObject.php(108): Solspace\Freeform\Freeform->init()
#7 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\Module.php(158): yii\base\BaseObject->__construct(Array)
#8 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\base\Plugin.php(88): yii\base\Module->__construct('freeform', Object(craft\web\Application), Array)
#9 [internal function]: craft\base\Plugin->__construct('freeform', Object(craft\web\Application), Array)
#10 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(381): ReflectionClass->newInstanceArgs(Array)
#11 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('Solspace\Freefo...', Array, Array)
#12 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('Solspace\Freefo...', Array, Array)
#13 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\services\Plugins.php(777): yii\BaseYii::createObject(Array, Array)
#14 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\services\Plugins.php(196): craft\services\Plugins->createPlugin('freeform', Array)
#15 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\base\ApplicationTrait.php(1167): craft\services\Plugins->loadPlugins()
#16 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\web\Application.php(95): craft\web\Application->_init()
#17 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\BaseObject.php(108): craft\web\Application->init()
#18 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\base\Application.php(206): yii\base\BaseObject->__construct(Array)
#19 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\src\web\Application.php(83): yii\base\Application->__construct(Array)
#20 [internal function]: craft\web\Application->__construct(Array)
#21 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(381): ReflectionClass->newInstanceArgs(Array)
#22 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('craft\web\Appli...', Array, Array)
#23 C:\xampp\htdocs\friday-magazine\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('craft\web\Appli...', Array, Array)
#24 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\bootstrap\bootstrap.php(243): yii\BaseYii::createObject(Array)
#25 C:\xampp\htdocs\friday-magazine\vendor\craftcms\cms\bootstrap\web.php(42): require('C:\xampp\htdocs...')
#26 C:\xampp\htdocs\friday-magazine\web\index.php(41): require('C:\xampp\htdocs...')
#27 {main}
Additional Information:
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'my7cych01v6ycydg.craft_freeform_unfinalized_files' doesn't exist
)

Uninstalling Pro

I installed pro, tried adding Mailchimp integration. Was not working for me and decided not to wrangle at this time so uninstalled and removed pro. Getting an error now when going to my form saying. Not sure how common or supported adding pro and then removing it may be, but if it should be supported seems like something is missing in cleanup.

    Internal Server Error
    Class 'Solspace\FreeformPro\Integrations\MailingLists\MailChimp' not found

User permission for "Manage All Submissions" not being respected

Hello,

We have a non-admin user who will be able to create forms and should be able to access all submissions. Their user group settings are as follows:
image

We are assuming that the "Manage All Submissions" permission should enable them to access all submissions, without having to select each form individually. It seems odd that they'd be able to have full access but then we (admins) need to give them permission to view submissions for each form they create.

This results in them being able to export a CSV for the data, but not click on the submission (no link on the title):
image

edit:
Craft 3 RC17.1
Freeform Lite 2.0.0-beta.13

Thanks,
Luke

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'dateCreated' in order clause is ambiguous

This error happens when accessing the submissions, Craft shows an "unknown error has occured"

Stacktrace

2018-01-24 21:29:27 [127.0.0.1][1][-][error][yii\db\IntegrityException] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'dateCreated' in order clause is ambiguous in /Users/rias/Code/rias/vendor/yiisoft/yii2/db/Command.php:1067
Stack trace:
#0 /Users/rias/Code/rias/vendor/yiisoft/yii2/db/Command.php(1067): PDOStatement->execute()
#1 /Users/rias/Code/rias/vendor/yiisoft/yii2/db/Command.php(386): yii\db\Command->queryInternal('fetchAll', NULL)
#2 /Users/rias/Code/rias/vendor/yiisoft/yii2/db/Query.php(217): yii\db\Command->queryAll()
#3 /Users/rias/Code/rias/vendor/craftcms/cms/src/db/Query.php(118): yii\db\Query->all(NULL)
#4 /Users/rias/Code/rias/vendor/craftcms/cms/src/elements/db/ElementQuery.php(1003): craft\db\Query->all(NULL)
#5 /Users/rias/Code/rias/vendor/craftcms/cms/src/base/Element.php(442): craft\elements\db\ElementQuery->all()
#6 /Users/rias/Code/rias/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(391): craft\base\Element::indexHtml(Object(Solspace\Freeform\Elements\Db\SubmissionQuery), Array, Array, '*', 'index', true, true)
#7 /Users/rias/Code/rias/vendor/craftcms/cms/src/controllers/ElementIndexesController.php(119): craft\controllers\ElementIndexesController->_elementResponseData(true, true)
#8 [internal function]: craft\controllers\ElementIndexesController->actionGetElements()
#9 /Users/rias/Code/rias/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#10 /Users/rias/Code/rias/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#11 /Users/rias/Code/rias/vendor/craftcms/cms/src/web/Controller.php(80): yii\base\Controller->runAction('get-elements', Array)
#12 /Users/rias/Code/rias/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('get-elements', Array)
#13 /Users/rias/Code/rias/vendor/craftcms/cms/src/web/Application.php(251): yii\base\Module->runAction('element-indexes...', Array)
#14 /Users/rias/Code/rias/vendor/craftcms/cms/src/web/Application.php(453): craft\web\Application->runAction('element-indexes...', Array)
#15 /Users/rias/Code/rias/vendor/craftcms/cms/src/web/Application.php(211): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#16 /Users/rias/Code/rias/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#17 /Users/rias/Code/rias/web/index.php(21): yii\base\Application->run()
#18 /Users/rias/.composer/vendor/laravel/valet/server.php(133): require('/Users/rias/Cod...')
#19 {main}

Error submitting a form that has been inserted via Ajax

Hi, I'm having trouble with a form that has been loaded from an entry template on to another page using Ajax. If I go to the entry, the form works correctly and is able to be submitted normally. However when loaded on to another page, the form fails to submit. If I try to submit it via Ajax (using code from the example in the docs), the response is {success: false, finished: false, errors: Array(0)}.

Is this something to do with the CRAFT_CSRF_TOKEN field or another unique identifier inserted by Freeform? I'm guessing something is trying to prevent spam or malicious use by confirming the form is being submitting from the correct page. If so, is there a way to override this? Perhaps I can request the entry containing the form with a URL variable that indicates what page the form will be loaded into, so the token can be adjusted.

Thanks for your help! Happy to provide code examples if needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.