FormBuilder and LISE error
Posted: Fri Jun 23, 2017 1:33 pm
I'm trying to pass content from FormBuilder to LISE. I'm using a UDT that I used in CMS Made Simple 1.x, but on CMS Made Simple 2.2.1
the UDT is this
The fields name are the same.
I receive this error on posting on FB:
Fulltrace:
How can I solve this?
----------------------------------------------
Cms Version: 2.2.1
Installed Modules:
AdminSearch: 1.0.3
CMSContentManager: 1.1.5
CMSMailer: 6.2.14
CmsJobManager: 0.1
DesignManager: 1.1.2
FileManager: 1.6.3
FilePicker: 1.0.alpha
FormBrowser: 0.5
FormBuilder: 0.8.1.6
LISE: 1.2.3
LISEUsato: 1.2.3
MenuManager: 1.50.3
MicroTiny: 2.1.1
ModuleManager: 2.1
Navigator: 1.0.6
News: 2.51.1
Search: 1.51.1
Config Information:
php_memory_limit:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Rome
permissive_smarty: false
Php Information:
phpversion: 5.4.45
md5_function: On (Vero)
json_function: On (Vero)
gd_version: 2
tempnam_function: On (Vero)
magic_quotes_runtime: Off (Falso)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: Nessuna differenza di tempo trovata
test_db_timedifference: Nessuna differenza di tempo trovata
create_dir_and_file: 1
memory_limit: 256M
max_execution_time: 300
register_globals: Off (Falso)
output_buffering: 4096
disable_functions:
open_basedir: /var/www/vhosts/hairewellness.shop/:/tmp/
test_remote_url: Successo
file_uploads: On (Vero)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: Nessun controllo perchè open basedir è attivo
session_use_cookies: On (Vero)
xml_function: On (Vero)
xmlreader_class: On (Vero)
check_ini_set: On (Vero)
curl: On
Performance Information:
allow_browser_cache: On (Vero)
browser_cache_expiry: 60
php_opcache: Off (Falso)
smarty_cache: Off (Falso)
smarty_compilecheck: Off (Falso)
auto_clear_cache_age: On (Vero)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-573.18.1.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.73
Server Db Grants: Ho trovato una dichiarazione "GRANT ALL" che sembra essere adatta
Permission Information:
tmp: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp (0755)
tmp_cache: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp/cache (0755)
templates_c: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp/templates_c (0755)
modules: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules (0755)
uploads: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/uploads (0775)
Maschera di creazione file (umask): /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp/cache (0755)
config_file: 0444
----------------------------------------------
the UDT is this
Code: Select all
/**
* Load wanted ListItExtended instance, where you wan't to save items.
* If instance can't be loaded, it will silently return.
*/
$mod = cmsms()->GetModuleInstance('LISEUsato'); //<-- this needs to change to the real instance name, probably LISE<instance_name>...
if(!is_object($mod))
return;
/**
* Intitate empty item using API.
*/
$obj = $mod->InitiateItem();
/**
* Fill previously initiated ListIt2Item object with values from form submission.
* NOTICE: All params that are not known by ListIt2Item object are going to ignored.
*/
$obj->title = $params['email'];
foreach($params as $key => $value) {
if(isset($obj->fielddefs[$key]))
$obj->$key = $value;
}
/**
* Save this object to database by using ListItExtended API.
*/
$mod->SaveItem($obj);
I receive this error on posting on FB:
Code: Select all
ERROR: at line 188 in file /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules/LISE/lib/class.LISEItemOperations.php:
Message:
00002: Discrete LISE Database error: 0 - - Query: SELECT COUNT(alias) as alias FROM cms_module_liseusato_item WHERE alias LIKE "%" LIMIT 1! @ /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules/LISE/lib/class.LISEItemOperations.php (188)
Code: Select all
#0 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules/LISE/LISE.module.php(632): LISEItemOperations::Save(Object(LISEUsato), Object(LISEItem))
#1 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/lib/classes/class.usertagoperations.inc.php(304) : eval()'d code(27): LISE->SaveItem(Object(LISEItem))
#2 [internal function]: cms_user_tag_3(Array, Object(Smarty_CMS))
#3 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/lib/classes/class.usertagoperations.inc.php(284): call_user_func_array('cms_user_tag_3', Array)
#4 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules/FormBuilder/classes/DispositionUserTag.class.php(66): UserTagOperations->CallUserTag('3', Array)
#5 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules/FormBuilder/classes/Form.class.php(670): fbDispositionUserTag->DisposeForm('1')
#6 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules/FormBuilder/action.default.php(127): fbForm->Dispose('1')
#7 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/lib/classes/class.CMSModule.php(1415): include('/var/www/vhosts...')
#8 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules/FormBuilder/FormBuilder.module.php(182): CMSModule->DoAction('default', 'cntnt01', Array, '1')
#9 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/lib/classes/class.CMSModule.php(1489): FormBuilder->DoAction('default', 'cntnt01', Array, '1')
#10 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/lib/page.functions.php(543): CMSModule->DoActionBase('default', 'cntnt01', Array, '1', Object(Smarty_CMS))
#11 /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/index.php(134): preprocess_mact('1')
#12 {main}
----------------------------------------------
Cms Version: 2.2.1
Installed Modules:
AdminSearch: 1.0.3
CMSContentManager: 1.1.5
CMSMailer: 6.2.14
CmsJobManager: 0.1
DesignManager: 1.1.2
FileManager: 1.6.3
FilePicker: 1.0.alpha
FormBrowser: 0.5
FormBuilder: 0.8.1.6
LISE: 1.2.3
LISEUsato: 1.2.3
MenuManager: 1.50.3
MicroTiny: 2.1.1
ModuleManager: 2.1
Navigator: 1.0.6
News: 2.51.1
Search: 1.51.1
Config Information:
php_memory_limit:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Rome
permissive_smarty: false
Php Information:
phpversion: 5.4.45
md5_function: On (Vero)
json_function: On (Vero)
gd_version: 2
tempnam_function: On (Vero)
magic_quotes_runtime: Off (Falso)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: Nessuna differenza di tempo trovata
test_db_timedifference: Nessuna differenza di tempo trovata
create_dir_and_file: 1
memory_limit: 256M
max_execution_time: 300
register_globals: Off (Falso)
output_buffering: 4096
disable_functions:
open_basedir: /var/www/vhosts/hairewellness.shop/:/tmp/
test_remote_url: Successo
file_uploads: On (Vero)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: Nessun controllo perchè open basedir è attivo
session_use_cookies: On (Vero)
xml_function: On (Vero)
xmlreader_class: On (Vero)
check_ini_set: On (Vero)
curl: On
Performance Information:
allow_browser_cache: On (Vero)
browser_cache_expiry: 60
php_opcache: Off (Falso)
smarty_cache: Off (Falso)
smarty_compilecheck: Off (Falso)
auto_clear_cache_age: On (Vero)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-573.18.1.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.73
Server Db Grants: Ho trovato una dichiarazione "GRANT ALL" che sembra essere adatta
Permission Information:
tmp: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp (0755)
tmp_cache: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp/cache (0755)
templates_c: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp/templates_c (0755)
modules: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/modules (0755)
uploads: /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/uploads (0775)
Maschera di creazione file (umask): /var/www/vhosts/hairewellness.shop/httpdocs/registrazione/tmp/cache (0755)
config_file: 0444
----------------------------------------------