View Issue Details

IDProjectCategoryView StatusLast Update
0015575mantisbtdocumentationpublic2014-09-23 18:05
Reporterjjtest Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformUnixOSSolarisOS Version8/10
Product Version1.2.14 
Target Version1.2.15Fixed in Version1.2.15 
Summary0015575: Turning on $g_show_queries_list causes Mantis to crash with an error
Description

Turning on $g_show_queries_list causes Mantis to crash with an error:

Fatal error: Call to undefined function mb_internal_encoding() in /export/home/mantisbt-1.2.14/core/database_api.php on line 361

Steps To Reproduce

Turn on $g_show_queries_list in 1.2.14.

Additional Information

I am in the process of upgrading/testing from 1.1.8 to 1.2.14.

I had to convert my MyISAM MYSQL tables to utf-8 to get green colors from the check script. Other things look okay but I was having query slowness and wanted to turn on this feature...but it just crashes Mantis.

TagsNo tags attached.

Relationships

related to 0013280 closeddregad Sort by accented custom field produces incorrect log entries 
related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

atrol

atrol

2013-03-06 11:29

developer   ~0035397

Do you use PHP 5.2.x?
If so, you can enable mbstring extension
I recommend to use PHP 5.3.x with MantisBT 1.2.x

jjtest

jjtest

2013-03-06 11:48

reporter   ~0035399

Yes it is 5.2.

Is mbstring turned on by default in 5.3?

What other issues might I find if I stay with 5.2? I actually have read some threads recommending against using 5.3 for other reasons.

dregad

dregad

2013-03-07 09:13

developer   ~0035407

@atrol,

This was introduced in 1.2.9 (0013280, 5835572fde9df4d0837f0105c6c44c75fe64c07c).

Unfortunately, I can't think of any alternative way of implementing that fix without relying on mb_internal_encoding().

Therefore, unless you or someone else can think of something, maybe we should just document that enabling mbstring is recommended (and required for logging queries) in http://www.mantisbt.org/docs/master-1.2.x/en/administration_guide.html#ADMIN.INSTALL.REQUIREMENTS ?

dregad

dregad

2013-03-08 07:02

developer   ~0035420

Admin guide updated.

atrol

atrol

2013-03-11 16:33

developer   ~0035430

In response to 0015575:0035399

Is mbstring turned on by default in 5.3?
no, it depends on configuration, see
http://www.php.net/manual/en/mbstring.installation.php

I actually have read some threads recommending against using 5.3 for other
reasons.
I am not aware that there are issues if you are using PHP version >= 5.3.3
Can you provide links with issues when using PHP 5.3?

atrol

atrol

2013-03-11 16:40

developer   ~0035431

In response to 0015575:0035407
Sorry, I have also no idea of any alternative way and no time for further investigation.

What about adding also additional checks to admin/check.php ?
Something like:
print_test_row( 'Checking if extension mbstring is loaded for database query logging', extension_loaded('mbstring') || OFF == config_get_global( 'show_queries_list' ) );
print_test_warn_row( 'Checking if extension mbstring is loaded for better performance', extension_loaded('mbstring') );

David removed the library in next
https://github.com/mantisbt/mantisbt/commit/beb4c5b8381c0f0eca99de23e1021fcebdc51c7a
Paul also in master-2.0
https://github.com/mantisbt/mantisbt/commit/6a165ba57e4b8d683e26f2034b4534af0870c5f2

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036071

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master b8f39bcd

2013-03-08 07:00

dregad


Details Diff
Documentation: added php_mbstring as recommended extension

Fixes 0015575
Affected Issues
0015575
mod - docbook/Admin_Guide/en-US/Installation.xml Diff File

MantisBT: master-1.2.x a05639b0

2013-03-08 07:00

dregad


Details Diff
Documentation: added php_mbstring as recommended extension

Fixes 0015575
Affected Issues
0015575
mod - docbook/administration_guide/en/installation.sgml Diff File