move code up one directory
[atutor.git] / documentation / admin / troubleshooting.php
1 <?php require('../common/body_header.inc.php'); $lm = '$LastChangedDate$'; ?>
2
3 <h2>Troubleshooting</h2>
4         <p>A variety of strategies are available for troubleshooting an ATutor installation that may not be functioning properly.</p>
5         <dl>
6                 <dt><kbd>AT_DEVEL</kbd></dt>
7                 <dd>Near the top of the <kbd>include/vitals.inc.php</kbd> file, set the value of <kbd>AT_DEVEL</kbd> to <kbd>true</kbd>. This will display your session variables at the bottom of the screen. It will also display the variable names associated with all feedback messages, so they are easier to find through the language manager if you wish to modify their language.  The <kbd>debug()</kbd> function will also become available, allowing testers to print out any type of variable in an easily readable format.</dd>
8
9                 <dt><kbd>debug(mixed variable [, string title])</kbd></dt>
10                 <dd>It is possible to display the value of variables using <kbd>debug()</kbd>. <kbd>variable</kbd> is the PHP variable to output. <kbd>title</kbd> is an optional title that can be printed inside the debugging box to easily identify which variable is being outputted.
11 <pre>debug($_SESSION); // print current session variables
12 debug($_REQUEST); // print all GET, POST, and COOKIE variables
13 </pre>
14
15                 </dd>
16                 <dt>Error Logging</dt>
17                 <dd>View the error log through the <a href="system_preferences.php">System Preferences</a> section. There may be information in the error reports that can help you identify where or how an error occured. The output from the error log can be sent to the ATutor team to aid them in finding a solution to your problem.</dd>
18
19                 <dt><kbd>phpinfo()</kbd></dt>
20                 <dd>Often, system problems can be fixed by reviewing the phpinfo page. This will show all of the configuration options for your system. Review the <a href="requirements_recommendations.php">Requirement &amp; Recommendations</a> for different values that should be set and displayed in the phpinfo output. Below is the contents of a phpinfo file. Viewing this page in a browser will show the system variables.<br /><br />
21 <pre>
22 &lt;?php
23 phpinfo();
24 ?&gt;
25 </pre>
26 </dd>
27 <p>Also see the <a href="../developer/guidelines.html">Developer Documentation</a> for details about modifying the source code.</p>
28                 </dd>
29         </dl>
30 <?php require('../common/body_footer.inc.php');?>