The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Problem when adding a new form + and then to log in - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: Problem when adding a new form + and then to log in (/showthread.php?tid=301)



Problem when adding a new form + and then to log in - Nikita007 - Sep 24th, 2009

Hello,

I tried to add a new form and everything it OK until step 6, but when I clicked on FORM LIST, I get the following error:
---------------
Error:
Failed query in _ft_cache_form_stats, line 1605
Debug:

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
---------------

Then when I log in, I have this error message and don't see the form I've just added.

Could you please help?

Many thanks

PS: I've upgraded to the latest version 2.0.0-beta-20090923 and noticed that there is a bug on the version name. When I click on the button "Check for updates", it says "2.0.0-beta-20090923 is an invalid core version!" - on your file you put 2.0.0-beta-20090823 instead of 2.0.0-beta-20090923!


RE: Problem when adding a new form + and then to log in - Ben - Sep 26th, 2009

Hi Nikita,

This is a bug. All database tables should be utf8_general_ci, but I see on my own installation that a few module tables - and more importantly the generated form tables - are latin1_swedish_ci. This can cause that error message you saw (but this is pretty rare, actually - most database configurations won't care). But more importantly, it can cause problems on non-latin based language sites.

Quote:PS: I've upgraded to the latest version 2.0.0-beta-20090923 and noticed that there is a bug on the version name. When I click on the button "Check for updates", it says "2.0.0-beta-20090923 is an invalid core version!" - on your file you put 2.0.0-beta-20090823 instead of 2.0.0-beta-20090923!

Ack! I'll release a fix for both of these things today.

However: it WON'T fix your problem for your existing table, since it's already been created. To fix it, you'll need to manually edit the database table collation. To do this in phpMyAdmin, click on the "structure" icon/link for the table, then on "Operations" in the top nav. Then change the collation to utf8_general_ci.

Sorry for the fuss.

- Ben

P.S. I've reported the bug here: http://bugs.formtools.org/index.php?cmd=view&id=146


RE: Problem when adding a new form + and then to log in - Nikita007 - Sep 26th, 2009

I did it, but I still had the same problem.

Then I saw that "collation" for the new form I added was still "latin1_swedish_ci" and I changed manually the collation of all fields in that table to "utf8_general_ci".

Now I can log in and don't have the error message anymore.

But I noticed that the tables "subs_module_pages, subs_module_swift_mailer_email_template_fields, subs_sessions" are "latin1_swedish_ci". Should I also change them manually to "utf8_general_ci" or can I leave them like it is?

Thanks


RE: Problem when adding a new form + and then to log in - Ben - Sep 26th, 2009

Hi Nikita,

Hmm... fair question. It won't hurt to change them, so perhaps you should. For anyone else reading this, as mentioned, this isn't a problem on all systems, just some like Nikita's. I just released an new core build today that fixes it for the core, but not the modules. I'll fix them separately.

Ben


RE: Problem when adding a new form + and then to log in - Nikita007 - Oct 5th, 2009

Hi Ben,

I changed all tables to "utf8_general_ci".

I tested my form and fill in the form with text with accents and noticed a problem.

For example, if I enter "Anémone" in a field, it only write "An" in the database. It write the letters before the accent and remove all the letters after the accent...

Can you please help?

Many thanks.