Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 12:17 pm EST
Geeklog Forums
$_CONF path variables apparently not set on new 1.5.0 install
Dan
Anonymous
Hello,
After install:
First I get this: Warning: fopen(error.log) [function.fopen]: failed to open stream
To get that to work I have to put:
$_CONF['path_log'] = $_CONF['path'] . 'logs/';
at the top of 'function COM_errorLog'
then it can log errors, ok
Tailing the log on the next hit gives me:
main(english_utf-8.php) [function.main]: failed to open stream: No such file or directory @
which means I have to set $_CONF['path_layout'] in the appropriate place, fixing that results in another $_CONF['path_*'] related error...
Obviously that method is a bad way to address this and I'm assuming that the value in the database (which appear to match perfectly a workgin install and are the correct paths)
Sooo, since siteconfig.php and db-config.php look right, and the database seems correct what shoudl I look at next?
Thanks for your time
After install:
First I get this: Warning: fopen(error.log) [function.fopen]: failed to open stream
To get that to work I have to put:
$_CONF['path_log'] = $_CONF['path'] . 'logs/';
at the top of 'function COM_errorLog'
then it can log errors, ok
Tailing the log on the next hit gives me:
main(english_utf-8.php) [function.main]: failed to open stream: No such file or directory @
which means I have to set $_CONF['path_layout'] in the appropriate place, fixing that results in another $_CONF['path_*'] related error...
Obviously that method is a bad way to address this and I'm assuming that the value in the database (which appear to match perfectly a workgin install and are the correct paths)
Sooo, since siteconfig.php and db-config.php look right, and the database seems correct what shoudl I look at next?
Thanks for your time
15
17
Quote
Dan
Anonymous
the 2 installs in question look just like this (paths are different of course)
SELECT * FROM gl_conf_values WHERE name LIKE 'path_%';
| path_html | s:71:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/public_html/"; | text | Core | s:0:""; | 0 | -1 | 10 | 3 |
| path_log | s:64:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/logs/"; | text | Core | s:0:""; | 0 | -1 | 90 | 3 |
| path_language | s:68:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/language/"; | text | Core | s:0:""; | 0 | -1 | 100 | 3 |
| path_data | s:64:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/data/"; | text | Core | s:0:""; | 0 | -1 | 120 | 3 |
| path_images | s:78:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/public_html/images/"; | text | Core | s:0:""; | 0 | -1 | 130 | 3 |
| path_pear | s:71:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/system/pear/"; | text | Core | s:0:""; | 0 | -1 | 140 | 4 |
| path_themes | s:78:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/public_html/layout/"; | text | Core | s:0:""; | 2 | -1 | 210 | 10 |
| path_to_mogrify | unset | text | Core | s:0:""; | 5 | -1 | 1460 | 22 |
| path_to_netpbm | unset | text | Core | s:0:""; | 5 | -1 | 1470 | 22 |
SELECT * FROM gl_conf_values WHERE name LIKE 'path_%';
| path_html | s:71:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/public_html/"; | text | Core | s:0:""; | 0 | -1 | 10 | 3 |
| path_log | s:64:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/logs/"; | text | Core | s:0:""; | 0 | -1 | 90 | 3 |
| path_language | s:68:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/language/"; | text | Core | s:0:""; | 0 | -1 | 100 | 3 |
| path_data | s:64:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/data/"; | text | Core | s:0:""; | 0 | -1 | 120 | 3 |
| path_images | s:78:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/public_html/images/"; | text | Core | s:0:""; | 0 | -1 | 130 | 3 |
| path_pear | s:71:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/system/pear/"; | text | Core | s:0:""; | 0 | -1 | 140 | 4 |
| path_themes | s:78:"/home/genwshngtn/public_html/geeklog/geeklog-1.5.0/public_html/layout/"; | text | Core | s:0:""; | 2 | -1 | 210 | 10 |
| path_to_mogrify | unset | text | Core | s:0:""; | 5 | -1 | 1460 | 22 |
| path_to_netpbm | unset | text | Core | s:0:""; | 5 | -1 | 1470 | 22 |
11
17
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, that's really odd. Almost like it couldn't connect to the database to read the config from there.
Let's see if we can get it to display some more error messages.
Try disabling Geeklog's error handler, e.g. by changing to something like i.e. just make sure it doesn't find the set_error_handler function.
Next, change the error_reporting statement at the beginning of lib-common.php to
Then try again. See any new or helpful error messages now?
bye, Dirk
Let's see if we can get it to display some more error messages.
Try disabling Geeklog's error handler, e.g. by changing
Text Formatted Code
if( function_exists('set_error_handler') )Text Formatted Code
if( function_exists('xxxset_error_handler') )Next, change the error_reporting statement at the beginning of lib-common.php to
Text Formatted Code
error_reporting( E_ALL );Then try again. See any new or helpful error messages now?
bye, Dirk
11
15
Quote
All times are EST. The time is now 12:17 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content