Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

Revolution 3.0.0-alpha1: Class 'modMail' not found #224

Closed OlegShchavelev closed 8 months ago

OlegShchavelev commented 4 years ago

Hello

Snippet

{'!FormIt' | snippet : [
'hooks' => 'email,FormItSaveForm',
'formFields' => 'name,email,subject,comment'
'emailFrom' => 'oleg@detali.digital',
'emailTpl' => 'dtls.mail.tpl',
'emailTo' => 'shchavelev@mail.ru',
'emailSubject' => 'Письмо с сайта MODX3'
'successMessage' => 'Сообщение отправлено'
]}

Forms

<div class="col-12">
<form action="" method="post" class="form form--contacts">
<input type="text" class="form__input" name="name" id="name" value="[[!+fi.name]]" placeholder="Your Name">
<input type="text" class="form__input" name="email" id="email" value="[[!+fi.email]]" placeholder="Email">
<input type="text" class="form__input" name="subject" id="subject" value="[[!+fi.subject]]" placeholder="Subject">
<textarea id="comment" name="comment" class="form__textarea" value="[[!+fi.comment]]" placeholder="Type your message..."></textarea>
<input type="submit" class="form__btn" value="Submit">
</form>

Error

Fatal error : Uncaught Error: Class 'modMail' not found in /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit/src/FormIt/Hook/Email.php:181 Stack trace: #0 /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit/src/FormIt/Hook.php(140): Sterc\FormIt\Hook\Email->process(Array) #1 /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit/src/FormIt/Hook.php(106): Sterc\FormIt\Hook->load('email', Array, Array) #2 /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit/src/FormIt/Request.php(401): Sterc\FormIt\Hook->loadMultiple(Array, Array) #3 /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit/src/FormIt/Request.php(344): Sterc\FormIt\Request->runPostHooks() #4 /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit/src/FormIt/Request.php(253): Sterc\FormIt\Request->postProcess() #5 /home/users/9/9017501865/domains/modx.dtls.su/core/cache/includes/elements/modx/revolution/modsnippet/42.include.cache.php(45): Sterc\FormIt\Request->handle(Ar in /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit/src/FormIt/Hook/Email.php on line 181`

Console Log Install

Консоль запущена...
Пробуем установить пакет с подписью: formit-4.2.3-pl
Пакет найден... сейчас идёт подготовка к его установке.
Загрузка рабочего пространства пакета...
Рабочее пространство загружено, сейчас устанавливаем пакет...
modx.modNamespace is deprecated since version 3.0. Replace references to class modx.modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modNamespace is deprecated since version 3.0. Replace references to class modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modNamespace is deprecated since version 3.0. Replace references to class modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modx.modSystemSetting is deprecated since version 3.0. Replace references to class modx.modSystemSetting with MODX\Revolution\modSystemSetting to take advantage of PSR-4 autoloading.
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.recaptcha_public_key )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.recaptcha_private_key )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.recaptcha_use_ssl )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.exclude_contexts )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.form_encryptkey )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.attachment.mediasource )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.attachment.path )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.cleanform.days )
Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => formit.max_chars_textfield )
modx.modCategory is deprecated since version 3.0. Replace references to class modx.modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modCategory is deprecated since version 3.0. Replace references to class modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modCategory is deprecated since version 3.0. Replace references to class modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modChunk is deprecated since version 3.0. Replace references to class modChunk with MODX\Revolution\modChunk to take advantage of PSR-4 autoloading.
modChunk is deprecated since version 3.0. Replace references to class modChunk with MODX\Revolution\modChunk to take advantage of PSR-4 autoloading.
modChunk is deprecated since version 3.0. Replace references to class modChunk with MODX\Revolution\modChunk to take advantage of PSR-4 autoloading.
modSnippet is deprecated since version 3.0. Replace references to class modSnippet with MODX\Revolution\modSnippet to take advantage of PSR-4 autoloading.
modSnippet is deprecated since version 3.0. Replace references to class modSnippet with MODX\Revolution\modSnippet to take advantage of PSR-4 autoloading.
modSnippet is deprecated since version 3.0. Replace references to class modSnippet with MODX\Revolution\modSnippet to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 20 [event] => OnManagerPageBeforeRender )
Attempting to preserve files at /home/users/9/9017501865/domains/modx.dtls.su/assets/components/formit into archive /home/users/9/9017501865/domains/modx.dtls.su/core/packages/formit-4.2.3-pl/modCategory/6427ddfa00783e14303dfaafad5098e2.0.preserved.zip
Attempting to preserve files at /home/users/9/9017501865/domains/modx.dtls.su/core/components/formit into archive /home/users/9/9017501865/domains/modx.dtls.su/core/packages/formit-4.2.3-pl/modCategory/6427ddfa00783e14303dfaafad5098e2.1.preserved.zip
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
Could not find legacy class FormItForm after converting to MODX\Revolution\FormItForm
modAccessPolicyTemplate is deprecated since version 3.0. Replace references to class modAccessPolicyTemplate with MODX\Revolution\modAccessPolicyTemplate to take advantage of PSR-4 autoloading.
modAccessPolicyTemplate is deprecated since version 3.0. Replace references to class modAccessPolicyTemplate with MODX\Revolution\modAccessPolicyTemplate to take advantage of PSR-4 autoloading.
modAccessPermission is deprecated since version 3.0. Replace references to class modAccessPermission with MODX\Revolution\modAccessPermission to take advantage of PSR-4 autoloading.
modAccessPermission is deprecated since version 3.0. Replace references to class modAccessPermission with MODX\Revolution\modAccessPermission to take advantage of PSR-4 autoloading.
modAccessPolicy is deprecated since version 3.0. Replace references to class modAccessPolicy with MODX\Revolution\modAccessPolicy to take advantage of PSR-4 autoloading.
modAccessPolicy is deprecated since version 3.0. Replace references to class modAccessPolicy with MODX\Revolution\modAccessPolicy to take advantage of PSR-4 autoloading.
transport.modTransportPackage is deprecated since version 3.0. Replace references to class transport.modTransportPackage with MODX\Revolution\Transport\modTransportPackage to take advantage of PSR-4 autoloading.
Could not find legacy class modTransportPackage after converting to MODX\Revolution\modTransportPackage
Could not load class: modTransportPackage from mysql.modtransportpackage
Could not get table name for class:
transport.modTransportPackage is deprecated since version 3.0. Replace references to class transport.modTransportPackage with MODX\Revolution\Transport\modTransportPackage to take advantage of PSR-4 autoloading.
transport.modTransportPackage is deprecated since version 3.0. Replace references to class transport.modTransportPackage with MODX\Revolution\Transport\modTransportPackage to take advantage of PSR-4 autoloading.
Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS `latestPackage` WHERE `latestPackage`.`package_name` = `modTransp' at line 3 )
You can setup a cronjob for automatically cleaning up of old forms, please use the following path: /home/users/9/9017501865/domains/modx.dtls.su/assets/components/formit/cronjob/cron.php
modx.modMenu is deprecated since version 3.0. Replace references to class modx.modMenu with MODX\Revolution\modMenu to take advantage of PSR-4 autoloading.
modMenu is deprecated since version 3.0. Replace references to class modMenu with MODX\Revolution\modMenu to take advantage of PSR-4 autoloading.
modMenu is deprecated since version 3.0. Replace references to class modMenu with MODX\Revolution\modMenu to take advantage of PSR-4 autoloading.
Успешно установлен пакет formit-4.2.3-pl
JoshuaLuckers commented 4 years ago

Alpha 2 contains a class alias for modMail