component is not authorized by this account hint: [B3GVCa0189e575] 错误解决?

 component is not authorized by this account hint: [aMADoA0312e514]

component is not authorized by this account hint: [B3GVCa0189e575] 错误解决?

component is not authorized by this account hint: [rIP5ya0345e578]

component is not authorized by this account hint: [bFvHta0360e544]

错误信息为: 访问微信接口错误, 错误代码: 40001, 错误信息: invalid credential, access_token is invalid or not latest hint: [TitxZa0962vr47!],错误详情:微信公众平台授权异常, 系统已修复这个错误, 请刷新页面重试.

 错误信息为: 访问微信接口错误, 错误代码: 40001, 错误信息: invalid credential, access_token is invalid or not latest hint: [00aRpA0280vr57!],错误详情:微信公众平台授权异常, 系统已修复这个错误, 请刷新页面重试.

 访问云服务器错误, 可能原因:
1、您的服务器防火墙屏蔽了云服务器IP;
2、您的服务器IP地址没有授权(系统检测到您的服务器IP为:“'..'”请把这个IP填到“系统管理——注册站点——IP授权管理--填入备用IP栏,进行IP授权);
3、你也可以尝试备用更新:移步备用更新页面

在使用微赞 微擎提示 “请尽快完善您在微赞云服务平台的站点注册信息”。

解决办法修改:/web/common/common.func.

function site_profile_perfect_tips(){
    global $_W;
        return ; // 这里直接返回即可!!!
 
    if ($_W['isfounder'] && (empty($_W['setting']['site']['token']))) {
        if (!defined('SITE_PROFILE_PERFECT_TIPS')) {
            $url = url('cloud/profile');
            return <<<EOF
$(function() {
    var html = 
        '<div id="siteinfo-tips" class="upgrade-tips">'+
            '<a href="{$url}" target="_blank">请尽快完善您在微赞云服务平台的站点注册信息。</a>'+
        '</div>';
    $('body').prepend(html);
});
EOF;
            define('SITE_PROFILE_PERFECT_TIPS', true);
        }
    }
    return '';
}

覆盖到webcommon目录下即可!

以微赞为例解决此类问题: 
打开frameworkmodelcloud.mod.php 找到第23行代码

  1. if(empty($_W['setting']['site']['key']) || empty($_W['setting']['site']['token'])) { 
  2. return error('-1', "您的程序需要在微赞云服务平台注册你的站点资料, 来接入云平台服务后才能使用相应功能.");
  3. }
复制代码


把这三行代码注释掉就可以了,(注释掉就是在每一行的开头加上"//“就可以了),修改成这样:

  1. //if(empty($_W['setting']['site']['key']) || empty($_W['setting']['site']['token'])) {
  2. // return error('-1', "您的程序需要在微赞云服务平台注册你的站点资料, 来接入云平台服务后才能使用相应功能.");
  3. //}
复制代码

然后,在找到第36行

  1. if ($dat['content'] == 'install-module-protect') { 
  2. return error('-1', '此模块已设置版权保护,您只能通过云平台来安装。');
  3. }
复制代码

 
第151行 

  1. if ($dat['content'] == 'install-theme-protect') {
  2. return error('-1', '此模板已设置版权保护,您只能通过云平台来安装。');


分别注释掉就可以了,当然你如果删除掉,也是可以的,但最好还是不要删除

原文地址:https://www.cnblogs.com/endv/p/7306371.html