| 1 |
SiteBar 3 Troubleshooting
|
| 2 |
=========================
|
| 3 |
|
| 4 |
[All file paths in this document are relative to the location of this file!]
|
| 5 |
|
| 6 |
In case of some strange behavior, or even blank screens open file
|
| 7 |
../inc/errorhandler.inc.php and set following define to have value true
|
| 8 |
(the easiest is to change the word false to true.
|
| 9 |
|
| 10 |
define('SB_DEBUGGING', defined('SB_DEVELOPMENT') || false);
|
| 11 |
|
| 12 |
Verify that your http server has write right to the path where does the following
|
| 13 |
define points to (alternatively change the path):
|
| 14 |
|
| 15 |
define("SB_LOG_FILE_PATH", "sitebar.log");
|
| 16 |
|
| 17 |
All classes with exception of Localizer are subclasses of ErrorHandler so, the
|
| 18 |
static dump and log functions can be called via $this->dump() and $this->log().
|
| 19 |
All errors and warnings are written to the log file as well.
|
| 20 |
|
| 21 |
HTTP communication and SQL operations can be logged by changing define in the
|
| 22 |
mentioned file ../inc/errorhandler.inc.php:
|
| 23 |
|
| 24 |
define ("SB_LOG_HTTP", true);
|
| 25 |
define ("SB_LOG_SQL", true);
|
| 26 |
|
| 27 |
FAQ
|
| 28 |
---
|
| 29 |
Q: What means error message 'Cannot connect to database!'
|
| 30 |
A: This means that either your database server is down, or
|
| 31 |
you have entered wrong information when configuring database
|
| 32 |
connection. Verify your credentials using mysql command line
|
| 33 |
or using web application like phpMyAdmin. By default only root user
|
| 34 |
exists in each mysql application. If you are using other username
|
| 35 |
you may need to create the user first. See install.txt for some
|
| 36 |
MySQL hints
|
| 37 |
|
| 38 |
In order to get more information switch on logging by defining path
|
| 39 |
to the log file (see above). In the log file you will find an error
|
| 40 |
message from your database driver. The information is intentionally
|
| 41 |
hidden to the log file, to prevent other users seeing details about
|
| 42 |
your database in case the connection fails from any reason.
|
| 43 |
|
| 44 |
In case the connection parameters are incorrect, simply delete file
|
| 45 |
../inc/config.inc.php and click on [Check Settings] button.
|
| 46 |
|
| 47 |
Q: I have wrongly setup Base URL in SiteBar Settings. How can I fix it?
|
| 48 |
A: Please edit ../inc/page.inc.php and instead of null in the following
|
| 49 |
define define( 'ABS_BASE_URL', null); empty string or proper URL.
|
| 50 |
Fix URL in SiteBar Settings and change the define back.
|
| 51 |
|
| 52 |
Q: I have setup redirection from HTTP to HTTPS for SiteBar. Now some
|
| 53 |
things do not work as expected.
|
| 54 |
A: Please setup Base URL in SiteBar Settings to the HTTPS URL.
|