Sterc / FormIt

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

Modx 3 alpha 3 Could not get table name for class #256

Closed Ibochkarev closed 2 years ago

Ibochkarev commented 3 years ago

Bug report

Summary

Could not get table name for class - Could not get table name for class

Step to reproduce

Install the add-on on modx 3 alpha 3

Observed behavior

Attempting to install package with signature: formit-4.2.6-pl
Package found...now preparing to install.
Grabbing package workspace...
Workspace environment initiated, now installing package...
Created table `modx_formit_forms` SQL: CREATE TABLE `modx_formit_forms` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT, `form` VARCHAR(255) NOT NULL DEFAULT '', `context_key` VARCHAR(100) NOT NULL DEFAULT '', `values` TEXT NOT NULL, `ip` VARCHAR(100) NOT NULL DEFAULT '', `date` INT(11) NOT NULL DEFAULT '0', `encrypted` TINYINT(1) NOT NULL DEFAULT '0', `encryption_type` INT(2) NOT NULL DEFAULT '1', `hash` VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`)) ENGINE=InnoDB
Could not load class: modTransportPackage from mysql.modtransportpackage
Could not get table name for class:
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 MySQL 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: /Users/bochkarev/Desktop/modx-2.8.3-pl 3/assets/components/formit/cronjob/cron.php
Successfully installed package formit-4.2.6-pl

Environment

Modx 3 alpha 3

Jako commented 3 years ago

This can be fixed with https://github.com/Sterc/FormIt/pull/247

ilyautkin commented 2 years ago

Fixed in 4.2.7