Saturday, 01 November 2014 09:44
beggarly

XML Parsing Error

Report Xmap bugs on this forum.

XML Parsing Error

Postby jackyl » Mon Mar 24, 2008 7:50 am

I am using version 1.0.4 of xmap, and when i recently upgraded to joomla 1.0.15, i get the following message when trying to view my xml file >>>

XML Parsing Error: xml declaration not at start of external entity
Location: http://www.xxxxxxxxxx.net/index.php/component/option,com_xmap/sitemap,1/view,xml/no_html,1/
Line Number 1, Column 2: <?xml version="1.0" encoding="UTF-8"?>
-^

What does this mean?

My site encoding is "ISO-8859-1", so this may have something to do with the error.

Where is the file that the error message is referring to?

Thanks.
jackyl
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Mon Mar 24, 2008 8:40 am

Re:XML Parsing Error

Postby jackyl » Mon Mar 24, 2008 8:05 am

Also, here is the google "warning" message.

Leading whitespace
We've detected that your Sitemap file begins with whitespace. We've accepted the file, but you may want to remove the whitespace so that the file adheres to the XML standard.


Hope this helps.
jackyl
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Mon Mar 24, 2008 8:40 am

Re:XML Parsing Error

Postby guilleva » Wed Mar 26, 2008 1:46 pm

I, I can see you are submitting a sef url to google. Please try using the url provided by xmap.

NOT:
index.php/component/option,com_xmap/sitemap,1/view,xml/no_html,1/

try
index.php?option=com_xmap&sitemap=1&view=xml&no_html=1

If for some reason your SEF component is redirecting the request then you should be able to disable sef for xmap or you could try with this:
index2.php?option=com_xmap&sitemap=1&view=xml&no_html=1

Please let me know how does it works for you.
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re:XML Parsing Error

Postby marxam » Thu May 29, 2008 4:28 pm

I am receiving xml parsing error too.

I have Joomla 1.0.x with mosets tree installed. url rewrite mod is on with opensef installed.

Firefox displays the following error with a different line number each time.

XML Parsing Error: no element found
Location: http://www.xxxxxxxxxxxx.co.uk/index2.php?option=com_xmap&sitemap=3&view=xml&no_html=1
Line Number 1369, Column 1:

IE 7.0 suggests the following:

XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The following tags were not closed: urlset. Error processing resource 'http://www.xxxxxxxxxxxx.co.uk/index.php?option=com_...



<changefreq>weekly</changefreq>



SAFARI says the following:

This page contains the following errors:

error on line 1404 at column 78500: Extra content at the end of the document
Below is a rendering of the page up to the first error.


I would highly appreciate your help to resolve this issue. Many thanks in advance!
Last edited by marxam on Thu Jan 01, 1970 12:00 am, edited 65535 times in total.
Reason: 1
marxam
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Thu May 29, 2008 5:13 pm

Re:XML Parsing Error

Postby marxam » Mon Jun 02, 2008 4:01 pm

After several unsuccessful attempts, I swapped opensef for Sh404 and did advanced configuration as some other users suggested but result still is the same.

In the Mosets Tree Plugin for xmap settings, the sitemap is successfully generated if links [there are around 11000 links in my db] are skipped.

Enabling indexing only for the Mosets Tree categories generates a neat sitemap with around 560 links.

However, when the Mosets Tree Links indexing option is also enabled, it gives errors, with or without sef urls.

Firefox displays the following error:

XML Parsing Error: no element found
Location: http://www.xxxxxxxxxxxx.co.uk/index.php?option=com_xmap&sitemap=3&view=xml&no_html=1
Line Number 3225, Column 1:

Line number varies each time. The rest of the page looks blank but when page source is viewed, all the links up to the error line are there.

Please help!
Last edited by marxam on Thu Jan 01, 1970 12:00 am, edited 65535 times in total.
Reason: 1
marxam
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Thu May 29, 2008 5:13 pm

Re:XML Parsing Error

Postby guilleva » Fri Jun 06, 2008 3:28 pm

Hi, it looks like a execution timeout problem. Can you increment the execution time of your scripts in your PHP configuration?
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re:XML Parsing Error

Postby mulrich » Thu Jun 12, 2008 1:19 am

Hi Guilleva
I have try your idea with my second site ( with slow MySql Server) and it's work really better ( but not allways) with
[code]
memory_limit = 32M
upload_max_filesize = xx
post_max_size = xx
max_execution_time = 200
/code]
in the php.ini
Thanks and
A+
Michael
mulrich
Junior Boarder
Junior Boarder
 
Posts: 23
Joined: Sun Nov 18, 2007 12:34 pm

Re:XML Parsing Error

Postby marxam » Thu Jun 12, 2008 10:24 am

Update:

I tried all recommendations and now have my php.ini with the following configuration:


memory_limit = 128M
upload_max_filesize = 12M
post_max_size = 80M
max_execution_time = 300

It still displays errors, same as before :(
marxam
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Thu May 29, 2008 5:13 pm

Re:XML Parsing Error

Postby guilleva » Thu Jun 12, 2008 3:19 pm

Hi marxam, can you please add the following lines at the beginning of the file /components/com_xmap/xmap.php
Code: Select all

error_reporting(E_ALL);
ini_set('display_errors', 1);


Once you have added them, see if you get any error message at the end of the xml file.

Thanks
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re:XML Parsing Error

Postby marxam » Thu Jun 12, 2008 5:45 pm

Hi there guilleva!

Many thanks for your reply.

I tried enabling error reporting.

Added the two lines to the specified file, no change. No error details were displayed.

I even tried enabling error reporting in my php.ini and that still wouldn't display any errors.

My guess is that there aren't any php code errors associated with it?

XMAP is a great component with really user-friendly installation and set up. Plus customisation is great and it runs smoothly too.

It displays a map with around 470 directory categories without any issues. But does seem to be hiccuping at around 3000 mark and displays parsing errors messages.

I am still not blaming the component, it may be my mtree or even other settings/extensions. However, I have spent weeks trying to make sure everything is in order elsewhere.
Last edited by marxam on Thu Jan 01, 1970 12:00 am, edited 65535 times in total.
Reason: 1
marxam
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Thu May 29, 2008 5:13 pm

Next

Return to Bugs



Who is online

Users browsing this forum: No registered users and 1 guest