Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello, GitHub Deploy tips: what's wrong with insufficient permissions #484

Open
muchenkezhan opened this issue Mar 3, 2022 · 6 comments

Comments

@muchenkezhan
Copy link

muchenkezhan commented Mar 3, 2022

What's going on? My code is like this
require 'include/update/plugin-update-checker.php'; function UpdateCheck($url,$flag = 'qzdy'){ return Puc_v4_Factory::buildUpdateChecker( 'https://github.com/muchenkezhan/wordpress-qzdy-themes', __FILE__, 'qzdy-theme' ); } switch(_qzdy('qzdy_update_source')){ case 'github': $myUpdateChecker = UpdateCheck('https://github.com/muchenkezhan/wordpress-qzdy-themes','qzdy-theme'); break; case 'qzdy': $myUpdateChecker = UpdateCheck('https://www.xxx.cn/details.json'); }
In addition to the above code, where else do I need to set? Mine is an open warehouse

@muchenkezhan
Copy link
Author

muchenkezhan commented Mar 3, 2022

require 'include/update/plugin-update-checker.php';
function UpdateCheck($url,$flag = 'qzdy'){
return Puc_v4_Factory::buildUpdateChecker(
'https://github.com/muchenkezhan/wordpress-qzdy-themes',
FILE,
'qzdy-theme'
);
}
switch(_qzdy('qzdy_update_source')){
case 'github':
$myUpdateChecker = UpdateCheck('https://github.com/muchenkezhan/wordpress-qzdy-themes','qzdy-theme');
break;
case 'qzdy':
$myUpdateChecker = UpdateCheck('https://www.xxx.cn/details.json');
}

@muchenkezhan
Copy link
Author

Tips: 更新失败:因为我们不能复制一些文件,升级未被安装。这通常是因为存在不一致的文件权限。

@muchenkezhan muchenkezhan changed the title Hello, the download of GitHub deployment has not been prompted. What's the matter with the update Hello, GitHub Deploy tips: what's wrong with insufficient permissions Mar 3, 2022
@YahnisElsts
Copy link
Owner

Sorry, I don't understand what you're asking. What are you trying to do? If it's about that error message, my understanding (based on a Google Translate translation) is that it has to do with file permissions, so it's probably not related to this update checker.

Tip: You post formatted PHP code like this:

```php
//Code here
```

See this page for more information:
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

@muchenkezhan
Copy link
Author

require 'include/update/plugin-update-checker.php';
function UpdateCheck($url,$flag = 'qzdy'){
    return Puc_v4_Factory::buildUpdateChecker(
        $url,
        __FILE__,
      $flag
    );
 } 
switch(_qzdy('qzdy_update_source')){
    case 'github':
        $myUpdateChecker = UpdateCheck('https://github.com/muchenkezhan/wordpress-qzdy-themes','qzdy');
        break;
    case 'qzdy':
        $myUpdateChecker = UpdateCheck('https://www.xxx.cn/details.json');
}

Can you help me see if my warehouse has permission problems? I'm not good at GitHub 。
Using GitHub update, in addition to the above code, which code needs to be modified 。

@muchenkezhan
Copy link
Author

对不起,我不明白你在问什么。你想做什么?如果是关于那个错误消息,我的理解(基于谷歌翻译)是它与文件权限有关,所以它可能与这个更新检查器无关。

提示:您可以像这样发布格式化的 PHP 代码:

```php
//Code here

有关更多信息,请参阅此页面: [https ://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks)
require 'include/update/plugin-update-checker.php';
function UpdateCheck($url,$flag = 'qzdy'){
    return Puc_v4_Factory::buildUpdateChecker(
        $url,
        __FILE__,
      $flag
    );
 } 
switch(_qzdy('qzdy_update_source')){
    case 'github':
        $myUpdateChecker = UpdateCheck('https://github.com/muchenkezhan/wordpress-qzdy-themes','qzdy');
        break;
    case 'qzdy':
        $myUpdateChecker = UpdateCheck('https://www.xxx.cn/details.json');
}

Sorry, I don't understand what you're asking. What are you trying to do? If it's about that error message, my understanding (based on a Google Translate translation) is that it has to do with file permissions, so it's probably not related to this update checker.

Tip: You post formatted PHP code like this:

```php
//Code here

See this page for more information: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks
require 'include/update/plugin-update-checker.php';
function UpdateCheck($url,$flag = 'qzdy'){
    return Puc_v4_Factory::buildUpdateChecker(
        $url,
        __FILE__,
      $flag
    );
 } 
switch(_qzdy('qzdy_update_source')){
    case 'github':
        $myUpdateChecker = UpdateCheck('https://github.com/muchenkezhan/wordpress-qzdy-themes','qzdy');
        break;
    case 'qzdy':
        $myUpdateChecker = UpdateCheck('https://www.xxx.cn/details.json');
}

Can you help me see if my warehouse has permission problems? I'm not good at GitHub 。
Using GitHub update, in addition to the above code, which code needs to be modified 。

@YahnisElsts
Copy link
Owner

This does not look like a GitHub problem. Based on the error message that you posted earlier, the problem might be something on your WordPress site, such as incorrect file permissions.

Do updates work correctly when you're not using GitHub? If so, are there any differences between the ZIP file that would be downloaded from GitHub and the ZIP file that's specified in details.json?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants