All Projects → sy-records → Wordpress Qcloud Cos

sy-records / Wordpress Qcloud Cos

Licence: apache-2.0
💾 使用腾讯云对象存储服务COS作为附件存储空间的WordPress插件。QQ交流群:887595381

Projects that are alternatives of or similar to Wordpress Qcloud Cos

Wp Gdpr Core
This WordPress plugin assists you in making your website ready for the GDPR. We try to cover the core WordPress features with this plugin.
Stars: ✭ 31 (-65.93%)
Mutual labels:  plugin, wordpress-plugin
Super Progressive Web Apps
SuperPWA helps to convert your WordPress website into Progressive Web Apps instantly. PWA (Progressive Web Apps) demo at : https://superpwa.com and Plugin :
Stars: ✭ 304 (+234.07%)
Mutual labels:  plugin, wordpress-plugin
Sportspress
An open source league statistics plugin for WordPress created by ThemeBoy.
Stars: ✭ 124 (+36.26%)
Mutual labels:  plugin, wordpress-plugin
Kirki
Extending the customizer
Stars: ✭ 1,175 (+1191.21%)
Mutual labels:  plugin, wordpress-plugin
Wordpress Indieweb
Helps you establish your IndieWeb identity by extending the user profile to provide rel-me and h-card fields. It also includes a bundled installer for a core set of IndieWeb-related plugins.
Stars: ✭ 64 (-29.67%)
Mutual labels:  plugin, wordpress-plugin
Wp Shopify
🎉 Sell and build custom Shopify experiences on WordPress.
Stars: ✭ 38 (-58.24%)
Mutual labels:  plugin, wordpress-plugin
Live Composer Page Builder
Free page builder plugin for WordPress http://livecomposerplugin.com
Stars: ✭ 143 (+57.14%)
Mutual labels:  plugin, wordpress-plugin
Wordpress Pubsubhubbub
WebSub/PubSubHubbub for WordPress
Stars: ✭ 49 (-46.15%)
Mutual labels:  plugin, wordpress-plugin
Wordpress Plugin Installer
A PHP class for installing and activating WordPress plugins.
Stars: ✭ 69 (-24.18%)
Mutual labels:  plugin, wordpress-plugin
Jetpack
Security, performance, marketing, and design tools — Jetpack is made by the WordPress experts to make WP sites safer and faster, and help you grow your traffic.
Stars: ✭ 1,283 (+1309.89%)
Mutual labels:  plugin, wordpress-plugin
Vueno
Vue Conversion Plugin
Stars: ✭ 89 (-2.2%)
Mutual labels:  plugin
Entityframeworkcore.dataencryption
A plugin for Microsoft.EntityFrameworkCore to add support of encrypted fields using built-in or custom encryption providers.
Stars: ✭ 88 (-3.3%)
Mutual labels:  plugin
Z1 Aggressorscripts
适用于Cobalt Strike的插件
Stars: ✭ 91 (+0%)
Mutual labels:  plugin
Vue Raven
vue-raven automatically reports uncaught JavaScript exceptions triggered from vue component
Stars: ✭ 91 (+0%)
Mutual labels:  plugin
Wp Less
WordPress plugin which seemlessly compiles, caches and rebuilds your LESS stylesheets.
Stars: ✭ 88 (-3.3%)
Mutual labels:  wordpress-plugin
Sketch Dockpreview
A Sketch plugin that lets you preview your current artboard in the Dock.
Stars: ✭ 90 (-1.1%)
Mutual labels:  plugin
Tingle
⚡ 2kB vanilla modal plugin, no dependencies and easy-to-use
Stars: ✭ 1,287 (+1314.29%)
Mutual labels:  plugin
Pawn.raknet
🛡 Plugin for SA:MP server that allows you to analyze RakNet traffic
Stars: ✭ 89 (-2.2%)
Mutual labels:  plugin
Paster
Pasting a text data from a clipboard directlly to Sketch text layers [Sketch plugin]
Stars: ✭ 88 (-3.3%)
Mutual labels:  plugin
Autovalueplugin
AutoValue plugin for IntelliJ
Stars: ✭ 91 (+0%)
Mutual labels:  plugin

Sync QCloud COS

Sync QCloud COS

使用腾讯云对象存储服务 COS 作为附件存储空间的 WordPress 插件

Latest Version License website contributors plugin stars plugin installs

插件特色

  • [x] 可配置是否上传缩略图和是否保留本地备份
  • [x] 本地删除可同步删除腾讯云上面的文件
  • [x] 支持腾讯云COS存储桶绑定自定义域名
  • [x] 支持替换数据库中旧的资源链接地址
  • [x] 支持北京、上海、广州、香港、法兰克福等完整地域使用
  • [x] 支持同步历史附件到 COS
  • [x] 支持验证桶名是否填写正确
  • [x] 支持腾讯云数据万象 CI 图片处理
  • [x] 支持上传文件自动重命名

安装

后台安装(推荐使用)

WordPress 后台安装插件页面搜索Sync QCloud COS,点击安装

下载源码

从 Github 下载源码,通过 WordPress 后台上传安装,或者直接将源码上传到 WordPress 插件目录wp-content/plugins,然后在后台启用

Github 下载节点:https://github.com/sy-records/wordpress-qcloud-cos/releases/latest

修改配置

  • 方法一:在 WordPress 插件管理页面有设置按钮,进行设置
  • 方法二:在 WordPress 后台管理左侧导航栏设置腾讯云COS设置,点击进入设置页面

Contributors

This project exists thanks to all the people who contribute. [Contributors].

常见问题

  1. 怎么替换文章中之前的旧资源地址链接

