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



Form Tools
Problem when displaying titled non-Latin characters [solved] - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Problem when displaying titled non-Latin characters [solved] (/showthread.php?tid=865)



Problem when displaying titled non-Latin characters [solved] - Mike - Sep 27th, 2010

First of all, I want to thank Benjamin for this wonderful system. Smile

I have installed the FT on two different servers. On both I use Cyrillic characters in the names of forms:
[attachment=69]

On one of them when viewing and editing forms, form name is displayed incorrectly:
[attachment=70]
[attachment=71]

It is obvious that the observed problem is connected with the function smarty_modifier_upper in /global/smarty/plugins/modifier.upper.php

I don't know what the difference, but on another server, this problem does not appear (or rather, the function does not work, but does not spoil the name):
[attachment=72]

Solving the problem is quite simple.
Replace:
PHP Code:
function smarty_modifier_upper($string)
{
    return 
strtoupper($string);

at:
PHP Code:
function smarty_modifier_upper($string)
{
    return 
mb_strtoupper($string'UTF-8');

[attachment=73]

Is it possible to include this solving in future releases?


RE: Problem when displaying titled non-Latin characters [solved] - Ben - Oct 1st, 2010

Hi Mike,

Nice, thanks for the bug report + fix! And I'm glad the script is coming in handy. Smile

I'll include your fix in the next release.

- Ben


RE: Problem when displaying titled non-Latin characters [solved] - Ben - Oct 31st, 2010

This is included in the first 2.0.5 beta, which will be out soon.

Thanks again!

Ben