Posted on: 12/11/03 08:41am
By: etegration
why when stories are added they do not appear??? it's a fresh installation of GL1.3.8sr3, nothing was done at all except passwords changed for admin and moderator account.
Re:Why Stories does not appear?
Posted on: 12/11/03 08:58am
By: wlparks
Maybe global variables is off? I think that is what it normally is I can't remember.
Re:Why Stories does not appear?
Posted on: 12/11/03 09:00am
By: etegration
[QUOTE BY= wlparks] Maybe global variables is off? I think that is what it normally is I can't remember.[/QUOTE]
which? you mean in config.php? or php's configuration on the server??
Re:Why Stories does not appear?
Posted on: 12/11/03 09:12am
By: etegration
[QUOTE BY= etegration] why when stories are added they do not appear??? it's a fresh installation of GL1.3.8sr3, nothing was done at all except passwords changed for admin and moderator account.[/QUOTE]
register_globals is on...why then? any ideas?
Re:Why Stories does not appear?
Posted on: 12/11/03 10:41am
By: etegration
anyone? urgently need help.
Story is saved and appears > http://v3.delta-pns.org/public_html/article.php?story=20031211215640425
But does not appear on main page, why? Thanks i advance.
Re:Why Stories does not appear?
Posted on: 12/12/03 04:10pm
By: Anonymous (Jack)
I found a bug on the comment.php.
The "sid" is not set propertly. Adding the following three lines after the "// MAIN" should fix the problem:
if (isset ($HTTP_GET_VARS['sid'])) {
$sid = strip_tags ($HTTP_GET_VARS['sid']);
}
Re:Why Stories does not appear?
Posted on: 12/12/03 04:20pm
By: Dirk
[QUOTE BY= Jack] The "sid" is not set propertly.[/QUOTE]
It should work just fine - provided that you have register_globals = on ...
bye, Dirk
Re:Why Stories does not appear?
Posted on: 12/12/03 04:41pm
By: Anonymous (Jack)
I have "register_globals = on" in /etc/php.ini. It could be my version of php(4.2.2). Actually, I have to add six lines (three for "preview" and three for "submmit...") to make it working:
if (isset ($HTTP_GET_VARS['sid'])) {
$sid = strip_tags ($HTTP_GET_VARS['sid']);
}
if (isset ($HTTP_POST_VARS['sid'])) {
$sid = strip_tags ($HTTP_POST_VARS['sid']);
}
Regards
Re:Why Stories does not appear?
Posted on: 12/12/03 04:50pm
By: Dirk
All that is a sure indication that register_globals is
off.
Upload a file that contains only
<?php phpinfo(); ?>
or use the file in admin/install/info.php to check the real status of register_globals. Also make sure you've edited the correct php.ini file (the phpinfo() output will also tell you where it's supposed to be) and don't forget that you have to restart your webserver after any changes to the php.ini.
bye, Dirk
Re:Why Stories does not appear?
Posted on: 12/13/03 12:33am
By: etegration
dear all, i have found the problem, it lies in the time hack i added, stories time have become a problem as till the date and time is reached, the story do not get published till then.
Thanks for all the replies.
Re:Why Stories does not appear?
Posted on: 12/13/03 03:24pm
By: etegration
test