[Mahara-contributors] [Bug 1613503] A patch has been submitted for review
Patch for "master" branch: https://reviews.mahara.org/6844 -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613503 Title: Can not add groups via CSV when shortname is not relied on displayname Status in Mahara: New Bug description: version: master(16.10) I got the following message when adding groups via CSV Mahara: Site unavailable Something in the way you're interacting with Mahara is causing an error. Details if any, follow: group_create: The supplied shortname 'gc' is already taken. This shortname 'groupc' is available. The content of my CSV file: shortname,displayname,roles "gc","Group C","standard" I have to change the shortname to 'groupc' to make it work. Is it the new behaviour? To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613503/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613503] Re: Can not add groups via CSV when shortname is not relied on displayname
It works fine now. Thank for your explanation. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613503 Title: Can not add groups via CSV when shortname is not relied on displayname Status in Mahara: New Bug description: version: master(16.10) I got the following message when adding groups via CSV Mahara: Site unavailable Something in the way you're interacting with Mahara is causing an error. Details if any, follow: group_create: The supplied shortname 'gc' is already taken. This shortname 'groupc' is available. The content of my CSV file: shortname,displayname,roles "gc","Group C","standard" I have to change the shortname to 'groupc' to make it work. Is it the new behaviour? To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613503/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613503] Re: Can not add groups via CSV when shortname is not relied on displayname
in lib/group.php line 357 if (!empty($data['shortname'])) { // make sure it is unique and is correct length $shortname = group_generate_shortname($data['name']); // If we want to retain the supplied shortname we need to make sure it can be done if (!empty($data['retainshortname'])) { if ($shortname != $data['shortname']) { The $shortname = group_generate_shortname($data['name']); should be $shortname = group_generate_shortname($data['shortname']); So that we compare supplied shortname with valid one - which should be the same unless the supplied string contains invalid chars or the valid one is different because the supplied one is taken -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613503 Title: Can not add groups via CSV when shortname is not relied on displayname Status in Mahara: New Bug description: version: master(16.10) I got the following message when adding groups via CSV Mahara: Site unavailable Something in the way you're interacting with Mahara is causing an error. Details if any, follow: group_create: The supplied shortname 'gc' is already taken. This shortname 'groupc' is available. The content of my CSV file: shortname,displayname,roles "gc","Group C","standard" I have to change the shortname to 'groupc' to make it work. Is it the new behaviour? To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613503/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613503] [NEW] Can not add groups via CSV when shortname is not relied on displayname
Public bug reported: version: master(16.10) I got the following message when adding groups via CSV Mahara: Site unavailable Something in the way you're interacting with Mahara is causing an error. Details if any, follow: group_create: The supplied shortname 'gc' is already taken. This shortname 'groupc' is available. The content of my CSV file: shortname,displayname,roles "gc","Group C","standard" I have to change the shortname to 'groupc' to make it work. Is it the new behaviour? ** Affects: mahara Importance: Undecided Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613503 Title: Can not add groups via CSV when shortname is not relied on displayname Status in Mahara: New Bug description: version: master(16.10) I got the following message when adding groups via CSV Mahara: Site unavailable Something in the way you're interacting with Mahara is causing an error. Details if any, follow: group_create: The supplied shortname 'gc' is already taken. This shortname 'groupc' is available. The content of my CSV file: shortname,displayname,roles "gc","Group C","standard" I have to change the shortname to 'groupc' to make it work. Is it the new behaviour? To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613503/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613392] Re: PostgreSQL insert error into site_content with multibyte language packs.
Are you using custom lang files? And if so, would you mind attaching the lang/ja.utf8/install.php file here for testing? >From that error stack, it looks like it was trying to insert this block of text: Maharaにようこそ [あなたの組織名]はオンラインコミュニティを構築するための十分な機能を有するインターネット上のポートフォリオシステムです。 Maharaに関する詳細はAbout[このページを忘れずに編集してください]をお読みください。また、私たちにお気軽にお問い合わせください。 あなたはこのテキストを膧編集することができます。 ... which looks like a modified version of the "loggedouthomedefaultcontent" string. (Although, I tried pasting that into my langpack, and it still ran without any problems. Maybe it got converted at some point during my copying and pasting.) If you are using custom lang files, could you try setting their encoding the lang files themselves to UTF-8? Cheers, Aaron ** Changed in: mahara Status: In Progress => Incomplete -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613392 Title: PostgreSQL insert error into site_content with multibyte language packs. Status in Mahara: Incomplete Bug description: When we try to add a new institution using Japanese language menu, we have an error message "Mahara: Site unavailable A nonrecoverable error occurred. This probably means you have encountered a bug in the system" and can't add the institution. And Apache error log says as below: [error] [client xxx.xxx.xxx.xxx] [WAR] 18 (lib/errors.php:820) HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] in adodb_throw(INSERT INTO "site_content" ("name", "content", "ctime", "mtime", "institution") VALUES (?, ?, ?, ?, ?), home,Mahara\xe3\x81\xab\xe3\x82\x88\xe3\x81\x86\xe3\x81\x93\xe3\x81\x9d[\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xae\xe7\xb5\x84\xe7\xb9\x94\xe5\x90\x8d]\xe3\x81\xaf\xe3\x82\xaa\xe3\x83\xb3\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xb3\xe3\x83\x9f\xe3\x83\xa5\xe3\x83\x8b\xe3\x83\x86\xe3\x82\xa3\xe3\x82\x92\xe6\xa7\x8b\xe7\xaf\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x9f\xe3\x82\x81\xe3\x81\xae\xe5\x8d\x81\xe5\x88\x86\xe3\x81\xaa\xe6\xa9\x9f\xe8\x83\xbd\xe3\x82\x92\xe6\x9c\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xbf\xe3\x83\xbc\xe3\x83\x8d\xe3\x83\x83\xe3\x83\x88\xe4\xb8\x8a\xe3\x81\xae\xe3\x83\x9d\xe3\x83\xbc\xe3\x83\x88\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xaa\xe3\x82\xaa\xe3\x82\xb7\xe3\x82\xb9\xe3\x83\x86\xe3\x83\xa0\xe3\x81\xa7\xe3\x81\x99\xe3\x80\x82Mahara\xe3\x81\xab\xe9\x96\xa2\xe3\x81\x99\xe3\x82\x8b\xe8\xa9\xb3\xe7\xb4\xb0\xe3\x81\xafAbout[\xe3\x81\x93\xe3\x81\xae\xe3\x83\x9a\xe3\x83\xbc\xe3\x82\xb8\xe3\x82\x92\xe5\xbf\x98\xe3\x82\x8c\xe3\x81\x9a\xe3\x81\xab\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x97\xe3\x81\xa6\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84]\xe3\x82\x92\xe3\x81\x8a\xe8\xaa\xad\xe3\x81\xbf\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\xbe\xe3\x81\x9f\xe3\x80\x81\xe7\xa7\x81\xe3\x81\x9f\xe3\x81\xa1\xe3\x81\xab\xe3\x81\x8a\xe6\xb0\x97\xe8\xbb\xbd\xe3\x81\xab\xe3\x81\x8a\xe5\x95\x8f\xe3\x81\x84\xe5\x90\x88\xe3\x82\x8f\xe3\x81\x9b\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xaf\xe3\x81\x93\xe3\x81\xae\xe3\x83\x86\xe3\x82\xad\xe3\x82\xb9\xe3\x83\x88\xe3\x82\x92\x81\xa7\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x93\xe3\x81\xa8\xe3\x81\x8c\xe3\x81\xa7\xe3\x81\x8d\xe3\x81\xbe\xe3\x81\x99\xe3\x80\x82,2016-08-1512:50:39,2016-08-1512:50:39,inst), referer: https://mahara.x.com/admin/users/institutions.php To avoid this error, I would like to recommend to modify lib/dml.php as below. File: lib/dml.php Line: 1061 [ Before ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } $ddd[$column->name] = $data[$column->name]; } } [ After ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } if (function_exists('mb_convert_encoding')) { $ddd[$column->name] = mb_convert_encoding($data[$column->name], "UTF-8", "auto"); } else { $ddd[$column->name] = $data[$column->name]; } } } To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613392/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post
[Mahara-contributors] [Bug 1613392] Re: PostgreSQL insert error into site_content with multibyte language packs.
Hi all, I wasn't able to replicate this one. Here's what I tried: 1. Clean install of Mahara 16.10dev 2. Download and install Japanese language pack from langpacks.mahara.org 3. Select Japanese as my language in Mahara 4. Log in 5. Create a new institution Expected (error) result: Errors out with encoding issue Actual result: It went through fine, and created the new static pages in the site_content table in Japanese. This was testing with Postgresql 9.1, Ubuntu 14.04, PHP 5.5, Apaache 2.4. Cheers, Aaron -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613392 Title: PostgreSQL insert error into site_content with multibyte language packs. Status in Mahara: In Progress Bug description: When we try to add a new institution using Japanese language menu, we have an error message "Mahara: Site unavailable A nonrecoverable error occurred. This probably means you have encountered a bug in the system" and can't add the institution. And Apache error log says as below: [error] [client xxx.xxx.xxx.xxx] [WAR] 18 (lib/errors.php:820) HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] in adodb_throw(INSERT INTO "site_content" ("name", "content", "ctime", "mtime", "institution") VALUES (?, ?, ?, ?, ?), home,Mahara\xe3\x81\xab\xe3\x82\x88\xe3\x81\x86\xe3\x81\x93\xe3\x81\x9d[\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xae\xe7\xb5\x84\xe7\xb9\x94\xe5\x90\x8d]\xe3\x81\xaf\xe3\x82\xaa\xe3\x83\xb3\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xb3\xe3\x83\x9f\xe3\x83\xa5\xe3\x83\x8b\xe3\x83\x86\xe3\x82\xa3\xe3\x82\x92\xe6\xa7\x8b\xe7\xaf\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x9f\xe3\x82\x81\xe3\x81\xae\xe5\x8d\x81\xe5\x88\x86\xe3\x81\xaa\xe6\xa9\x9f\xe8\x83\xbd\xe3\x82\x92\xe6\x9c\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xbf\xe3\x83\xbc\xe3\x83\x8d\xe3\x83\x83\xe3\x83\x88\xe4\xb8\x8a\xe3\x81\xae\xe3\x83\x9d\xe3\x83\xbc\xe3\x83 \x88\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xaa\xe3\x82\xaa\xe3\x82\xb7\xe3\x82\xb9\xe3\x83\x86\xe3\x83\xa0\xe3\x81\xa7\xe3\x81\x99\xe3\x80\x82Mahara\xe3\x81\xab\xe9\x96\xa2\xe3\x81\x99\xe3\x82\x8b\xe8\xa9\xb3\xe7\xb4\xb0\xe3\x81\xafAbout[\xe3\x81\x93\xe3\x81\xae\xe3\x83\x9a\xe3\x83\xbc\xe3\x82\xb8\xe3\x82\x92\xe5\xbf\x98\xe3\x82\x8c\xe3\x81\x9a\xe3\x81\xab\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x97\xe3\x81\xa6\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84]\xe3\x82\x92\xe3\x81\x8a\xe8\xaa\xad\xe3\x81\xbf\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\xbe\xe3\x81\x9f\xe3\x80\x81\xe7\xa7\x81\xe3\x81\x9f\xe3\x81\xa1\xe3\x81\xab\xe3\x81\x8a\xe6\xb0\x97\xe8\xbb\xbd\xe3\x81\xab\xe3\x81\x8a\xe5\x95\x8f\xe3\x81\x84\xe5\x90\x88\xe3\x82\x8f\xe3\x81\x9b\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xaf\xe3\x81\x93\xe3\x81\xae\xe3\x83\x86\xe3\x82\xad\xe3\x82\xb9\xe3\x 83\x88\xe3\x82\x92\x81\xa7\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x93\xe3\x81\xa8\xe3\x81\x8c\xe3\x81\xa7\xe3\x81\x8d\xe3\x81\xbe\xe3\x81\x99\xe3\x80\x82,2016-08-1512:50:39,2016-08-1512:50:39,inst), referer: https://mahara.x.com/admin/users/institutions.php To avoid this error, I would like to recommend to modify lib/dml.php as below. File: lib/dml.php Line: 1061 [ Before ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } $ddd[$column->name] = $data[$column->name]; } } [ After ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } if (function_exists('mb_convert_encoding')) { $ddd[$column->name] = mb_convert_encoding($data[$column->name], "UTF-8", "auto"); } else { $ddd[$column->name] = $data[$column->name]; } } } To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613392/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613478] Re: Update Elastica library to 2.3.1
** Changed in: mahara Assignee: (unassigned) => Son Nguyen (ngson2000) -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613478 Title: Update Elastica library to 2.3.1 Status in Mahara: Confirmed Bug description: The current version of Elastica is 2.0.0, we should update it to 2.3.1 as it has lots of bug fixes and support for newer Elasticsearch 1.7.3+. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613478/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613392] Re: PostgreSQL insert error into site_content with multibyte language packs.
Hi Mitsuhiro Yoshida, I've added your fix to the Mahara gerrit -> https://reviews.mahara.org/#/c/6843/ Are you able to give some more information on how to test/verify this issue. What was the text and the encoding format of that text? Are you able to put together a few basic steps I can try to test the problem Cheers Robert ** Changed in: mahara Importance: Undecided => Medium ** Changed in: mahara Status: New => In Progress -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613392 Title: PostgreSQL insert error into site_content with multibyte language packs. Status in Mahara: In Progress Bug description: When we try to add a new institution using Japanese language menu, we have an error message "Mahara: Site unavailable A nonrecoverable error occurred. This probably means you have encountered a bug in the system" and can't add the institution. And Apache error log says as below: [error] [client xxx.xxx.xxx.xxx] [WAR] 18 (lib/errors.php:820) HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] in adodb_throw(INSERT INTO "site_content" ("name", "content", "ctime", "mtime", "institution") VALUES (?, ?, ?, ?, ?), home,Mahara\xe3\x81\xab\xe3\x82\x88\xe3\x81\x86\xe3\x81\x93\xe3\x81\x9d[\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xae\xe7\xb5\x84\xe7\xb9\x94\xe5\x90\x8d]\xe3\x81\xaf\xe3\x82\xaa\xe3\x83\xb3\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xb3\xe3\x83\x9f\xe3\x83\xa5\xe3\x83\x8b\xe3\x83\x86\xe3\x82\xa3\xe3\x82\x92\xe6\xa7\x8b\xe7\xaf\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x9f\xe3\x82\x81\xe3\x81\xae\xe5\x8d\x81\xe5\x88\x86\xe3\x81\xaa\xe6\xa9\x9f\xe8\x83\xbd\xe3\x82\x92\xe6\x9c\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xbf\xe3\x83\xbc\xe3\x83\x8d\xe3\x83\x83\xe3\x83\x88\xe4\xb8\x8a\xe3\x81\xae\xe3\x83\x9d\xe3\x83\xbc\xe3\x83 \x88\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xaa\xe3\x82\xaa\xe3\x82\xb7\xe3\x82\xb9\xe3\x83\x86\xe3\x83\xa0\xe3\x81\xa7\xe3\x81\x99\xe3\x80\x82Mahara\xe3\x81\xab\xe9\x96\xa2\xe3\x81\x99\xe3\x82\x8b\xe8\xa9\xb3\xe7\xb4\xb0\xe3\x81\xafAbout[\xe3\x81\x93\xe3\x81\xae\xe3\x83\x9a\xe3\x83\xbc\xe3\x82\xb8\xe3\x82\x92\xe5\xbf\x98\xe3\x82\x8c\xe3\x81\x9a\xe3\x81\xab\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x97\xe3\x81\xa6\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84]\xe3\x82\x92\xe3\x81\x8a\xe8\xaa\xad\xe3\x81\xbf\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\xbe\xe3\x81\x9f\xe3\x80\x81\xe7\xa7\x81\xe3\x81\x9f\xe3\x81\xa1\xe3\x81\xab\xe3\x81\x8a\xe6\xb0\x97\xe8\xbb\xbd\xe3\x81\xab\xe3\x81\x8a\xe5\x95\x8f\xe3\x81\x84\xe5\x90\x88\xe3\x82\x8f\xe3\x81\x9b\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xaf\xe3\x81\x93\xe3\x81\xae\xe3\x83\x86\xe3\x82\xad\xe3\x82\xb9\xe3\x 83\x88\xe3\x82\x92\x81\xa7\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x93\xe3\x81\xa8\xe3\x81\x8c\xe3\x81\xa7\xe3\x81\x8d\xe3\x81\xbe\xe3\x81\x99\xe3\x80\x82,2016-08-1512:50:39,2016-08-1512:50:39,inst), referer: https://mahara.x.com/admin/users/institutions.php To avoid this error, I would like to recommend to modify lib/dml.php as below. File: lib/dml.php Line: 1061 [ Before ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } $ddd[$column->name] = $data[$column->name]; } } [ After ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } if (function_exists('mb_convert_encoding')) { $ddd[$column->name] = mb_convert_encoding($data[$column->name], "UTF-8", "auto"); } else { $ddd[$column->name] = $data[$column->name]; } } } To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613392/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613392] A patch has been submitted for review
Patch for "master" branch: https://reviews.mahara.org/6843 -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613392 Title: PostgreSQL insert error into site_content with multibyte language packs. Status in Mahara: In Progress Bug description: When we try to add a new institution using Japanese language menu, we have an error message "Mahara: Site unavailable A nonrecoverable error occurred. This probably means you have encountered a bug in the system" and can't add the institution. And Apache error log says as below: [error] [client xxx.xxx.xxx.xxx] [WAR] 18 (lib/errors.php:820) HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] in adodb_throw(INSERT INTO "site_content" ("name", "content", "ctime", "mtime", "institution") VALUES (?, ?, ?, ?, ?), home,Mahara\xe3\x81\xab\xe3\x82\x88\xe3\x81\x86\xe3\x81\x93\xe3\x81\x9d[\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xae\xe7\xb5\x84\xe7\xb9\x94\xe5\x90\x8d]\xe3\x81\xaf\xe3\x82\xaa\xe3\x83\xb3\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xb3\xe3\x83\x9f\xe3\x83\xa5\xe3\x83\x8b\xe3\x83\x86\xe3\x82\xa3\xe3\x82\x92\xe6\xa7\x8b\xe7\xaf\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x9f\xe3\x82\x81\xe3\x81\xae\xe5\x8d\x81\xe5\x88\x86\xe3\x81\xaa\xe6\xa9\x9f\xe8\x83\xbd\xe3\x82\x92\xe6\x9c\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xbf\xe3\x83\xbc\xe3\x83\x8d\xe3\x83\x83\xe3\x83\x88\xe4\xb8\x8a\xe3\x81\xae\xe3\x83\x9d\xe3\x83\xbc\xe3\x83 \x88\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xaa\xe3\x82\xaa\xe3\x82\xb7\xe3\x82\xb9\xe3\x83\x86\xe3\x83\xa0\xe3\x81\xa7\xe3\x81\x99\xe3\x80\x82Mahara\xe3\x81\xab\xe9\x96\xa2\xe3\x81\x99\xe3\x82\x8b\xe8\xa9\xb3\xe7\xb4\xb0\xe3\x81\xafAbout[\xe3\x81\x93\xe3\x81\xae\xe3\x83\x9a\xe3\x83\xbc\xe3\x82\xb8\xe3\x82\x92\xe5\xbf\x98\xe3\x82\x8c\xe3\x81\x9a\xe3\x81\xab\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x97\xe3\x81\xa6\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84]\xe3\x82\x92\xe3\x81\x8a\xe8\xaa\xad\xe3\x81\xbf\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\xbe\xe3\x81\x9f\xe3\x80\x81\xe7\xa7\x81\xe3\x81\x9f\xe3\x81\xa1\xe3\x81\xab\xe3\x81\x8a\xe6\xb0\x97\xe8\xbb\xbd\xe3\x81\xab\xe3\x81\x8a\xe5\x95\x8f\xe3\x81\x84\xe5\x90\x88\xe3\x82\x8f\xe3\x81\x9b\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xaf\xe3\x81\x93\xe3\x81\xae\xe3\x83\x86\xe3\x82\xad\xe3\x82\xb9\xe3\x 83\x88\xe3\x82\x92\x81\xa7\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x93\xe3\x81\xa8\xe3\x81\x8c\xe3\x81\xa7\xe3\x81\x8d\xe3\x81\xbe\xe3\x81\x99\xe3\x80\x82,2016-08-1512:50:39,2016-08-1512:50:39,inst), referer: https://mahara.x.com/admin/users/institutions.php To avoid this error, I would like to recommend to modify lib/dml.php as below. File: lib/dml.php Line: 1061 [ Before ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } $ddd[$column->name] = $data[$column->name]; } } [ After ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } if (function_exists('mb_convert_encoding')) { $ddd[$column->name] = mb_convert_encoding($data[$column->name], "UTF-8", "auto"); } else { $ddd[$column->name] = $data[$column->name]; } } } To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613392/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613481] [NEW] Update Zend framework to 1.12.19
Public bug reported: We need to update to 1.12.19 as some security patches since 1.12.17. ** Affects: mahara Importance: High Status: Confirmed ** Changed in: mahara Milestone: None => 16.10.0 ** Changed in: mahara Status: New => Confirmed ** Changed in: mahara Importance: Undecided => High -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613481 Title: Update Zend framework to 1.12.19 Status in Mahara: Confirmed Bug description: We need to update to 1.12.19 as some security patches since 1.12.17. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613481/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613483] [NEW] Update PDFjs to 1.4.20
Public bug reported: Since 1.1.1040, there have been several bug fixes and few features. We would highly update this. ** Affects: mahara Importance: High Status: Confirmed ** Changed in: mahara Status: New => Confirmed ** Changed in: mahara Importance: Undecided => High ** Changed in: mahara Milestone: None => 16.10.0 -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613483 Title: Update PDFjs to 1.4.20 Status in Mahara: Confirmed Bug description: Since 1.1.1040, there have been several bug fixes and few features. We would highly update this. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613483/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613478] [NEW] Update Elastica library to 2.3.1
Public bug reported: The current version of Elastica is 2.0.0, we should update it to 2.3.1 as it has lots of bug fixes and support for newer Elasticsearch 1.7.3+. ** Affects: mahara Importance: High Status: Confirmed ** Changed in: mahara Milestone: None => 16.10.0 ** Changed in: mahara Status: New => Confirmed ** Changed in: mahara Importance: Undecided => High -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613478 Title: Update Elastica library to 2.3.1 Status in Mahara: Confirmed Bug description: The current version of Elastica is 2.0.0, we should update it to 2.3.1 as it has lots of bug fixes and support for newer Elasticsearch 1.7.3+. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613478/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613480] [NEW] Update HTML Purifier to 4.8.0
Public bug reported: We need to update this library to 4.8.0 to compatible to PHP7 ** Affects: mahara Importance: High Status: Confirmed ** Changed in: mahara Milestone: None => 16.10.0 ** Changed in: mahara Status: New => Confirmed ** Changed in: mahara Importance: Undecided => High -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613480 Title: Update HTML Purifier to 4.8.0 Status in Mahara: Confirmed Bug description: We need to update this library to 4.8.0 to compatible to PHP7 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1613480/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1613392] [NEW] PostgreSQL insert error into site_content with multibyte language packs.
Public bug reported: When we try to add a new institution using Japanese language menu, we have an error message "Mahara: Site unavailable A nonrecoverable error occurred. This probably means you have encountered a bug in the system" and can't add the institution. And Apache error log says as below: [error] [client xxx.xxx.xxx.xxx] [WAR] 18 (lib/errors.php:820) HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] in adodb_throw(INSERT INTO "site_content" ("name", "content", "ctime", "mtime", "institution") VALUES (?, ?, ?, ?, ?), home,Mahara\xe3\x81\xab\xe3\x82\x88\xe3\x81\x86\xe3\x81\x93\xe3\x81\x9d[\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xae\xe7\xb5\x84\xe7\xb9\x94\xe5\x90\x8d]\xe3\x81\xaf\xe3\x82\xaa\xe3\x83\xb3\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xb3\xe3\x83\x9f\xe3\x83\xa5\xe3\x83\x8b\xe3\x83\x86\xe3\x82\xa3\xe3\x82\x92\xe6\xa7\x8b\xe7\xaf\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x9f\xe3\x82\x81\xe3\x81\xae\xe5\x8d\x81\xe5\x88\x86\xe3\x81\xaa\xe6\xa9\x9f\xe8\x83\xbd\xe3\x82\x92\xe6\x9c\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xbf\xe3\x83\xbc\xe3\x83\x8d\xe3\x83\x83\xe3\x83\x88\xe4\xb8\x8a\xe3\x81\xae\xe3\x83\x9d\xe3\x83\xbc\xe3\x83\x 88\xe3\x83\x95\xe3\x82\xa9\xe3\x83\xaa\xe3\x82\xaa\xe3\x82\xb7\xe3\x82\xb9\xe3\x83\x86\xe3\x83\xa0\xe3\x81\xa7\xe3\x81\x99\xe3\x80\x82Mahara\xe3\x81\xab\xe9\x96\xa2\xe3\x81\x99\xe3\x82\x8b\xe8\xa9\xb3\xe7\xb4\xb0\xe3\x81\xafAbout[\xe3\x81\x93\xe3\x81\xae\xe3\x83\x9a\xe3\x83\xbc\xe3\x82\xb8\xe3\x82\x92\xe5\xbf\x98\xe3\x82\x8c\xe3\x81\x9a\xe3\x81\xab\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x97\xe3\x81\xa6\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84]\xe3\x82\x92\xe3\x81\x8a\xe8\xaa\xad\xe3\x81\xbf\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\xbe\xe3\x81\x9f\xe3\x80\x81\xe7\xa7\x81\xe3\x81\x9f\xe3\x81\xa1\xe3\x81\xab\xe3\x81\x8a\xe6\xb0\x97\xe8\xbb\xbd\xe3\x81\xab\xe3\x81\x8a\xe5\x95\x8f\xe3\x81\x84\xe5\x90\x88\xe3\x82\x8f\xe3\x81\x9b\xe3\x81\x8f\xe3\x81\xa0\xe3\x81\x95\xe3\x81\x84\xe3\x80\x82\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xaf\xe3\x81\x93\xe3\x81\xae\xe3\x83\x86\xe3\x82\xad\xe3\x82\xb9\xe3\x83 \x88\xe3\x82\x92\x81\xa7\xe7\xb7\xa8\xe9\x9b\x86\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x93\xe3\x81\xa8\xe3\x81\x8c\xe3\x81\xa7\xe3\x81\x8d\xe3\x81\xbe\xe3\x81\x99\xe3\x80\x82,2016-08-1512:50:39,2016-08-1512:50:39,inst), referer: https://mahara.x.com/admin/users/institutions.php To avoid this error, I would like to recommend to modify lib/dml.php as below. File: lib/dml.php Line: 1061 [ Before ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } $ddd[$column->name] = $data[$column->name]; } } [ After ] // Pull out data matching these fields $ddd = array(); foreach ($columns as $column) { if (isset($data[$column->name])) { if ($column->name == $primarykey && empty($setfromseq)) { continue; } if (function_exists('mb_convert_encoding')) { $ddd[$column->name] = mb_convert_encoding($data[$column->name], "UTF-8", "auto"); } else { $ddd[$column->name] = $data[$column->name]; } } } ** Affects: mahara Importance: Undecided Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1613392 Title: PostgreSQL insert error into site_content with multibyte language packs. Status in Mahara: New Bug description: When we try to add a new institution using Japanese language menu, we have an error message "Mahara: Site unavailable A nonrecoverable error occurred. This probably means you have encountered a bug in the system" and can't add the institution. And Apache error log says as below: [error] [client xxx.xxx.xxx.xxx] [WAR] 18 (lib/errors.php:820) HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] in adodb_throw(INSERT INTO "site_content" ("name", "content", "ctime", "mtime", "institution") VALUES (?, ?, ?, ?, ?), home,Mahara\xe3\x81\xab\xe3\x82\x88\xe3\x81\x86\xe3\x81\x93\xe3\x81\x9d[\xe3\x81\x82\xe3\x81\xaa\xe3\x81\x9f\xe3\x81\xae\xe7\xb5\x84\xe7\xb9\x94\xe5\x90\x8d]\xe3\x81\xaf\xe3\x82\xaa\xe3\x83\xb3\xe3\x83\xa9\xe3\x82\xa4\xe3\x83\xb3\xe3\x82\xb3\xe3\x83\x9f\xe3\x83\xa5\xe3\x83\x8b\xe3\x83\x86\xe3\x82\xa3\xe3\x82\x92\xe6\xa7\x8b\xe7\xaf\x89\xe3\x81\x99\xe3\x82\x8b\xe3\x81\x9f\xe3\x82\x