Changes

m
Line 1: Line 1:  +
<!-- BEGIN origin interlang links -->
 +
<!-- You can edit this section but do NOT remove these comments
 +
    Links below will be automatically replicated on translated pages by PolyglotBot -->
 +
[[fr:Troubleshooting_FR]]
 +
[[es:Troubleshooting_ES]]
 +
[[zh:故障排除]]
 +
<!-- END interlang links -->
 +
 
[[Category:FAQ_EN]]
 
[[Category:FAQ_EN]]
 
This page will list all the common technical problems you can run into.
 
This page will list all the common technical problems you can run into.
   −
If you run into a problem, the first step is to activate the Syslog module, then to redo the steps that leads you to a bug, and then check the log file residing at '''/documents/dolibarr.log'''
      
= Dolibarr ask my login or password each time I click on a new link =
 
= Dolibarr ask my login or password each time I click on a new link =
Line 22: Line 29:  
* A wrong permission for the /documents/ folder, so that Dolibarr can't rename the folder. If that's the case, you should have in your syslog something like:
 
* A wrong permission for the /documents/ folder, so that Dolibarr can't rename the folder. If that's the case, you should have in your syslog something like:
   −
<source lang=text>
+
<syntaxHighlight 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  
 
DEBUG 127.0.0.1 user fiche ROLLBACK Transaction
 
DEBUG 127.0.0.1 user fiche ROLLBACK Transaction
</source>
+
</syntaxHighlight>
    
* A wrong custom numerotation system: if you use illegal characters for the filesystem (like "/"), this will crash whenever you'll try to validate your document since it won't be able to use this illegal character in the renaming. Try to disable your current custom numerotation system and enable the default one temporarily to see if this fixes the issue.
 
* A wrong custom numerotation system: if you use illegal characters for the filesystem (like "/"), this will crash whenever you'll try to validate your document since it won't be able to use this illegal character in the renaming. Try to disable your current custom numerotation system and enable the default one temporarily to see if this fixes the issue.
Line 63: Line 70:     
Depending of your configuration, if you encounter the error
 
Depending of your configuration, if you encounter the error
<source lang="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
 
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
</source>
+
</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":
   −
<source lang="php">
+
<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
</source>
+
</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":
<source lang="php">
+
<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"
</source>
+
</syntaxHighlight>
    
And in Vhosts  
 
And in Vhosts  
<source lang="c">
+
<syntaxHighlight lang="c">
 
open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}:/var/tmp
 
open_basedir = {WEBSPACEROOT}{/}{:}{TMP}{/}:/var/tmp
</source>
+
</syntaxHighlight>
    
= My problem is not in the list =
 
= My problem is not in the list =
 +
==Getting debug information==
 +
Dolibarr has a system to record logs of what it does and which errors occur. If you run into a problem, the first step is to activate the [[Error reporting|Log Debug]] module, then redo the steps that leads you to a bug, and then check the log file residing at '''/documents/dolibarr.log'''
 +
 +
Your web server has also error logging feature. See [[Error reporting|Log Debug]].
   −
If the solution for your problem couldn't be found in this page, please keep in a safe place a maximum of detailed informations (like the dolibarr log, php version, database type and version, dolibarr's version, Apache's log...), and seek help at the following organisms:
+
==Help and support==
 +
If the solution for your problem couldn't be found with tools in this page, please keep in a safe place a maximum of detailed informations (like the dolibarr log, php version, database type and version, dolibarr's version, Apache's log...), and seek help using one of those channels:
    
http://wiki.dolibarr.org/index.php/Dolibarr_help_and_support
 
http://wiki.dolibarr.org/index.php/Dolibarr_help_and_support