From: moodler Date: Sat, 26 Apr 2003 05:40:24 +0000 (+0000) Subject: More cleanup X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d1db7bee92417a04083cdcbf5108825afc991c25;p=moodle.git More cleanup --- diff --git a/lang/en/docs/faq.html b/lang/en/docs/faq.html index 3817581024..2ea703e9e6 100644 --- a/lang/en/docs/faq.html +++ b/lang/en/docs/faq.html @@ -28,6 +28,12 @@ border: none; padding-left: 10px; } +.answercode { + font-family: "Courier New", Courier, mono; + font-size: small; + border: none; + padding-left: 60px; +} --> @@ -65,25 +71,22 @@

 

PHP - is it installed and what version do I have?

-
-

Make a new file on your web site called info.php, containing the following +

Make a new file on your web site called info.php, containing the following text, and call it from your browser:

-
      <?PHP phpinfo() ?>
-
+

<?PHP phpinfo() ?>

If nothing happens then you don't have PHP installed. See the installation docs for some information about where to download it for your computer.

 

Why are all my pages blank?

-

Check the dirroot and/or dataroot in config.php. You must use - complete, absolute pathnames:

-

eg  $CFG->dirroot = "d:\inetpub\sites\www.yoursite.com\web\moodle";

-

eg  $CFG->dataroot = "d:\inetpub\sites\www.yoursite.com\database\moodle";

+

Check the dirroot variable in config.php. You must use complete, + absolute pathnames, eg:

+

$CFG->dirroot = "d:\inetpub\sites\www.yoursite.com\web\moodle";

 

My pages show fatal errors such as : call to undefined function: get_string()

If you see errors like:

-

Parse error: parse error, unexpected T_VARIABLE in c:\program +

Parse error: parse error, unexpected T_VARIABLE in c:\program files\easyphp\www\moodle\config.php on line 94
Fatal error: Call to undefined function: get_string() in c:\program files\easyphp\www\moodle\mod\resource\lib.php on line 11

@@ -96,17 +99,15 @@

Why do I keep getting error messages about "headers already sent"?

If you see errors like this:

-
-

Warning: Cannot add header information - headers already sent - by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php - on line 1322

-

Warning: Cannot add header information - headers already - sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php - on line 1323

-

Warning: Cannot add header information - headers already - sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/login/index.php - on line 54

-
+

Warning: Cannot add header information - headers already + sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php + on line 1322

+

Warning: Cannot add header information - headers already + sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php + on line 1323

+

Warning: Cannot add header information - headers already + sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/login/index.php + on line 54

You have blank lines or spaces after the final ?> in your config.php file. Sometimes text editors add these - for example Notepad on Windows - so you may have to try a different text editor to remove these spaces or blank @@ -130,10 +131,7 @@ it on, add this line to your httpd.conf, or to a .htaccess file in your local directory (see the Install documentation for more details):

-
-
-     AcceptPathInfo on
-
+

AcceptPathInfo on

Note, this will ONLY work for Apache versions 2.x.

If you are not using Apache 2 and you still have this problem (unlikely) then you can switch Moodle to use an alternative method. The disadvantages