1
JasonX
Problem with russian language
  • 2007/4/1 7:12

  • JasonX

  • Just popping in

  • Posts: 6

  • Since: 2007/3/31


Now one post in more module unavailable to save. The message/article is empty, when i press save it ...

For example lets take a look at smartsection module:

When i enabling php debugging i getting this:

The article has been successfully modified.

Notice: unserialize() [function.unserialize]: Error at offset 41 of 44 bytes in file /kernel/configitem.php line 101
All errors (8) queries (16) blocks (0) extra (0) timers (3) Errors
Notice: unserialize() [function.unserialize]: Error at offset 41 of 44 bytes in file /kernel/configitem.php line 101
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Queries
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data FROM xoops_session WHERE sess_id = 'd5a7ae61bd373b6915b6d81d7452717b'
SELECT * FROM xoops_users WHERE uid=1
SELECT * FROM xoops_modules WHERE dirname = 'smartsection'
SELECT * FROM xoops_config WHERE (conf_modid = '20') ORDER BY conf_order ASC
SELECT * FROM xoops_smartsection_items WHERE itemid=1
SELECT * FROM xoops_smartsection_categories
SELECT * FROM xoops_group_permission WHERE (gperm_modid = '20')
SELECT * FROM xoops_group_permission WHERE (gperm_name = 'item_read' AND gperm_itemid = '1' AND gperm_modid = '20')
SELECT * FROM xoops_smiles
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '4') ORDER BY conf_order ASC
UPDATE xoops_smartsection_items SET categoryid = 1, title = 'ôûâà', summary = 'фыва éöôà', display_summary = 1, body = '', uid = 1, datesub = 1175361600, `status` = 2, image = 'blank.png', counter = 0, weight = 0, dohtml = 1, dosmiley = 1, doxcode = 1, doimage = 1, dobr = 1, cancomment = 1, comments = 0, notifypub = 1, meta_keywords = 'DK20', meta_description = 'DK20', short_url = '1092-1099-1074-1072' WHERE itemid = 1
DELETE FROM xoops_group_permission WHERE (gperm_modid = '20' AND gperm_name = 'item_read' AND gperm_itemid = '1')
INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 2, 1, 20, 'item_read')
INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 3, 1, 20, 'item_read')
SELECT f.*, s.tpl_source FROM xoops_tplfile f LEFT JOIN xoops_tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_redirect.html') ORDER BY tpl_refid
Total: 16 queries
Blocks
Total: 0 blocks
Extra
Timers
XOOPS took 0.343 seconds to load.
XOOPS Boot took 0.094 seconds to load.
Module init took 0.249 seconds to load.


The problem dissappears when i turn off russian language in general settings of the site. But this is unacceptable for me.

Also, when i save my article with english in general settings there are some errors:

All errors (8) queries (16) blocks (0) extra (0) timers (3) Errors
Notice: unserialize() [function.unserialize]: Error at offset 41 of 44 bytes in file /kernel/configitem.php line 101
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Warning: Invalid argument supplied for foreach() in file /class/module.textsanitizer.php line 371
Queries
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data FROM xoops_session WHERE sess_id = 'd5a7ae61bd373b6915b6d81d7452717b'
SELECT * FROM xoops_users WHERE uid=1
SELECT * FROM xoops_modules WHERE dirname = 'smartsection'
SELECT * FROM xoops_config WHERE (conf_modid = '20') ORDER BY conf_order ASC
SELECT * FROM xoops_smartsection_items WHERE itemid=2
SELECT * FROM xoops_smartsection_categories
SELECT * FROM xoops_group_permission WHERE (gperm_modid = '20')
SELECT * FROM xoops_group_permission WHERE (gperm_name = 'item_read' AND gperm_itemid = '2' AND gperm_modid = '20')
SELECT * FROM xoops_smiles
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '4') ORDER BY conf_order ASC
UPDATE xoops_smartsection_items SET categoryid = 1, title = 'фыва', summary = 'фыва', display_summary = 1, body = '', uid = 1, datesub = 1175361600, `status` = 2, image = 'blank.png', counter = 0, weight = 0, dohtml = 1, dosmiley = 1, doxcode = 1, doimage = 1, dobr = 1, cancomment = 1, comments = 0, notifypub = 1, meta_keywords = 'DK20', meta_description = 'DK20', short_url = '1092-1099-1074-1072' WHERE itemid = 2
DELETE FROM xoops_group_permission WHERE (gperm_modid = '20' AND gperm_name = 'item_read' AND gperm_itemid = '2')
INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 2, 2, 20, 'item_read')
INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 3, 2, 20, 'item_read')
SELECT f.*, s.tpl_source FROM xoops_tplfile f LEFT JOIN xoops_tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_redirect.html') ORDER BY tpl_refid
Total: 16 queries
Blocks
Total: 0 blocks
Extra
Timers
XOOPS took 0.336 seconds to load.
XOOPS Boot took 0.096 seconds to load.
Module init took 0.240 seconds to load.

And one more thing that can help me to explain my problem :

When i try to save russian text with russian language in general settings it save empty article. But when i try to save text with english in genereal settings, for example фыва it saves to me фыва

How does it fix ?

Login

Who's Online

363 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 363


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits