1
jctsup1
NewBB Problem?
  • 2003/6/21 7:39

  • jctsup1

  • Not too shy to talk

  • Posts: 146

  • Since: 2002/5/23


When a "anonymous" user browses my forums & then uses the login block to login, the user is sucessully logged in however the following message appears:


Error: Forum not selected


Then the user is taken to the forum home page i.e. /modules/newbb/. I do not have this issue with any other mod.

Happens with ver 2.02 & 2.03. I can reproduce this problem on Windosws systems running IIS 4, 5, 5.1 & 6. I have tried it both with registe_globals on & off with no change in bahavior.
PHP Version : 4.3.2 Any ideas?

2
DobePhat
Re: NewBB Problem?
  • 2003/7/17 15:11

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Same problem here... ,
I've been tracking this issue for months...
I havent tried with globals on... but it is supposed to work with globals off. So I don't know, I sure hope someone can help us..

3
Catzwolf
Re: NewBB Problem?
  • 2003/7/17 15:17

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Turn on php debugging and see if there is any error warning shown, if so copy and paste it here. This may give a better idea of what is going on.

4
DobePhat
Re: NewBB Problem?
  • 2003/7/20 1:56

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Warning: Cannot modify header information - headers already sent by (output started at "drive":\dir\theatreport\include\common.php:140) in "drive":\dir\theatreport\modules\newbb\viewtopic.php on line 349

This is the only thing I can get , though its tricky to logout then log in with php debugger on.
A bit frusterating, as users would like to log in without getting "kicked" to the forum start

5
DobePhat
Re: Forum Not Selected
  • 2003/7/20 16:01

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Hmmmmmm, I cant figure this one out, the info above is useless, Im wondering if the viewtopic.PHP is bad or what, the script was created in April,
Anyways, using upgraded 2.02 (03),and Globals OFF, Win2k
. I read somewhere this issue was fixed with the new version, but it is not...at least the patch didnt fix it...wondering if there was a file that changed related to this query and variable for "forum not selected".

6
DobePhat
Re: Forum Not Selected
  • 2003/7/26 19:44

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


Anyone have a fix for this?

I cant seem to figure it out with php debugging on. (remote server)

Error forum not selected, is really keeping my users from enjoying the convenience of loggin on to a forum immeditely.


Thanks!

7
mvandam
Re: Forum Not Selected
  • 2003/7/26 20:40

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Immediately after logging in (and just prior to the error message), what is the URL in the browser? Is it something like yoursite.org/modules/newbb/viewtopic.php with no additional arguments?

If it flashes by too quickly, try extending the time before redirect (modules/newbb/viewtopic.php):

Quote:

if ( empty($forum) ) {
redirect_header('index.php',2,_MD_ERRORFORUM);
exit();


Change the '2' to 5 or 10, temporarily. Or alternatively, turn of 'meta refresh' in your browser.

One last thing: does your copy of moduels/newbb/viewtopic.php contain this line (near the top):

Quote:

$forum = isset($HTTP_GET_VARS['forum']) ? intval($HTTP_GET_VARS['forum']) : 0;

8
DobePhat
Re: Forum Not Selected
  • 2003/7/27 2:07

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


appears
that a call to user.php is what shows just prior...
hmmm I wonder if (the problem)is in there?
and then
viewtopic.php..

I do have that code you listed at the top of viewtopic.php.(or around line 32).

Thanks for your reply I think I'm getting somewhere...
I did not create users when I reinstalled a couple a months ago...I stopped the reinstall there and just used from db.

the top line on user php (ie: version)
Id: user.php,v 1.7 2003/02/17 17:27:14 okazu Exp $

Is there a more recent one perhaps?

9
mvandam
Re: Forum Not Selected
  • 2003/7/27 9:00

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Quote:

the top line on user php (ie: version)
Id: user.php,v 1.7 2003/02/17 17:27:14 okazu Exp $

Is there a more recent one perhaps?


Nope, that's the latest. BTW, you can always check for yourself at the oneline cvs viewer at sourceforge:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xoops/xoops2/

10
DobePhat
Re: Forum Not Selected
  • 2003/7/29 17:58

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


I'm thinking now this may be a "re-direct" issue...
would that possibly be something to look at?!

Login

Who's Online

182 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits