英溯IT论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 16|回复: 3

CiviCRM Installed

[复制链接]

122

主题

156

帖子

735

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
735
发表于 2025-6-20 04:16:27 | 显示全部楼层 |阅读模式
  • 编辑 MySQL 配置文件 my.cnf(路径如前面提到的 /etc/my.cnf)

[mysqld]log_bin_trust_function_creators=1


回复

使用道具 举报

122

主题

156

帖子

735

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
735
 楼主| 发表于 2025-6-20 04:21:13 | 显示全部楼层
修改 PHP open_basedir 配置,允许访问 /tmp
你需要在 PHP 的配置(通常是 php.ini 或宝塔面板的 PHP 设置里)找到 open_basedir,把 /tmp 添加进去。
例如:
open_basedir = /www/wwwroot/:/www/server/nginx/sbin/:/usr/bin/:/www/server/mysql/bin/:/dev/urandom:/tmp


回复

使用道具 举报

122

主题

156

帖子

735

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
735
 楼主| 发表于 2025-6-20 04:45:30 | 显示全部楼层
Warning: include(/home/wwwroot/jp.chaoren.group/wp-content/uploads/civicrm/templates_c/zh_CN//%%E6/E65/E656EDCD%%wordpress.tpl.php): Failed to open stream: No such file or directory in /home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1383

Warning: include(): Failed opening '/home/wwwroot/jp.chaoren.group/wp-content/uploads/civicrm/templates_c/zh_CN//%%E6/E65/E656EDCD%%wordpress.tpl.php' for inclusion (include_path='/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/afform/core/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/authx/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/search_kit/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/flexmailer/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/ckeditor4/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/recaptcha/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/financialacls/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/ext/greenwich/:.:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/packages:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/pear_exception:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/auth_sasl:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/console_getopt:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/pear-core-minimal/src:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/db:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/log:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/mail:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/mail_mime:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/net_socket:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/net_smtp:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/vendor/pear/validate_finance_creditcard:.:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/:/home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm//packages:.:') in /home/wwwroot/jp.chaoren.group/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1383


你启用了 zh_CN,但是 CiviCRM 默认不带完整中文模板,导致 zh_CN 下的 wordpress.tpl.php 模板无法生成。
解决方法:
  • 确保你安装了 zh_CN 的 CiviCRM 本地化语言包。
  • 下载语言包后放入:

wp-content/uploads/civicrm/l10n/zh_CN/

你可以从 CiviCRM 的 GitHub 下载本地化包:
回复

使用道具 举报

122

主题

156

帖子

735

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
735
 楼主| 发表于 2025-6-20 04:57:03 | 显示全部楼层
安装 cv 命令行工具(CiviCRM CLI)

curl -Ls https://download.civicrm.org/cv/cv.phar -o /usr/local/bin/cv
chmod +x /usr/local/bin/cv

cv --version
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|英溯IT论坛 ( 沪ICP备13022730号-6 )

GMT+8, 2025-7-1 16:17 , Processed in 0.133124 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表