715
edits
No edit summary Tag: 2017 source edit |
|||
| Line 36: | Line 36: | ||
*错误的自定义编号掩码:如果您在掩码中对文件系统中的文件名使用非法字符(如“/”),则在尝试验证文档时会出现错误,因为Dolibarr无法使用您指定的非法字符。请尝试暂时禁用自定义掩码并重新启用默认编号系统,以查看是否修复了问题。 | *错误的自定义编号掩码:如果您在掩码中对文件系统中的文件名使用非法字符(如“/”),则在尝试验证文档时会出现错误,因为Dolibarr无法使用您指定的非法字符。请尝试暂时禁用自定义掩码并重新启用默认编号系统,以查看是否修复了问题。 | ||
= | =我遇到 DB_ERROR 消息= | ||
运行 /install/repair.php 页面。此页面可能需要几分钟才能运行。不要忘记先运行. This page can takes several minutes to run. Don't forget to run a [[Backups|backup]] first. | |||
What repair can do : | What repair can do : | ||
* Run repair SQL file. | |||
* Search list of fields declared and list of fields created into databases, then create fields missing | *Run repair SQL file. | ||
* Clean data into ecm_directories table | *Search list of fields declared and list of fields created into databases, then create fields missing | ||
* Move logos to correct new directory | *Clean data into ecm_directories table | ||
* Rebuild thumbs for product files | *Move logos to correct new directory | ||
* Check and clean linked elements | *Rebuild thumbs for product files | ||
* Check orphelins menus | *Check and clean linked elements | ||
* Run purge of directory | *Check orphelins menus | ||
* Check and clean linked elements | *Run purge of directory | ||
* Clean data into const when files of module were removed without being | *Check and clean linked elements | ||
*Clean data into const when files of module were removed without being | |||
To operate, the page should be opened with at least one command: | To operate, the page should be opened with at least one command: | ||
* /install/repair.php?standard=confirmed | |||
* /install/repair.php?clean_linked_elements=confirmed | */install/repair.php?standard=confirmed | ||
* /install/repair.php?restore_thirdparties_logos=confirmed | */install/repair.php?clean_linked_elements=confirmed | ||
* /install/repair.php?clean_menus=confirmed | */install/repair.php?restore_thirdparties_logos=confirmed | ||
* /install/repair.php?clean_orphelin_dir=confirmed | */install/repair.php?clean_menus=confirmed | ||
* /install/repair.php?clean_product_stock_batch=confirmed | */install/repair.php?clean_orphelin_dir=confirmed | ||
* /install/repair.php?set_empty_time_spent_amount=confirmed | */install/repair.php?clean_product_stock_batch=confirmed | ||
* /install/repair.php?rebuild_product_thumbs=confirmed | */install/repair.php?set_empty_time_spent_amount=confirmed | ||
* /install/repair.php?force_disable_of_modules_not_found=confirmed | */install/repair.php?rebuild_product_thumbs=confirmed | ||
* /install/repair.php?clean_perm_table=confirmed | */install/repair.php?force_disable_of_modules_not_found=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 '=' '' | */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 '=' '' | |||
=I can't upload files= | =I can't upload files= | ||
| Line 73: | Line 75: | ||
==信息== | ==信息== | ||
Depending of your configuration, if you encounter the error | Depending of your configuration, if you encounter the error | ||
< | <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 | 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> | ||
You will have to edit the php.ini | You will have to edit the php.ini | ||
Find the directive upload_tmp_dir: uncomment the line and change its value to a required path. In this example it is "/var/tmp": | Find the directive upload_tmp_dir: uncomment the line and change its value to a required path. In this example it is "/var/tmp": | ||
< | <syntaxhighlight lang="PHP"> | ||
; Temporary directory for HTTP uploaded files (will use system default if not | ; Temporary directory for HTTP uploaded files (will use system default if not | ||
; specified). | ; specified). | ||
; http://php.net/upload-tmp-dir | ; http://php.net/upload-tmp-dir | ||
upload_tmp_dir = /var/tmp | upload_tmp_dir = /var/tmp | ||
</ | </syntaxhighlight> | ||
Additionally for PHP versions 5.5 and greater, find the directive sys_temp_dir: uncomment the line and change its value to a required path. In this example, it is "/var/tmp": | Additionally for PHP versions 5.5 and greater, find the directive sys_temp_dir: uncomment the line and change its value to a required path. In this example, it is "/var/tmp": | ||
< | <syntaxhighlight lang="PHP"> | ||
; Directory where the temporary files should be placed. | ; Directory where the temporary files should be placed. | ||
; Defaults to the system default (see sys_get_temp_dir) | ; Defaults to the system default (see sys_get_temp_dir) | ||
sys_temp_dir = "/var/tmp" | sys_temp_dir = "/var/tmp" | ||
</ | </syntaxhighlight> | ||
And in Vhosts | And in Vhosts | ||
< | <syntaxhighlight lang="c"> | ||
open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}:/var/tmp | open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}:/var/tmp | ||
</ | </syntaxhighlight> | ||
=我的问题不在此前的清单中= | =我的问题不在此前的清单中= | ||
edits