sitemap error

dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

sitemap error

Post by dakini »

I did short tag from template like this
<?php echo do_shortcode('<?xml version="1.0" encoding="UTF-8"?>'); ?>
But i still get the same error

XML Parsing Error: not well-formed
Location: http://domain.tld/scj/sitemap.php
Line Number 1, Column 3:<? echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
--^
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sitemap error

Post by admin »

Open it w\o cache.
Don't forget to run script update
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: sitemap error

Post by dakini »

Now i get this

XML Parsing Error: no element found
Location: http://domain.tld/scj/sitemap.php
Line Number 1, Column 1:
^
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sitemap error

Post by admin »

Do you see html source ?
is everything ok there ?
Don't forget to run script update
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: sitemap error

Post by dakini »

source is empty
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sitemap error

Post by admin »

What is do_shortcode ? is it your function ?
Don't forget to run script update
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: sitemap error

Post by dakini »

That was a mistake from me, i understud wrong the thing with shot_tags, i have enable it from php.ini

And now this error

XML Parsing Error: not well-formed
Location: http://domain.tld/scj/sitemap.php
Line Number 1, Column 90:<h1>Warning, can not parse template (sitemap) (Error: Type 4, syntax error, unexpected '<', line 1 ) </h1>1:<?php echo <?xml version="1.0" encoding="UTF-8"?>'; ?>
-----------------------------------------------------------------------------------------^

The source shows the sitemap

here are some lines from source:
<h1>Warning, can not parse template (sitemap) (Error: Type 4, syntax error, unexpected '<', line 1 ) </h1>1:<?php echo <?xml version="1.0" encoding="UTF-8"?>'; ?>
<br>2:<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<br>3: <url>
<br>4: <loc>http://<?=$_SERVER['HTTP_HOST']?>/index.html</loc>
<br>5: <lastmod><? echo date("Y-m-d");?></lastmod>
<br>6: <changefreq>hourly</changefreq>
<br>7: <priority>1.0</priority>
<br>8: </url>
<br>9:<url>
<br>10: <loc>http://<?=$_SERVER['HTTP_HOST']?>/gallery/bilgun-01/index.html</loc>
<br>11: <lastmod>2013-05-30</lastmod>
<br>12: <changefreq>daily</changefreq>
<br>13: <priority>0.5</priority>
<br>14:</url><url>
<br>15: <loc>http://<?=$_SERVER['HTTP_HOST']?>/gallery/humiliation-domme-has-bitchboys-gag-on-her-thick-strap/index.html</loc>
<br>16: <lastmod>2013-04-01</lastmod>


I have enabled short tags from php.ini like this
short_open_tag = On

It was Off by default
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sitemap error

Post by admin »

You have to get back old template.
Can you copy it from any other site ?
Don't forget to run script update
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: sitemap error

Post by dakini »

Old template?

I dont have any other site with scj is the first time i use it thats why im asking too much questions :)

If you mean default template, it is default now,

<?php echo <?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://<?=$_SERVER['HTTP_HOST']?>/index.html</loc>
<lastmod><? echo date("Y-m-d");?></lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>
<!--default_1-1000-->
</urlset>
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sitemap error

Post by admin »

It's not

You miss ' here

<?php echo <?xml version="1.0" encoding="UTF-8"?>'; ?>
Don't forget to run script update
Post Reply