Difference between revisions of "Common Problems"

From GeeklogWiki
Jump to: navigation, search
 
m (Problems14 moved to Common Problems: merging installation instructions from the 1.3 and 1.4 trees)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
Before you go any further, please open config.php AND DOUBLE CHECK YOUR PATHS. Bad paths, or typos in the paths will cause all sorts of errors in Geeklog.<br>
 
Before you go any further, please open config.php AND DOUBLE CHECK YOUR PATHS. Bad paths, or typos in the paths will cause all sorts of errors in Geeklog.<br>
 
<br>
 
<br>
<br>
 
When you get an error message, please read it carefully. Even if you're not familiar with PHP, it will give you a hint about what is wrong. Pay special attention at the paths contained in the error message. Wrong paths are the most common cause for problems.<br>
 
<br>
 
If you get more than one error message, always start with the very first error - the others will often go away automatically once you've fixed the first one.<br>
 
<br>
 
<br>
 
I get the following error:<br>
 
<br>
 
Parse error: parse error in /path/to/your/config.php on line 76<br>
 
<br>
 
(line number may vary)<br>
 
<br>
 
Answer:<br>
 
<br>
 
A parse error usually hints at a typo you've made. Check the file at the given line (the actual error may be in the line preceding the one mentioned in the error message).<br>
 
<br>
 
Common problems are:<br>
 
<br>
 
    * not enclosing paths in single quotes properly<br>
 
    * missing semicolon at the end of the line<br>
 
    * using single quotes within a string (you need to write Joe's Site as Joe\'s Site, escaping the extra quote)&nbsp;<br>
 
<br>
 
<br>
 
<br>
 
I get the following errors:<br>
 
<br>
 
Warning: main(some/path/to/system/databases/mysql.class.php): failed to open stream: No such file or directory in /path/to/your/system/lib-database.php on line 110<br>
 
<br>
 
Fatal error: main(): Failed opening required 'some/path/to/system/databases/mysql.class.php' (include_path='.:/some/other/path/') in /some/path/to/system/lib-database.php on line 110<br>
 
<br>
 
(line numbers may vary)<br>
 
<br>
 
Answer:<br>
 
<br>
 
The path that you've entered for the $_CONF['path'] variable in config.php is not correct. Make sure you typed it correctly. Also make sure it uses an absolute path, i.e. one that starts at the root of your file system (and that it starts with a / under Unix/Linux or a drive letter under Windows).<br>
 
<br>
 
<br>
 
I get the following error:<br>
 
<br>
 
1050: Table 'gl_access' already exists<br>
 
<br>
 
Answer:<br>
 
<br>
 
You must have run the install script before (possibly unsuccessfully). To be on the save side, drop the database and create a new, empty database before trying to run the install script again.<br>
 
<br>
 
<br>
 
During installation, I get one of the following errors:<br>
 
<br>
 
Case 1:<br>
 
<br>
 
Parse error: parse error in ../../lib-common.php on line 2231<br>
 
<br>
 
Fatal error: Cannot instantiate non-existent class: template in ../../lib-common.php on line 335<br>
 
<br>
 
Case 2:<br>
 
<br>
 
Parse error: parse error in /path/to/geeklog/public_html/lib-common.php on line 3036<br>
 
<br>
 
Fatal error: Call to undefined function: plg_showcenterblock() in /path/to/geeklog/public_html/index.php on line 67<br>
 
<br>
 
Case 3:<br>
 
<br>
 
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /path/to/geeklog/public_html/lib-common.php on line 3815<br>
 
<br>
 
Fatal error: Cannot instantiate non-existent class: template in /path/to/geeklog/public_html/lib-common.php on line 709<br>
 
<br>
 
(line numbers may vary)<br>
 
<br>
 
Answer:<br>
 
<br>
 
All of the above cases (and similar "parse error" messages you may get for lib-common.php, typically with a line number in the 3000 or 4000 range) indicate a corrupted lib-common.php file.<br>
 
<br>
 
As noted at the top of this document this is usually caused by one of the following:<br>
 
<br>
 
    * Uncompressing the tarball with certain versions of WinZip (try using WinRar instead)<br>
 
    * Editing the lib-common.php with Dreamweaver or other so-called WYSIWYG HTML editors (use a simple text editor instead)<br>
 
    * Editing the lib-common.php with "on-site" text editors built into tools like Cpanel (again, use a simple text editor instead)<br>
 
<br>
 
You will need to unpack a fresh copy of the lib-common.php and edit it again, using a "normal" text editor. Windows users can find some recommendations for editors to use in this and this thread in the forums on geeklog.net.<br>
 
<br>
 
<br>
 
I get the following error:<br>
 
<br>
 
Template Error: set_root: /some/path/to/public_html/layout/professional is not a directory. Halted.<br>
 
<br>
 
Answer:<br>
 
<br>
 
This is a path problem again. Check the setting for $_CONF['path_html']. If you did not change or rename Geeklog's public_html directory, then there's no need to change that setting at all (restore the line to its original content). Otherwise, please read the comments above that line in config.php again carefully to understand how to change that line properly.<br>
 
<br>
 
<br>
 
I get the following error:<br>
 
<br>
 
Warning: mysql_connect(): Access denied for user: 'username@localhost' (Using password: YES) in<br>
 
/path/to/geeklog/system/databases/mysql.class.php on line 104<br>
 
Cannnot connect to DB server<br>
 
<br>
 
(line number may vary)<br>
 
<br>
 
Answer:<br>
 
<br>
 
First of all, make sure the database settings in config.php are correct, specifically the name and password of your MySQL user, the name of your database, and the name of your MySQL server.<br>
 
<br>
 
If you're running your own server, you may need to give your MySQL user proper permissions. Log in to MySQL as the MySQL root user and issue these commands:<br>
 
GRANT ALL PRIVILEGES ON database_name TO user@host IDENTIFIED BY 'password';<br>
 
FLUSH PRIVILEGES;<br>
 
<br>
 
Replacing the lower-case strings with the actual values, of course.<br>
 
<br>
 
If you want (or need) to be more restrictive with database permissions: You will need to at least grant the ALTER, CREATE, DELETE, INSERT, SELECT, and UPDATE permissions to your database user. ALTER and CREATE permissions are only needed for installing and upgrading Geeklog, as well as for installing plugins and other add-ons.</p>
 
<p>&nbsp;</p>
 

Latest revision as of 17:59, 8 May 2009

INSTALLATION PROBLEMS (common problems)

SPECIAL NOTE:

Before you go any further, please open config.php AND DOUBLE CHECK YOUR PATHS. Bad paths, or typos in the paths will cause all sorts of errors in Geeklog.