DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • May 18, 2013, 01:20:43 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: The Cell  (Read 690 times)
0 Members and 1 Guest are viewing this topic.
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« on: July 24, 2012, 12:51:13 AM »

So, I noted an error when testing out The Cell module with my test account.. It goes like this:



Anyone have any idea what's happening..? Because I certainly do not. o.o

EDIT: When I scroll up/down, a copy of the page scrolls up and down with me, but the original page stays exactly where it is.. (I know its the original, as all the links are clickable in the staying-position), and the links in the copy aren't links anymore.
« Last Edit: July 24, 2012, 01:15:40 AM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #1 on: July 24, 2012, 11:48:21 AM »

Sounds like a browser or OS problem. To be specific, Chrome, or Windows 7. This is not exactly a module problem. o.O Because it doesn't cause problems for me as evidence shows.
Logged
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #2 on: July 24, 2012, 11:55:16 AM »

Sounds like a browser or OS problem. To be specific, Chrome, or Windows 7. This is not exactly a module problem. o.O Because it doesn't cause problems for me as evidence shows.

Strange.. o.o It must be the Windows 7, because it's happening in all 3 of my browsers (IE, Firefox and Chrome).

EDIT: But it only happens if I'm IN the cell (locked in and all that), but not if I'm in there as an Admin..
« Last Edit: July 24, 2012, 11:57:01 AM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Boris735
Mod God
*****
Offline Offline

Posts: 532


View Profile
« Reply #3 on: July 24, 2012, 07:03:29 PM »

The generated HTML could be bad (for whatever reason).  It might be worth attaching a zipped copy of the problematic page source for investigative purposes.
Logged
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #4 on: July 24, 2012, 07:05:42 PM »

The generated HTML could be bad (for whatever reason).  It might be worth attaching a zipped copy of the problematic page source for investigative purposes.

In my initial post, I added a link to the zipped file of The Cell.
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #5 on: July 28, 2012, 06:14:51 PM »

Sounds like a browser or OS problem. To be specific, Chrome, or Windows 7. This is not exactly a module problem. o.O Because it doesn't cause problems for me as evidence shows.

I didn't actually see that last bit of the post. o.o It works perfectly fine when I'm not trapped in the cell (i.e. I can return to the Village or Grotto), but the error only occurs if I'm trapped in the cell (i.e. I can't go anywhere BUT the cell).

I did some testing with commenting out lines here and there, and it has something to do with this code:

Code:
<?php
case "everyhit":
global $SCRIPT_NAME;
global $mostrecentmodule;
if ($SCRIPT_NAME == "ajaxcommentary.php") {
return $args;
}
$op httpget('op');
if (get_module_pref('incell')){
$nono 0;
$args $_SERVER['argv'];
for ($i=0;$i<$_SERVER['argc'];$i+=1){
if (strchr($args[$i],"&c=")) $args[$i] = str_replace(strstr($args[$i],"&c="),"",$args[$i]);
if ($args[$i] == "nonono"$nono 1;
}
if ($nono == 0){
if ($SCRIPT_NAME == "mail.php" or $SCRIPT_NAME == "petition.php" or $SCRIPT_NAME == "motd.php"){
redirect("runmodule.php?module=thecell&op=nonono");
}elseif ($SCRIPT_NAME <> "runmodule.php" and ($SCRIPT_NAME <> "mail.php" or $SCRIPT_NAME <> "petition.php" or $SCRIPT_NAME <> "motd.php")){
set_module_pref('commons',1);
redirect("runmodule.php?module=thecell");
}
}
}
break;
?>

More specifically:

Code:
<?php
}elseif ($SCRIPT_NAME <> "runmodule.php" and ($SCRIPT_NAME <> "mail.php" or $SCRIPT_NAME <> "petition.php" or $SCRIPT_NAME <> "motd.php")){
set_module_pref('commons',1);
redirect("runmodule.php?module=thecell");
}
?>
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #6 on: July 28, 2012, 06:26:21 PM »

Maybe the redirect is somehow only showing a new copy of the page.
Logged
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #7 on: July 28, 2012, 06:33:44 PM »

Maybe the redirect is somehow only showing a new copy of the page.

I tried commenting out

Code:
<?php
redirect
("runmodule.php?module=thecell"); 
?>

in the second block of code I posted before, and that stopped the copying. Only thing was, it didn't redirect players to the cell when I put them in there (that is, my test account).
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #8 on: July 28, 2012, 06:57:35 PM »

Maybe the redirect is somehow only showing a new copy of the page.

I tried commenting out

Code:
<?php
redirect
("runmodule.php?module=thecell"); 
?>

in the second block of code I posted before, and that stopped the copying. Only thing was, it didn't redirect players to the cell when I put them in there (that is, my test account).

Yeah it would not work without the redirect. I'm not sure why its acting like that.
Logged
Boris735
Mod God
*****
Offline Offline

Posts: 532


View Profile
« Reply #9 on: July 28, 2012, 08:10:59 PM »

The generated HTML could be bad (for whatever reason).  It might be worth attaching a zipped copy of the problematic page source for investigative purposes.

In my initial post, I added a link to the zipped file of The Cell.

*chuckles*  And I said page source, not module source; i.e., the generated HTML source of the actual page that acts oddly.  (Apologies for not clarifying the distinction earlier.)  There's nothing obviously wrong about the PHP, but there may be something more obviously wrong with the HTML.
Logged
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #10 on: July 28, 2012, 09:26:41 PM »

*chuckles*  And I said page source, not module source; i.e., the generated HTML source of the actual page that acts oddly.  (Apologies for not clarifying the distinction earlier.)  There's nothing obviously wrong about the PHP, but there may be something more obviously wrong with the HTML.

Oh, my bad. xD I viewed the HTML page source just before, and after, the page copied itself (I didn't know if there would be a difference..). They're attached at .txt files.
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Loscil Derails
Militia
**
Offline Offline

Posts: 51



View Profile
« Reply #11 on: July 28, 2012, 09:42:29 PM »

I'm getting the same exact bug. Looking into debugging it now.
Are you getting this error?

It's what I'm seeing:


PHP Warning: "thecell_dohook did not return an array in the module thecell for hook everyhit."
Logged

Your specimen is being processed...
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #12 on: July 28, 2012, 09:44:56 PM »

I'm getting the same exact bug. Looking into debugging it now.
Are you getting this error?

It's what I'm seeing:


PHP Warning: "thecell_dohook did not return an array in the module thecell for hook everyhit."


I haven't debugged it (dunno how).. But I had a suspicion that 'everyhit' was the problem here.
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Loscil Derails
Militia
**
Offline Offline

Posts: 51



View Profile
« Reply #13 on: July 28, 2012, 10:08:04 PM »

it appears to do this when the commentary refreshes...
Do you have a modified commentary section?
I dont know how to block the everypage hook for a commentary that auto-refreshes

*edit* I have rather successfully narrowed it down to the modified commentary causing the issue.
However, I don't know how to fix this. Is there a way to say "And dont do this if its part of the commentary"
« Last Edit: July 28, 2012, 10:27:15 PM by valor2223 » Logged

Your specimen is being processed...
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #14 on: July 28, 2012, 10:33:50 PM »

it appears to do this when the commentary refreshes...
Do you have a modified commentary section?
I dont know how to block the everypage hook for a commentary that auto-refreshes

*edit* I have rather successfully narrowed it down to the modified commentary causing the issue.
However, I don't know how to fix this. Is there a way to say "And dont do this if its part of the commentary"

I've only the commentary length and a few moderating buttons.. o.o
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
17 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search