Anonymous | Login | Signup for a new account | 2012-09-13 19:33 PDT |
Main | Blog | My View | View Issues | Change Log | Roadmap | IRC Chat | Repositories | Scrum Board |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
195 | Source Integration | [All Projects] General | public | 2011-02-09 23:53 | 2011-03-22 15:10 | ||||||
Reporter | Krasnov Kirill | ||||||||||
Assigned To | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||
Status | new | Resolution | open | ||||||||
Product Version | |||||||||||
Target Version | Fixed in Version | ||||||||||
Summary | 195: Error parsing XML | ||||||||||
Description | MantisBT 1.3.x.dev Source git-dev when press edit on repository I see this error <form action="/bug/plugin.php?page=Source/repo_update_page&id=17" method="post"> -------------------------------------------------------------^ | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
![]() |
|
Krasnov Kirill (reporter) 2011-02-09 23:53 |
^ - showing on char "=" |
Carl (reporter) 2011-03-19 09:39 edited on: 2011-03-20 12:17 |
It looks like there are a few places which have invalid xml. I'm editing my post to add a few more places I've come across. To fix it here I opened repo_manage_page.php and changed the 5 occurrences of &id= in the form actions to amp;id= Before: <form action="<?php echo plugin_page( 'repo_update_page' ) . '&id=' . $t_repo->id ?>" method="post"> After: <form action="<?php echo plugin_page( 'repo_update_page' ) . '&id=' . $t_repo->id ?>" method="post"> Maybe it's Firefox's default behaviour is to show XML errors like this. They show with firebug's show XML Errors turned off. Here are some other related XML errors I had, I didn't commit any of these fixes because they're quick fixes just so I can keep moving along: Error: XML Parsing Error: mismatched tag. Expected: </span>. <span class="small">(trunk/branches/tags)</small></td> Solution: Changed </small> to </span> in strings_english.txt, in strings_french.txt and in strings_german.txt Error: XML Parsing Error: mismatched tag. Expected: </div>. Line Number 100, Column 3:</form> Solution: Removed the extra orphaned </form> tag from repo_manage_page.php (was on line 124) Error: XML Parsing Error: not well-formed when importing repository data Line Number 1, Column 501:<div id="error-msg"><div class="error-type">APPLICATION ERROR #0</div> Solution: Changed the error handler methods to inline before calling trigger_error(). I changed them in SourceSVN.php (1 occurrence) and Source.API.php (9 occurrences). Before: private function check_svn() { $svn = self::svn_binary(); if ( is_blank( shell_exec( "$svn help" ) ) ) { trigger_error( ERROR_GENERIC, ERROR ); } } After: private function check_svn() { $svn = self::svn_binary(); global $g_display_errors; $old_method = $g_display_errors[ERROR]; $g_display_errors[ERROR] = 'inline'; if ( is_blank( shell_exec( "$svn help" ) ) ) { trigger_error( ERROR_GENERIC, ERROR ); } $g_display_errors[ERROR] = $old_method; } Error: XML Parsing Error: mismatched tag. Expected: </input>. Location: http://mantis.newssite.com/plugin.php?page=Source/manage_config_page [^] Solution: Closed the 3 input tags Before: <input name="remote_imports" type="checkbox" <?php echo (ON == $t_remote_imports ? 'checked="checked"' : '') ?>> After: <input name="remote_imports" type="checkbox" <?php echo (ON == $t_remote_imports ? 'checked="checked"' : '') ?>/> Error: XML Parsing Error: mismatched tag. Expected: </tr>. Location: http://mantis.newssite.com/plugin.php?page=Source/list&id=3 [^] Solution: Changes the <tr> on line 41 to a </tr> (was missing closing slash) |
Carl (reporter) 2011-03-22 15:10 |
If you want to stop the xml errors from being shown, open core/http_api.php, go to the http_content_headers() function and comment out the code that sets the xhtml+xml header: /* if ( stristr( $_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml' ) ) { header( 'Content-Type: application/xhtml+xml; charset=UTF-8' ); } else { header( 'Content-Type: text/html; charset=UTF-8' ); } */ and replace it with the html header: header( 'Content-Type: text/html; charset=UTF-8' ); |
![]() |
|||
Date Modified | Username | Field | Change |
2011-02-09 23:53 | Krasnov Kirill | New Issue | |
2011-02-09 23:53 | Krasnov Kirill | Note Added: 266 | |
2011-03-19 09:39 | Carl | Note Added: 273 | |
2011-03-19 09:59 | Carl | Note Edited: 273 | View Revisions |
2011-03-19 13:29 | Carl | Note Edited: 273 | View Revisions |
2011-03-20 12:17 | Carl | Note Edited: 273 | View Revisions |
2011-03-22 15:10 | Carl | Note Added: 277 |
Copyright © 2000 - 2012 MantisBT Group
Time: 0.1585 seconds. memory usage: 8,348 KB |