Need help with debugging [message #33817] |
Fri, 22 September 2006 17:04 |
JanRei
Messages: 361 Registered: October 2005 Location: Germany
Karma: 0
|
Senior Member Contributing Core Developer Translator |
|
|
I have a problem wit the template editor and the message editor. When I click on the according links in the Admin Control Panel I get redirected to the index page. How can I find out why FUDforum does this?
P.S. At the moment I think that this behaviour is caused by one of mine code changes.
|
|
|
Re: Need help with debugging [message #33828 is a reply to message #33817] |
Fri, 22 September 2006 20:34 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well, the first step would be to add var_dump() to dump the input parameters to ensure that the correct data is present.
Then try do the same in functions responsible for loading the actual data.
FUDforum Core Developer
|
|
|
|
|
|
|
Re: Need help with debugging [message #35099 is a reply to message #35092] |
Thu, 07 December 2006 18:14 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The & can only be used in URLs shown in HTML code to the browser. You need the un-encoded version for header("Location");. This is why there are 2 constants _rsid and _rsidl, the former for HTML and the latter for redirect links.
FUDforum Core Developer
|
|
|
|
Re: Need help with debugging [message #35106 is a reply to message #35101] |
Fri, 08 December 2006 15:06 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The _rsid constants are made in user.inc.t, not adm.inc (in include dir)
only does
<?php define('__adm_rsidl', _rsidl.'&SQ='.$GLOBALS['sq']); ?>
Because that all it uses. If you adm copy of "_rsid" you'd need to define it yourself in a similar manner.
FUDforum Core Developer
|
|
|