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"?>' ?>
--^
sitemap error
Re: sitemap error
Now i get this
XML Parsing Error: no element found
Location: http://domain.tld/scj/sitemap.php
Line Number 1, Column 1:
^
XML Parsing Error: no element found
Location: http://domain.tld/scj/sitemap.php
Line Number 1, Column 1:
^
Re: sitemap error
Do you see html source ?
is everything ok there ?
is everything ok there ?
Don't forget to run script update
Re: sitemap error
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
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
Re: sitemap error
You have to get back old template.
Can you copy it from any other site ?
Can you copy it from any other site ?
Don't forget to run script update
Re: sitemap error
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>
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>
Re: sitemap error
It's not
You miss ' here
<?php echo <?xml version="1.0" encoding="UTF-8"?>'; ?>
You miss ' here
<?php echo <?xml version="1.0" encoding="UTF-8"?>'; ?>
Don't forget to run script update







