我的CMS开发人员告诉我在PHP代码中发表评论,我不知道该怎么做 [英] My CMS developer tell me to comment in a PHP code and I am not sure how to do that

查看:50
本文介绍了我的CMS开发人员告诉我在PHP代码中发表评论,我不知道该怎么做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google搜索控制台中一直看到此错误:您的Sitemap或Sitemap索引文件未正确声明命名空间。预计:http://www.w3.org/1999/xhtml发现:http://www.w3.org/TR/xhtml11/xhtml11_schema.html,父标签:url,标签:链接......



我的CMS开发人员告诉我在php代码中发表评论,我不知道该怎么做:

这是帮助评论:



执行以下操作:



打开此文件:

components / com_sitemap / controllers /base.php

转到第45行:

$ this-> alternate = true;

并对其进行评论:

// $ this-> alternate = true;



删除所有缓存的站点地图(repositoy / cache /)并重新检查。



我尝试了什么:



我发现第45行是$ this- > alternate = true;并在其下添加了另一行// $ this-> alternate = true; ......这样做没有用。 shoudl我刚添加 // 的行45,并且可能意味着评论它

解决方案
这 - >备用= TRUE;

并对其进行评论:

//


this-> alternate = true;



删除所有缓存的站点地图(repositoy / cache /)并重新检查它。



我尝试过:



我找到第45行


this-> alternate = true;并在其下添加了另一行//


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?

解决方案

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 //


这篇关于我的CMS开发人员告诉我在PHP代码中发表评论,我不知道该怎么做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