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 |
Reporter | combr | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 1.2.0 | ||||
Summary | 0011769: Many cross-definitions of utf8 functions with dokuwiki | ||||
Description | Mantis have an integration instruction on for the http://www.mantisbt.org/bugs/view.php?id=7075 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: function utf8_to_unicode 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 |
|