graphs_view.php broken in dual pane tree view

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

jmjones
Posts: 18
Joined: Wed Feb 09, 2005 12:19 pm

graphs_view.php broken in dual pane tree view

Post by jmjones »

I have recently upgraded from 0.8.5a to 0.8.5c on the windows platform. I have discovered that the dual pane tree view does not seem to function properly. Usually there is no response from the server (No errors or data, just a blank page that is trying to load, but it never does). If I change to single pane, all works fine and great. I have applied all of the prepatches, however, I cannot apply all of the current patches (Since I am on a windows machine, no wget, no patch) Anyone have any suggestions?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What web browser are you using?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
jmjones
Posts: 18
Joined: Wed Feb 09, 2005 12:19 pm

graphs_view.php broken in dual pane tree view

Post by jmjones »

The error occurs in Internet Explorer 6.0 (with no debug info), and Mozilla Firefox 1.0. The error message in Mozilla is that a redirection limit was exceeded for the requested URL or something like that.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um,

Can you dump your database and email it to me?

This is a new one on me.

Thanks,
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
jmjones
Posts: 18
Joined: Wed Feb 09, 2005 12:19 pm

Post by jmjones »

I really think that it is in the data too. I am not 100 percent sure, but I don't recall having this problem when I tried a clean install. The problem started happening when I populated with the new data. I think.... :-?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I got you email, I will try to look at it today.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
jmjones
Posts: 18
Joined: Wed Feb 09, 2005 12:19 pm

Problem solved for me

Post by jmjones »

The error was in a php timeout. There were never any error messages in the application log or displayed to the browser.

Thank you to Rony for figuring this one out for me.

Props homie 8)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

So, I gather it's working?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
slowtrance
Posts: 4
Joined: Wed Feb 16, 2005 10:46 am

Same issue

Post by slowtrance »

I have encountered the exact same issue. Could you point me toward which timeout setting to change (I assume in php.ini) and what value worked for you? Thanks!!!

Charlie
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

On installations with a lot of hosts, and on slower servers, you want to increase the following php.ini settings:

max_execution_time = 60
memory_limit = 16M

Don't set them to high, that can cause other issues. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
slowtrance
Posts: 4
Joined: Wed Feb 16, 2005 10:46 am

Thanks!!!!

Post by slowtrance »

That did it! Thanks!
jmjones
Posts: 18
Joined: Wed Feb 09, 2005 12:19 pm

It is still awful slow

Post by jmjones »

I don't think that the timeout was the only thing wrong. It works sparatically at best with the longer timeouts. I did some further research. I put a network sniffer on my requesting laptop, and found that there is a redirection loop. I think that with a fast server, the clent and server get confused as to where in the loop they are. Does this ring a bell. It is not the end of the world, but dual pane looks better. Any thoughts anyone.
Again:
MS Server 2003
php 4.3.10
MySQL is known good (version escapes me)

Any help appreciated

Anyone know exactly how the tree is built, and why all the server side redirects?
jmjones
Posts: 18
Joined: Wed Feb 09, 2005 12:19 pm

I found the infinite loop

Post by jmjones »

The loop is caused in top_graph_header.php.

if ((read_graph_config_option("default_tree_view_mode") == "2") && ($_REQUEST["action"] == "tree") && (!isset($_SESSION["sess_has_viewed_graphs"]))) {
$_SESSION["sess_has_viewed_graphs"] = true;

$first_branch = find_first_folder_url();
if (!empty($first_branch)) {
header("Location: $first_branch");
//print "not empty" .$first_branch;
}

I tried a couple of things, but this is where the redirection loop occurs. Anyone got any suggestions?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The way this whole thing works is being re-evaluated...

I have no ideas at this time, I have only started looking at the issue.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
jmjones
Posts: 18
Joined: Wed Feb 09, 2005 12:19 pm

more tidbits of information

Post by jmjones »

I have found that the page is functional by commenting out the redirection, the drawback is that it does not put the calendar controls and the default display on the right hand pane. However, if you click on any of the links it works just fine. The intermittance of this problem has made it very hard to diagnose. Thanks for all of everyone's help.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests