Skip to content

Commit 2a33c1f

Browse files
authored
Merge pull request #6911 from kenjis/docs-troubleshooting.rst
docs: improve troubleshooting.rst
2 parents 3957989 + ce7fcd3 commit 2a33c1f

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

user_guide_src/source/general/logging.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ Logging Information
66
:local:
77
:depth: 2
88

9-
You can log information to the local log files by using the ``log_message()`` method. You must supply
9+
Log Levels
10+
==========
11+
12+
You can log information to the local log files by using the :php:func:`log_message()` method. You must supply
1013
the "level" of the error in the first parameter, indicating what type of message it is (debug, error, etc).
1114
The second parameter is the message itself:
1215

@@ -32,6 +35,8 @@ The logging system does not provide ways to alert sysadmins or webmasters about
3235
the information. For many of the more critical event levels, the logging happens automatically by the
3336
Error Handler, described above.
3437

38+
.. _logging-configuration:
39+
3540
Configuration
3641
=============
3742

@@ -125,4 +130,4 @@ the **app/Config/Autoload.php** configuration file, or through another autoloade
125130
like Composer. Next, you should modify **app/Config/Services.php** to point the ``logger``
126131
alias to your new class name.
127132

128-
Now, any call that is done through the ``log_message()`` function will use your library instead.
133+
Now, any call that is done through the :php:func:`log_message()` function will use your library instead.

user_guide_src/source/installation/troubleshooting.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ I have to include index.php in my URL
2424
-------------------------------------
2525

2626
If a URL like ``/mypage/find/apple`` doesn't work, but the similar
27-
URL ``/index.php/mypage/find/apple`` does, that sounds like your ``.htaccess`` rules
27+
URL ``/index.php/mypage/find/apple`` does, that sounds like your **.htaccess** rules
2828
(for Apache) are not set up properly, or the ``mod_rewrite`` extension
29-
in Apache's ``httpd.conf`` is commented out.
29+
in Apache's **httpd.conf** is commented out.
3030

3131
Only the default page loads
3232
---------------------------
@@ -37,7 +37,7 @@ REQUEST_URI variable needed to serve search-engine friendly URLs. As a
3737
first step, open your **app/Config/App.php** file and look for
3838
the URI Protocol information. It will recommend that you try a couple of
3939
alternate settings. If it still doesn't work after you've tried this
40-
you'll need to force CodeIgniter to add a question mark to your URLs. To
40+
you'll need to force CodeIgniter to add a question mark (``?``) to your URLs. To
4141
do this open your **app/Config/App.php** file and change this:
4242

4343
.. literalinclude:: troubleshooting/001.php
@@ -59,7 +59,7 @@ The tutorial gives 404 errors everywhere :(
5959
-------------------------------------------
6060

6161
You can't follow the tutorial using PHP's built-in web server.
62-
It doesn't process the `.htaccess` file needed to route
62+
It doesn't process the **.htaccess** file needed to route
6363
requests properly.
6464

6565
The solution: use Apache to serve your site, or else the built-in
@@ -88,7 +88,7 @@ CodeIgniter Error Logs
8888

8989
CodeIgniter logs error messages, according to the settings in **app/Config/Logger.php**.
9090

91-
You can adjust the error threshold to see more or fewer messages.
91+
You can adjust the error threshold to see more or fewer messages. See :ref:`Logging <logging-configuration>` for details.
9292

93-
The default configuration has daily log files stored in `writable/logs`.
93+
The default configuration has daily log files stored in **writable/logs**.
9494
It would be a good idea to check them if things aren't working the way you expect!

user_guide_src/source/installation/troubleshooting/002.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ class App extends BaseConfig
99
// ...
1010

1111
public $indexPage = 'index.php?';
12+
1213
// ...
1314
}

0 commit comments

Comments
 (0)