这个插件已经加上了替换数据库中之前的旧资源地址链接功能,只需要填好对应的链接即可

  1. 使用子账户报错Cos Error Code: AccessDenied, Status Code: 403

可以使用子账户,但是 APPID 需要填写为存储桶创建者的ID,而不是子账户的ID。例如下文配置指南中的1250000000就是APPID

  1. 上传图片提示图像后期处理失败,请将其缩小到2500像素并重新上传

1)配置的存储桶名称填写错误,正确的配置参照 配置指南 中的存储桶名称

v1.6.1 版本增强了校验,填写错误会给予提示;同时兼容了桶名称附带APPID的情况

2)图片确实像素大于2500px,可以在functions.php中加入以下代码禁止大图片裁剪功能

add_filter('big_image_size_threshold', '__return_false');
  1. 从媒体库中删除了图片,但是COS中还是存在

原因是在配置页面选择了不在本地保留备份,因为WordPress机制问题,无法获取对应的文件信息

  1. 在插件中应该如何使用腾讯云数据万象CI

参考:腾讯云对象存储COS + 数据万象CI = 完善的图片解决方案腾讯云文档 - 使用图片样式

  1. 保存配置时报错:您的站点遇到了致命错误,请查看您的站点的管理电子邮箱来获得指引

这个问题应该只出现在Windows的机器上,打开WP_DEBUG的话会报错:Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate,解决方法如下:

1)从 https://curl.haxx.se/ca/cacert.pem 下载最新的cacert.pem
2)将以下行添加到php.ini中,注意修改对应的路径

curl.cainfo=/path/to/cacert.pem
  1. 保存配置时提示:ErrorCode:xxx, ErrorMessage:xxxx。如:ErrorCode:403, ErrorMessage:Request has expired

这种问题请直接前往腾讯云 对象存储文档 搜索对应的ErrorMessage信息即可,或者访问 对象存储错误码列表

配置指南

查看详细教程https://qq52o.me/2722.html

  • 存储桶设置

访问 腾讯云控制台 创建存储桶,把创建存储桶时要求你填写的存储桶名称,把存储桶名称填到这里就可以了,没有后面的-appid
examplebucket-1250000000,其中examplebucket为存储桶名称,1250000000为 APPID。

  • 存储桶地域

选择你创建存储桶时所选的地域即可。
如果地域选择全球加速,则在COS控制台中开启全球加速服务,具体方法和资费问题请查看 全球加速官方文档

  • APP ID、SecretID、SecretKey

APP ID 填写上文存储桶设置中所说的125000000即可;也可以访问 腾讯云控制台 获取 APP ID、SecretID、SecretKey

插件截图

设置页面

update-wordpress-posts-photos.png

更新记录

点击查看

2021-03-17

  • 添加 get_home_path 方法判断
  • 支持 WordPress 5.7 版本

2021-01-24

  • 优化配置校验逻辑
  • 支持删除非图片类型文件

2020-12-13

  • 修复版本号
  • 修复勾选不上传缩略图后不会删除云端缩略图
  • 升级 COS SDK 版本
  • 支持 WordPress 5.6 版本

2020-08-11

  • 修复多站点上传原图失败,缩略图正常问题
  • 优化上传路径获取

2020-07-24

  • 优化同步上传路径获取

2020-06-16

  • 修改常见问题和相关链接

2020-05-22

  • 增加南京地域

2020-05-15

  • 增加替换题图数据库链接

2020-05-04

  • 支持上传文件自动重命名
  • 支持特色图片使用图片处理

2020-04-22

  • 增加金融云地域
  • 升级SDK至v2.0.8

2020-04-10

  • 修复勾选不在本地保存图片后媒体库显示默认图片问题
  • 修复删除错误

2020-04-02

  • 修复勾选不在本地保存图片后媒体库显示默认图片问题
  • 优化删除文件逻辑

2020-04-01

  • 增加腾讯云数据万象图片处理

2020-03-29

  • 优化deactivation_hook,禁用时可选删除配置和恢复URL前缀

2020-03-27

  • 增加插件禁用事件,可选择是否删除配置
  • 增加上传文件try catch,提示文件上传错误时请打开控制台查看对应请求的Response输出信息
  • 修复首尔地域错误,感谢서대현反馈

2020-03-11

  • 更新腾讯云SDK至v2.0.7版本
  • 修改上个版本插件文件末尾空白符号问题

2020-02-16

  • 更新腾讯云SDK至v2.0.6版本

2020-02-09

  • 增强存储桶配置验证
  • cos client增加schema
  • 修复腾讯云cos返回数据格式不一致问题

2020-01-15

  • 升级sdk为v5版本
  • 修复本地文件夹和URL前缀结尾/去除失败
  • 优化URL前缀注意事项提示中的http和https

2020-01-14

  • 优化button按钮样式
  • 优化sdk中的代码

v4 sdk的最后一个版本

2020-01-09

  • 修复第一次删除文件失败,报错ERROR_PROXY_APPID_USERID_NOTMATCH,导致删除文件不完整
  • 优化删除逻辑
  • 移除时区设置
  • 增加发布版本链接
  • 修改README中的常见问题

2019-11-23

  • 修复地域选择上海地区跳转华中问题

2019-11-13

  • 修复导致评论时间戳差 8 小时问题

2018-11-30

  • 增加数据库链接替换功能

2018-11-04

  • 添加北京、香港、法兰克福等完整地域使用

2018-10-30

  • 修复变量未定义错误

2018-09-01

  • 新增错误 Case

2018-05-22

  • 接手更新,创建仓库
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].