[geeklog-users] Help wanted - Howto...

Jean-Charles Tramasure jc at tramasure.ch
Sun Feb 9 18:41:38 EST 2003


Hello dear list,

I started to implement gl on my site...I am quiet newbie in php/Mysql 
but I am really motivated to get this thing working !I really like the 
concept and gl team is doing a great job...for using it and spread the 
use of it...

Here is my problem :

I installed it like described in intallation_seemed to work fine
fields in database were created
but now I am blocked with a message in my browser :

Parse error: parse error in 
/home/sites/site40/web/public_html/lib-common.php on line 911

Fatal error: Call to undefined function: com_refresh() in 
/home/sites/site40/web/public_html/index.php on line 59

I was told that I might have a problem with a parenthesis quote or 
character floating around line 911
But I never edited the lib-common.php

It looks like this

  // Do variable assignments
     DB_change( $_TABLES['vars'], 'value', 'value + 1', 'name', 
'totalhits', '', true );

     $footer->set_var( 'site_url', $_CONF['site_url']);
     $footer->set_var( 'layout_url',$_CONF['layout_url']);
     $footer->set_var( 'site_mail', "mailto:{$_CONF['site_mail']}" );
     $footer->set_var( 'site_name', $_CONF['site_name'] );
     $footer->set_var( 'site_slogan', $_CONF['site_slogan'] );
     $year = date( 'Y' );
     $copyrightyear = $year;
     if( !empty( $_CONF['copyrightyear'] ))
     {
         $copyrightyear = $_CONF['copyrightyear'];
     }
     $footer->set_var( 'copyright_notice', ' ' . $LANG01[93] . ' 
© '
             . $copyrightyear . ' ' . $_CONF['site_name'] . '<br> '
             . $LANG01[94] );
line 911  $footer->set_var( 'copyright_msg', $LANG01[93] . ' © '
             . $copyrightyear . ' ' . $_CONF['site_name'] );
     $footer->set_var( 'current_year', $year );
     $footer->set_var( 'lang_copyright', $LANG01[93] );
     $footer->set_var( 'trademark_msg', $LANG01[94] );
     $footer->set_var( 'powered_by', $LANG01[95] );
     $footer->set_var( 'geeklog_url', 'http://www.geeklog.net/' );
     $footer->set_var( 'geeklog_version', VERSION );



My index.php looks like this

if (isset ($HTTP_GET_VARS['topic'])) {
     $topic = strip_tags ($HTTP_GET_VARS['topic']);
}
else {
     $topic = '';
}
if (isset ($HTTP_GET_VARS['display']) && ($HTTP_GET_VARS['display'] == 
'new') && empty ($topic)) {
     $newstories = true;
} else {
     $newstories = false;
}
require_once('lib-common.php');

if (isset ($HTTP_SERVER_VARS['HTTP_HOST']) &&
         !empty ($HTTP_SERVER_VARS['HTTP_HOST'])) {
     preg_match ("/\/\/([^\/]*)/", $_CONF['site_url'], $server);
     if (strcasecmp ($HTTP_SERVER_VARS['HTTP_HOST'], $server[1]) != 0) {
         // this may be a case of a www. vs. non-www. URL ...
         if (!empty ($QUERY_STRING)) {
             $query = '?' . $QUERY_STRING;
         } else {
             $query = '';
         }
line59        echo COM_refresh ($_CONF['site_url'] . '/index.php' . 
$query);
         exit;
     }
}

Does anyone has an idea how I could sort this out?
I might have done some errors in my config.php
Any help would be really cool!

In advance thanx

JC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3427 bytes
Desc: not available
URL: <https://pairlist8.pair.net/pipermail/geeklog-users/attachments/20030210/78e7e44d/attachment.bin>


More information about the geeklog-users mailing list