The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Bugs Deffently need help on this one [SOLVED]

Found a bug? Tell us!!
User avatar
Timbalu
Regular
 
Posts: 2565
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Mar 21, 2011 6:02 pm

echo '<br /><br />'; :)
Regards,
Ian

kento
Regular
 
Posts: 31
Joined: Sun Mar 20, 2011 1:38 pm

Postby kento » Mon Mar 21, 2011 6:10 pm

Timbalu wrote:echo '<br /><br />'; :)

can i pm large amount of info on this forum or how do we do this best... i turned on heavy loggin on the server and damn it got log for U LOL

kento
Regular
 
Posts: 31
Joined: Sun Mar 20, 2011 1:38 pm

Postby kento » Mon Mar 21, 2011 6:15 pm

kento wrote:
Timbalu wrote:echo '<br /><br />'; :)

can i pm large amount of info on this forum or how do we do this best... i turned on heavy loggin on the server and damn it got log for U LOL

worked, where do you want it?

User avatar
Timbalu
Regular
 
Posts: 2565
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Mar 21, 2011 6:15 pm

PM just the output of the php script, please! ;-) Not a books content or something inbetween, else I hesitate to look into! ;-)
Regards,
Ian

User avatar
Timbalu
Regular
 
Posts: 2565
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Mar 21, 2011 6:57 pm

It seems you get [REQUEST_URI] => /test.php, which isn't used by some IIS Servers
But you don't get [QUERY_STRING] =>
Could you test this by implanting the same code without the <?php and ?> on line 29 of serendipity_config.inc.php, please? And send me the output again per PM.
Regards,
Ian

kento
Regular
 
Posts: 31
Joined: Sun Mar 20, 2011 1:38 pm

Postby kento » Mon Mar 21, 2011 7:09 pm

Timbalu wrote:It seems you get [REQUEST_URI] => /test.php, which isn't used by some IIS Servers
But you don't get [QUERY_STRING] =>
Could you test this by implanting the same code without the <?php and ?> on line 29 of serendipity_config.inc.php, please? And send me the output again per PM.

would love to, but line 29 in my serendipity_config.inc.php is an empty line :D

User avatar
Timbalu
Regular
 
Posts: 2565
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Mar 21, 2011 7:28 pm

Ok, there still is no $_SERVER['QUERY_STRING'] var.
It seems Abyss does not set $_SERVER['QUERY_STRING'] to an empty string, if there isn't any value.

Please try adding
Code: Select all
$_SERVER['QUERY_STRING'] = (empty($_SERVER['QUERY_STRING']) || !isset($_SERVER['QUERY_STRING'])) ? '' : $_SERVER['QUERY_STRING'];

to line 10 which should be empty to insert.

Then have a look if it still does not output [QUERY_STRING] =>

This should solve your problems, hopefully.
Regards,
Ian

kento
Regular
 
Posts: 31
Joined: Sun Mar 20, 2011 1:38 pm

Postby kento » Mon Mar 21, 2011 7:31 pm

Timbalu wrote:Ok, there still is no $_SERVER['QUERY_STRING'] var.
It seems Abyss does not set $_SERVER['QUERY_STRING'] to an empty string, if there isn't any value.

Please try adding
Code: Select all
$_SERVER['QUERY_STRING'] = (empty($_SERVER['QUERY_STRING']) || !isset($_SERVER['QUERY_STRING'])) ? '' : $_SERVER['QUERY_STRING'];

to line 10 which should be empty to insert.

Then have a look if it still does not output [QUERY_STRING] =>

This should solve your problems, hopefully.


hehe you are the man :D that did infact do the job ..... this is awsome :D

thanx for your help once again

greetings
kento

you can have a look at kn2.dyndns.org/blog

kento
Regular
 
Posts: 31
Joined: Sun Mar 20, 2011 1:38 pm

Postby kento » Mon Mar 21, 2011 7:33 pm

so this addon did infact do what?? maby i can learn something out of this :D

User avatar
Timbalu
Regular
 
Posts: 2565
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Mar 21, 2011 7:41 pm

Well it sets $_SERVER['QUERY_STRING'] to an empty string, while Abyss just does not build it at all. ;-)
If you were with Microsofts IIS you would have the same problem with $_SERVER['REQUEST_URI']
The workaround in this case should be something like this
Code: Select all
if (!isset($_SERVER['REQUEST_URI']))
{
       $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 );
       if (isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING']; }
}


Glad we solved this issue, maybe Garvin finds a way to support Abyss in future like the 'line 10 code'....
Regards,
Ian

kento
Regular
 
Posts: 31
Joined: Sun Mar 20, 2011 1:38 pm

Postby kento » Mon Mar 21, 2011 7:44 pm

Timbalu wrote:Well it sets $_SERVER['QUERY_STRING'] to an empty string, while Abyss just does not build it at all. ;-)
If you were with Microsofts IIS you would have the same problem with $_SERVER['REQUEST_URI']
The workaround in this case should be something like this
Code: Select all
if (!isset($_SERVER['REQUEST_URI']))
{
       $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 );
       if (isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING']; }
}


Glad we solved this issue, maybe Garvin finds a way to support Abyss in future like the 'line 10 code'....


just a thought, can it have something to do with that most windows servers runs single line piped fastcgi on the php?? mean then only one instance is done at the time while the script tryes to do both at the same time???

User avatar
Timbalu
Regular
 
Posts: 2565
Joined: Sun May 02, 2004 3:04 pm

Postby Timbalu » Mon Mar 21, 2011 7:56 pm

I don't know, really. I'm running Apache (as module) which is doing fine.
Regards,
Ian

Previous


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests