View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0011769||mantisbt||integration||public||2010-04-08 08:58||2012-12-11 17:06|
|Status||closed||Resolution||no change required|
|Summary||0011769: Many cross-definitions of utf8 functions with dokuwiki|
Mantis have an integration instruction on
In 1.2.0 mantis has many changes in working with utf-8 strings and add many functions to work with unicode.
BUT! at the same time dokuwiki have this functions too ;)
PHP Fatal error: Cannot redeclare utf8_to_unicode() (previously declared in ..dokuwiki/inc/utf8.php:611) in mantis/library/utf8/utils/unicode.php
this functions are:
All of it already declared and realized in dokuwiki/inc/utf8.php
And when dokuwiki starts, it load at first its own functions
and then mantis functions via
What way we can choose to resolve this conflict?
|Steps To Reproduce|
follow inegraion instruction, set authtype=mantis in dokuwiki and try to load dokuwiki site
|Tags||No tags attached.|
additional: when i install php5-mbstring (it was not installed) i got a new branch of similar errors:
[Fri Apr 23 12:22:39 2010] [error] [client 10.1.4.14] PHP Fatal error: Cannot redeclare utf8_strlen() (previously declared in /var/www/vhosts/mantis/dokuw
and wiki don't work again.
if i patch it again in mantis with if(!function_exists('utf8_strlen')) it again start working, i think. But i remove php5-mbsting, and it start to work again.
David Hicks <hickseydr> wrote:
"MantisBT 1.3.0 introduces a new require_lib() function to include
maybe it helps in future.
Adding the following line in dokuwiki/conf/local.php will resolve this issue:
require_once( MANTIS_ROOT . 'core.php' );
Make sure to add it somewhere after the line where MANTIS_ROOT is refined.
The reason this should work is because Mantis will define all the UTF8 functions first, and then DokuWiki won't try to define them again, because it checks if they are already defined.
adding require_once( MANTIS_ROOT . 'core.php' ); doesn't solve anything for me :(
require_once( MANTIS_ROOT . 'core.php' ); dosen't solve this problem...
It solves it for me. I am updating the integration instructions in the Wiki to cover everything I ran into while integrating the latest stable versions of both packages (mantis 1.2.6, dokuwiki 2011-05-25a).
Ok, scratch that, there is another probably unrelated problem preventing it from working. I already fixed one typo that caused a blatant failure in the mantis auth backend, so that raises the question of whether the plugin file has been corrupted at some point. (Another good reason to put whole source files in attachments...) Anyway, I will get back to this later today.
Okay, I have gotten things working pretty nicely actually, however there are quite a few pitfalls that were not mentioned and I seem to have stumbled over all of them while getting this working. I updated the Wiki instructions at http://www.mantisbt.org/wiki/doku.php/mantisbt:issue:7075:integration_with_dokuwiki and added a number of tips that should help.
With toddpw's updates to the wiki page (thanks for that !), I assume this issue can be resolved.
Feel free to reopen if that is not the case
|2010-04-08 08:58||combr||New Issue|
|2010-04-23 04:48||combr||Note Added: 0025224|
|2010-04-23 05:24||combr||Note Added: 0025227|
|2010-04-27 02:19||andrej.pavlovic||Note Added: 0025279|
|2011-01-07 18:20||vboctor||Relationship added||related to 0011018|
|2011-01-24 12:01||tiliarou||Note Added: 0028051|
|2011-05-06 01:31||Ray_Cheng||Note Added: 0028757|
|2011-08-15 11:42||toddpw||Note Added: 0029479|
|2011-08-15 12:51||toddpw||Note Added: 0029480|
|2011-08-19 02:54||toddpw||Note Added: 0029516|
|2012-11-29 10:16||dregad||Relationship replaced||has duplicate 0011018|
|2012-11-29 10:18||dregad||Note Added: 0034427|
|2012-11-29 10:18||dregad||Status||new => resolved|
|2012-11-29 10:18||dregad||Resolution||open => no change required|
|2012-11-29 10:18||dregad||Assigned To||=> dregad|
|2012-12-11 17:06||atrol||Status||resolved => closed|