Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I keep seeing this error in google search console: Your Sitemap or Sitemap index file doesn't properly declare the namespace. Expected: http://www.w3.org/1999/xhtml Found: http://www.w3.org/TR/xhtml11/xhtml11_schema.html, Parent tag: url, Tag: link...

my CMS developer tell me to comment in a php code and I am not sure how to do that:
Here is the help comment:

Do the following:

open this file:
components/com_sitemap/controllers/base.php
go to line 45:
$this->alternate = true;
and comment it:
//$this->alternate = true;

Delete any cached sitemaps (repositoy/cache/) and re-check it.

What I have tried:

I find line 45 which is $this->alternate = true; and added another line under it //$this->alternate = true; ... doing that does not help. shoudl I have just added " //" to the line 45 and that could mean commenting it?
Posted
Updated 10-Oct-16 4:04am
Comments
Afzaal Ahmad Zeeshan 10-Oct-16 10:21am    
Since you don't have programming experience. Why don't you return the file to him and tell him to do that. After all, he is the developer for your platform. Why doesn't he do that?

Hello,

Check this article: PHP: Comments - Manual[^]

Cheers,
José Amílcar Casimiro
 
Share this answer
 
Link to PHP comments: PHP 5 Syntax[^]
This site is good tutorial PHP 5 Tutorial[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900