View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011029 | mantisbt | plug-ins | public | 2009-10-12 10:15 | 2014-09-23 18:05 |
Reporter | mbellino | Assigned To | giallu | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0rc2 | ||||
Target Version | 1.2.12 | Fixed in Version | 1.2.12 | ||
Summary | 0011029: XML Import (and export) plugin do not work | ||||
Description | When I try to imort an XML file, I get the following error onto the server : [Mon Oct 12 15:33:59 2009] [error] [client xx.xx.xx.xx] PHP Fatal error: Class 'XMLReader' not found in /var/www/html/mantisbt-1.2.0rc2/plugins/XmlImportExport/ImportXml.php on line 59, referer: http://xx.xx.xx.xx/mantisbt-1.2.0rc2/plugin.php?page=XmlImportExport/import Similar errors appears when i would like to export to XML : [Mon Oct 12 15:01:34 2009] [error] [client xx.xx.xx.xx] PHP Fatal error: Class 'XMLWriter' not found in /var/www/html/mantisbt-1.2.0rc2/plugins/XmlImportExport/pages/export.php on line 56, referer: http://xx.xx.xx.xx/mantisbt-1.2.0rc2/view_all_bug_page.php | ||||
Additional Information | This is a completely new install of 1.2.0rc2. Is there a place where to find an example of XML file to import? | ||||
Tags | No tags attached. | ||||
assuming you are running linux you need to install the php-xml package or otherwise activate xml support in you php |
|
It would be useful to detect that required dependencies are not available and provide the user with a friendly message. From memory we do this in scenarios like Twitter integration when curl extension is not available. |
|
You are right, I am running with Linux (Fedora). As proposed, I installed "php-xml", and this solves my issue. (do not forget to restart httpd). But I am still unable to imoprt any XML files. I suppose this is due to the XML structure needed. <?xml version="1.0" encoding="utf-8" ?> I also tried some modified version of the XML export file, but without any success. Is there a procedure, or examples ? (google seems not to be my friend onto this topic) |
|
@giallu, do we have some documentation on the import/export XML plugin? |
|
Same situation here. Any documentation on XML import would be much appreciated. Wether doc is available or not (a) sample of "working" XML file(s) would be very helpful as a starting point. An example of XML for custom fields would be great. |
|
a sample of working XML file could be obtained by exporting issues via XmlImportExport plugin. here a sample of working XML file : |
|
I had a vanilla install and applied some of the patches available for resolved issues in 1.2.0rc2. using the above xml i still received the following error Database query failed. Error received from database was 0001366: Incorrect integer value: ' ' for column 'profile_id' at row 1 for the query: INSERT INTO mantis_bug_table
i then edited the xml to have a value for profile_id as <profile_id>0</profile_id> and then i get 500 -内部サーバー エラーです。 edit: sorry i'm running a japanese localized version... |
|
Same ERROR here, exported XML first, then tried to import this. No luck. A like to update documentation, but there is no "official" starting point for "import" that I could find. Only http://www.mantisbt.org/wiki/doku.php/mantisbt:importexport Being persistent I searche on and on, and found some links. Maybe this helps and this http://bugtracker.morinie.fr/mantis/dokuwiki/doku.php?id=mantis:13:xml_format_and_mantis I got some success but import does not(yet) show up. Importing file, please wait... Done Well, looking into the source now. Mantis Import/Export is a plug-in, File this defect in http://bugtracker.morinie.fr/ is probably better. But since it is included into the default 1.2.0RC package, thing get unclear. |
|
Can xml export work with greek encoding??? like |
|
Can xml export work with greek encoding??? like |
|
Questions are better asked on forum, this is a defect tracker. But yes, I see no reason export cannot handle a character set e.g. UTF-8 already used in your instance of the defect tracker webapp. |
|
For those like me who have trouble finding the linux package for SUSE, it is called php5-xmlwriter. |
|
As suggested by vboctor in 0011029:0023160, added a check in plugin's install() method to display an error message in case XMLReader class is not available |
|
The constant ERROR_PLUGIN_INSTALL_FAILED is not defined in master-1.2.x |
|
Thanks Roland, sorry about that... I tested in master and omitted to do the same in 1.2.x. I backported one additional commit from giallu which defines the constant and related error message; that should do the trick. |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master-1.2.x 7d36bd8b 2009-12-18 11:01 Details Diff |
Add plugins installation error code and message Backport from master 1ca21993bd3dfcbdaf63c229f1f85a2790802fb9 Fixes 0011029 |
Affected Issues 0011029 |
|
mod - core/constant_inc.php | Diff File | ||
mod - lang/strings_english.txt | Diff File | ||
MantisBT: master-1.2.x 7a6ee16a 2009-12-18 11:14 Details Diff |
Fail installation if xmlreader and xmlwriter extensions are not present Back-ported from master 70a2d239649423c25cc8b62a83d7c7274d33a467 Fixes 0011029 |
Affected Issues 0011029 |
|
mod - plugins/XmlImportExport/XmlImportExport.php | Diff File | ||
mod - plugins/XmlImportExport/lang/strings_english.txt | Diff File | ||
MantisBT: master 1ca21993 2009-12-18 19:01 Details Diff |
Add plugins installation error code and message |
Affected Issues 0011029 |
|
mod - core/constant_inc.php | Diff File | ||
mod - lang/strings_english.txt | Diff File | ||
MantisBT: master 736ce666 2009-12-18 19:14 Details Diff |
Fail installation if xmlreader and xmlwriter extensions are not present |
Affected Issues 0011029 |
|
mod - plugins/XmlImportExport/XmlImportExport.php | Diff File | ||
mod - plugins/XmlImportExport/lang/strings_english.txt | Diff File |