Re: XML Parsing Error: junk after document element

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks a lot Jakub for the response :-)

On Thu, Feb 11, 2010 at 4:31 PM, Jakub Narebski <jnareb@xxxxxxxxx> wrote:
>
> Which version of gitweb?[1]
>

 gitweb-1.6.0.6  - all packages are from pkgsrc on DragonFly BSD
v2.5.1.672.gf81ef-DEVELOPMENT #17: Tue Feb

> Which version of git?[2]
>

scmgit-1.6.6.1

>What web server?
>

 apache-2.2.14nb1

> Which version of CGI.pm is used by web server?[3]
>

$CGI::revision = '$Id: CGI.pm,v 1.263 2009/02/11 16:56:37 lstein Exp $';
$CGI::VERSION='3.43';




> Try to view source, or use different web browser that doesn't do
> strict XML validation to find the source of this error.
>

I was using firefox 3.6-2.
Trying with Konqueror Version 4.3.4 (KDE 4.3.4) Using KDE 4.3.4 (KDE
4.3.4) I dont get the error but it does not list my projectts. I get
this message on the page.

=================================================

projects /


 404 - No projects found

OPMLTXT
OK
The requested URL /cgi-bin/gitweb.cgi was not found on this server.

======================================================

this page is shown when I take the URL

http://172.16.3.27/cgi-bin/gitweb.cgi

but I have the projectroot configure in gitweb.conf and there is a git
project in that location.

# cat /usr/pkg/etc/gitweb.conf | grep projectroot
our $projectroot = "/Backup1/Data/git-repositories";
# ls -l /Backup1/Data/git-repositories
total 0
drwxr-xr-x  1 root  wheel  0 Feb 11 10:40 systems-configuration
# ls -l /Backup1/Data/git-repositories/systems-configuration/.git/
total 0
-rwxr-x---  1 root  wheel  393 Feb 11 11:03 COMMIT_EDITMSG
-rwxr-x---  1 root  wheel   23 Feb 11 10:40 HEAD
-rwxr-x---  1 root  wheel   92 Feb 11 10:40 config
-rwxr-x---  1 root  wheel   73 Feb 11 10:40 description
drwxr-x---  1 root  wheel    0 Feb 11 10:40 hooks
-rwxr-x---  1 root  wheel  120 Feb 11 11:29 index
drwxr-x---  1 root  wheel    0 Feb 11 10:40 info
drwxr-x---  1 root  wheel    0 Feb 11 10:58 logs
drwxr-x---  1 root  wheel    0 Feb 11 11:03 objects
drwxr-x---  1 root  wheel    0 Feb 11 10:40 refs
#


> If everything else fals, you can always edit gitweb.cgi to comment out
> content-type negotiation, to always serve as text/html mimetype -
> which should torn off XML validation, as below:
>
>        my $content_type;
>        # require explicit support from the UA if we are to send the page as
>        # 'application/xhtml+xml', otherwise send it as plain old 'text/html'.
>        # we have to do this because MSIE sometimes globs '*/*', pretending to
>        # support xhtml+xml but choking when it gets what it asked for.
>        # Disable content-type negotiation when caching (use mimetype good for all).
>        #if (defined $cgi->http('HTTP_ACCEPT') &&
>        #    $cgi->http('HTTP_ACCEPT') =~ m/(,|;|\s|^)application\/xhtml\+xml(,|;|\s|$)/ &&
>        #    $cgi->Accept('application/xhtml+xml') != 0) {
>        #       $content_type = 'application/xhtml+xml';
>        #} else {
>                $content_type = 'text/html';
>        #}
>
>

yes I tried it and the first error disappears from firefor and now I
get the same error from konqueror in firefox too

What could be the trouble?

Thanks

--Siju
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]