故障排除: Difference between revisions
(initialization) Tag: 2017 source edit |
(→信息) |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- BEGIN interlang links --> | |||
<!-- Do NOT edit this section | |||
Links below are automatically managed by PolyglotBot | |||
You can edit links on the English source page : Troubleshooting --> | |||
[[en:Troubleshooting]] | |||
[[fr:Troubleshooting_FR]] | |||
[[es:Troubleshooting_ES]] | |||
<!-- END interlang links --> | |||
[[Category:FAQ_ZH]] | [[Category:FAQ_ZH]] | ||
本页面列出了您在使用过程中可能遇到的常见技术问题。 | |||
如果遇到问题,首先要激活 Syslog 模块,其次重复导致错误的操作,最后检查日志文件 '''/documents/dolibarr.log 。''' | |||
''' | =Dolibarr每次点击链接都会询问我的登录名/密码= | ||
= | 您的PHP sessions 存储系统可能有缺陷。 | ||
前往菜单 '''主页 - 管理工具 - 用户会话''' | |||
参数 “session.save_handler” 的值是多少? | |||
如果是'''files''',请查看参数“session.save_path”。其值必须是一个目录路径。检查web服务器是否具有读取和写入此目录的权限。检查磁盘上是否有剩余空间。 | |||
= | =我无法验证发票/报价单/订单/任何其他模块= | ||
验证文档时,Dolibarr会将属于旧临时文档的文件夹和文件重命名为其最终名称。 | |||
在大多数情况下,此重命名过程中会出现验证问题,可能由以下原因引起: | |||
* | *文件夹 /documents/ 的权限不正确,导致Dolibarr无法重命名子文件夹。如果是这种情况,您应该会在日志中看到以下内容: | ||
<source lang=text> | <source lang="text"> | ||
ERROR 127.0.0.1 user fiche Interfaces::run_triggers action=ORDER_SUPPLIER_VALIDATE Files found: 6, Files launched: 5, Done: 0, Failed: 1 | ERROR 127.0.0.1 user fiche Interfaces::run_triggers action=ORDER_SUPPLIER_VALIDATE Files found: 6, Files launched: 5, Done: 0, Failed: 1 | ||
ERROR 127.0.0.1 user fiche CommandeFournisseur::valid | ERROR 127.0.0.1 user fiche CommandeFournisseur::valid | ||
| Line 26: | Line 34: | ||
</source> | </source> | ||
* | *错误的自定义编号掩码:如果您在掩码中对文件系统中的文件名使用非法字符(如“/”),则在尝试验证文档时会出现错误,因为Dolibarr无法使用您指定的非法字符。请尝试暂时禁用自定义掩码并重新启用默认编号系统,以查看是否修复了问题。 | ||
=我遇到 DB_ERROR 消息= | |||
运行 /install/repair.php 页面。运行此页面可能需要几分钟时间。不要忘记先运行 [[备份]] 。 | |||
repair.php 可以做些什么: | |||
*运行 repair SQL 文件。 | |||
*搜索已声明的字段列表和已创建到数据库中的字段列表,然后创建缺少的字段 | |||
*将数据清除到表 ecm_directories 中 | |||
*将 logos 移动到正确的新目录 | |||
*重建产品文件的缩略图 | |||
*检查并清理链接的元素 | |||
*检查孤儿菜单 | |||
*运行目录 purge | |||
*当模块的文件被删除而没有 | |||
*当模块文件被删除而不存在时,将数据清理为const | |||
要进行repair操作,应至少使用一个命令打开页面: | |||
*/install/repair.php?standard=confirmed | |||
*/install/repair.php?clean_linked_elements=confirmed | |||
*/install/repair.php?restore_thirdparties_logos=confirmed | |||
*/install/repair.php?clean_menus=confirmed | |||
*/install/repair.php?clean_orphelin_dir=confirmed | |||
*/install/repair.php?clean_product_stock_batch=confirmed | |||
*/install/repair.php?set_empty_time_spent_amount=confirmed | |||
*/install/repair.php?rebuild_product_thumbs=confirmed | |||
*/install/repair.php?force_disable_of_modules_not_found=confirmed | |||
*/install/repair.php?clean_perm_table=confirmed | |||
*/install/repair.php?force_utf8_on_tables=confirmed for Mysql only, when ''Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' '' | |||
=无法上传文件= | |||
==文件尺寸太大== | |||
上传文件时收到“文件太大”消息。可上传文件的最大尺寸限制有两处配置点: | |||
*第一个限制是在Dolibarr的菜单 '''主页-设置-安全-文件(上传)选项卡''' 中。增加该值。 | |||
*第二个限制位于PHP服务器配置。在这种情况下,您需要更改 php.ini 文件中的参数 '''upload_max_filesize''' 。这需要管理员去访问PHP服务器。 | |||
==配置错误== | |||
根据您的配置,如果您遇到错误: | |||
<syntaxhighlight lang="PHP"> | |||
Warning: tempnam(): open_basedir restriction in effect. File(C:\WINDOWS\TEMP) is not within the allowed path(s): (c:/dolibarr) in C:\dolibarr\www\dolibarr\htdocs\core\modules\import\import_xlsx.modules.php on line 182 | |||
</syntaxhighlight> | |||
您必须编辑文件php.ini。 | |||
查找指令 upload_tmp_dir :取消注释该行并将其值更改为所需的路径。在本例中,它是“/var/tmp”: | |||
<syntaxhighlight lang="PHP"> | |||
; Temporary directory for HTTP uploaded files (will use system default if not | |||
; specified). | |||
; http://php.net/upload-tmp-dir | |||
upload_tmp_dir = /var/tmp | |||
</syntaxhighlight> | |||
此外,对于PHP 5.5及更高版本,可以找到指令 sys_temp_dir :取消对该行的注释,并将其值更改为所需的路径。在本例中,它是“/var/tmp”: | |||
<syntaxhighlight lang="PHP"> | |||
; Directory where the temporary files should be placed. | |||
; Defaults to the system default (see sys_get_temp_dir) | |||
sys_temp_dir = "/var/tmp" | |||
</syntaxhighlight> | |||
在Vhosts中: | |||
= | <syntaxhighlight lang="c"> | ||
= | open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}:/var/tmp | ||
</syntaxhighlight> | |||
[[ | =我的问题不在此前的清单中= | ||
==获取调试信息== | |||
Dolibarr有一个记录它所做的事情和遇到的错误的日志系统。您的web服务器也是。请参阅 [[Gestion d'erreur|syslog模块]] 。 | |||
==获取调试信息== | |||
如果您无法通过此列表找到问题的解决方案,请尝试收集尽可能多的详细信息(如Dolibarr日志、PHP版本、数据库类型和版本、Dolibarr版本、Apache日志…),并查看此页面以找到可以帮助您的组织:[[Dolibarr help and support|Dolibarr帮助与支持]] | |||
Latest revision as of 08:13, 16 October 2023
本页面列出了您在使用过程中可能遇到的常见技术问题。
如果遇到问题,首先要激活 Syslog 模块,其次重复导致错误的操作,最后检查日志文件 /documents/dolibarr.log 。
Dolibarr每次点击链接都会询问我的登录名/密码
您的PHP sessions 存储系统可能有缺陷。
前往菜单 主页 - 管理工具 - 用户会话
参数 “session.save_handler” 的值是多少?
如果是files,请查看参数“session.save_path”。其值必须是一个目录路径。检查web服务器是否具有读取和写入此目录的权限。检查磁盘上是否有剩余空间。
我无法验证发票/报价单/订单/任何其他模块
验证文档时,Dolibarr会将属于旧临时文档的文件夹和文件重命名为其最终名称。
在大多数情况下,此重命名过程中会出现验证问题,可能由以下原因引起:
- 文件夹 /documents/ 的权限不正确,导致Dolibarr无法重命名子文件夹。如果是这种情况,您应该会在日志中看到以下内容:
ERROR 127.0.0.1 user fiche Interfaces::run_triggers action=ORDER_SUPPLIER_VALIDATE Files found: 6, Files launched: 5, Done: 0, Failed: 1
ERROR 127.0.0.1 user fiche CommandeFournisseur::valid
DEBUG 127.0.0.1 user fiche ROLLBACK Transaction
- 错误的自定义编号掩码:如果您在掩码中对文件系统中的文件名使用非法字符(如“/”),则在尝试验证文档时会出现错误,因为Dolibarr无法使用您指定的非法字符。请尝试暂时禁用自定义掩码并重新启用默认编号系统,以查看是否修复了问题。
我遇到 DB_ERROR 消息
运行 /install/repair.php 页面。运行此页面可能需要几分钟时间。不要忘记先运行 备份 。
repair.php 可以做些什么:
- 运行 repair SQL 文件。
- 搜索已声明的字段列表和已创建到数据库中的字段列表,然后创建缺少的字段
- 将数据清除到表 ecm_directories 中
- 将 logos 移动到正确的新目录
- 重建产品文件的缩略图
- 检查并清理链接的元素
- 检查孤儿菜单
- 运行目录 purge
- 当模块的文件被删除而没有
- 当模块文件被删除而不存在时,将数据清理为const
要进行repair操作,应至少使用一个命令打开页面:
- /install/repair.php?standard=confirmed
- /install/repair.php?clean_linked_elements=confirmed
- /install/repair.php?restore_thirdparties_logos=confirmed
- /install/repair.php?clean_menus=confirmed
- /install/repair.php?clean_orphelin_dir=confirmed
- /install/repair.php?clean_product_stock_batch=confirmed
- /install/repair.php?set_empty_time_spent_amount=confirmed
- /install/repair.php?rebuild_product_thumbs=confirmed
- /install/repair.php?force_disable_of_modules_not_found=confirmed
- /install/repair.php?clean_perm_table=confirmed
- /install/repair.php?force_utf8_on_tables=confirmed for Mysql only, when Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='
无法上传文件
文件尺寸太大
上传文件时收到“文件太大”消息。可上传文件的最大尺寸限制有两处配置点:
- 第一个限制是在Dolibarr的菜单 主页-设置-安全-文件(上传)选项卡 中。增加该值。
- 第二个限制位于PHP服务器配置。在这种情况下,您需要更改 php.ini 文件中的参数 upload_max_filesize 。这需要管理员去访问PHP服务器。
配置错误
根据您的配置,如果您遇到错误:
Warning: tempnam(): open_basedir restriction in effect. File(C:\WINDOWS\TEMP) is not within the allowed path(s): (c:/dolibarr) in C:\dolibarr\www\dolibarr\htdocs\core\modules\import\import_xlsx.modules.php on line 182
您必须编辑文件php.ini。
查找指令 upload_tmp_dir :取消注释该行并将其值更改为所需的路径。在本例中,它是“/var/tmp”:
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
upload_tmp_dir = /var/tmp
此外,对于PHP 5.5及更高版本,可以找到指令 sys_temp_dir :取消对该行的注释,并将其值更改为所需的路径。在本例中,它是“/var/tmp”:
; Directory where the temporary files should be placed.
; Defaults to the system default (see sys_get_temp_dir)
sys_temp_dir = "/var/tmp"
在Vhosts中:
open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}:/var/tmp
我的问题不在此前的清单中
获取调试信息
Dolibarr有一个记录它所做的事情和遇到的错误的日志系统。您的web服务器也是。请参阅 syslog模块 。
获取调试信息
如果您无法通过此列表找到问题的解决方案,请尝试收集尽可能多的详细信息(如Dolibarr日志、PHP版本、数据库类型和版本、Dolibarr版本、Apache日志…),并查看此页面以找到可以帮助您的组织:Dolibarr帮助与支持