11
mvandam
Re: Forum Not Selected
  • 2003/7/29 20:38

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


It is possible, I suppose. Doubtful though. What browser are you using? XOOPS using the 'meta refresh' feature to automatically jump to the next page. If you are using a browser where this is not implemented correctly (e.g. strips off arguments from URL) then it could be the problem. But i'm not sure that any browsers have this problem.

The other problem could be in include/functions.php, function 'redirect_header'... There is a line where it determines the current page url for jumping back after login, for example. It uses $xoopsRequestUri, which is computed in include/common.php. If your server is not setting certain variables REQUEST_URI or SCRIPT_NAME properly then that may also be the issue. What is your webserver? If possible, is there any way to do some debugging with include/common.php and print/echo out the value of $xoopsRequestUri for a few example pages? This would be helpful to determine if that is the source of your problems.

Just out of curiosity, do you have problems with *other* redirects on the site... e.g. after posting a comment on something do you get redirected back to the proper location?

12
jctsup1
Re: Forum Not Selected
  • 2003/7/30 4:13

  • jctsup1

  • Not too shy to talk

  • Posts: 146

  • Since: 2002/5/23


Quote:

mvandam wrote:
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?


Sorry its taken me so long to reply ---- been really busy.
That is exactly the problem - no arguments at all.

Quote:


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

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

Yes that line does appear. Some misc info --- running windows 2003 / IIS 6. This problem can be reproduced on IIS 4, 5, 5.1, and 6.

13
DobePhat
Re: Forum Not Selected
  • 2003/7/30 17:52

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


I also do not see any arguments...
IIS 4 (it hink), PHP 4.2, wn2K, XOOPS 2.0.3

Hmm, Ive hear about this URI thing before....(REQUEST_URI or SCRIPT_NAME )
this could be a mjor problem with my stuff...see because everything else works great, but a few strange quirky bugs through out. How can I discover more about this?

Thanks!

p.s I dontr seem to have other redirect problems so I was probably off on that one...

14
mvandam
Re: Forum Not Selected
  • 2003/7/30 19:31

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Just going out on a limb here... I don't really know anything about IIS, but from a quick google search it seems that IIS has 'SCRIPT_NAME' but not 'REQUEST_URI'. It looks like the XOOPS code should properly handle this. But if IIS is setting REQUEST_URI *incorrectly*, then this could be messing things up.

Could you guys try replacing (in include/common.php):

$xoopsRequestUri = @xoops_getenv('REQUEST_URI');

with

$xoopsRequestUri = @xoops_getenv('SCRIPT_NAME');

Please let me know if that works, and, if so, I'll try to find a more permanent way to integrate that into the XOOPS distribution.

15
DobePhat
Re: Forum Not Selected
  • 2003/7/30 23:31

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


No that did not work unfortunately...

But you know what...I just discovered som whacked out code...Im going to try getting it and maybe you can tell what the heck it is....

OK maybe I dont know nuthing, but what the heck is this!
and why is it in my common.php?

$HTTP_SESSION_VARS['xoopsUserTheme'] = $user_theme;
}

};
};
//ª®­¥æ å ª ­ ¯à¥¤¬¥â ¢â®«®£¨­
$xoopsUser = '';
$member_handler =& xoops_gethandler('member');


er..of course maybe thos strange character mean something?!
And if so please excuse my ignorance....

16
DobePhat
Re: Forum Not Selected
  • 2003/8/1 23:56

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


still cant figure out "forum not selected" but fixed previous problem...thanx.

17
kjs222
Re: Forum Not Selected
  • 2003/11/1 12:55

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


Sorry, post didn't render correctly... also fixed problem.

Cheers,
Keith

18
query
Re: NewBB Problem?
  • 2008/11/5 3:37

  • query

  • Just popping in

  • Posts: 4

  • Since: 2008/11/5


Hi all

The problem started when our server crashed. We have moved the newbb into a new server but when we click on any category in the Forum, we get this error.

I am using Newbb version 1.0 and having the same error (ERROR: Forum Not Selected)
I don't have functions.php in the newbb\include folder.


Can anyone help as to which folder and file I should look at?

19
ghia
Re: NewBB Problem?
  • 2008/11/5 11:22

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Your forum version is very old and it might be that the resolution with the functions.php relates to a later version.

You have transferred your XOOPS system (version?) to another server? Did you adapt /mainfile.php? Is the php version of the server the same? Are there any errors in debug mode?

20
query
Re: NewBB Problem?
  • 2008/11/6 0:58

  • query

  • Just popping in

  • Posts: 4

  • Since: 2008/11/5


Yes I have transfered my XOOPS v1.6 to another server.
Yes, I adapted /mainfile.php.
How can I tell if the PHP version of the server?
How can I check errors in debug mode

so sorry , im just new with XOOPS

Login

Who's Online

185 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 185


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