Adam Michel
on Aug 16. 2008. 12:45 pm
That doesn't do anything to fix the error that I can tell. If I follow your addition, you're checking for permission before showing the chart tab, which makes sense, but I don't see how it's meant to address the issue with the invalid method call.
Here's what I did to fix it:
In activecollab/application/modules/charts/controllers/ChartsController.class.php, line 158 you'll see:
Problem with that is that Milestones::findByProject a) doesn't take three arguments, and b) doesn't deal with visibility. As you can see here in activecollab/application/modules/milestones/models/Milestones.class.php on line 48
So, since that function call clearly just expects project and user, change activecollab/application/modules/charts/controllers/ChartsController.class.php, line 158 to look like this:
Bob appears to be your uncle.
Here's what I did to fix it:
In activecollab/application/modules/charts/controllers/ChartsController.class.php, line 158 you'll see:
$milestones = Milestones::findByProject($this->active_project, STATE_VISIBLE, $this->logged_user->getVisibility());
Problem with that is that Milestones::findByProject a) doesn't take three arguments, and b) doesn't deal with visibility. As you can see here in activecollab/application/modules/milestones/models/Milestones.class.php on line 48
function findByProject($project, $user) {
So, since that function call clearly just expects project and user, change activecollab/application/modules/charts/controllers/ChartsController.class.php, line 158 to look like this:
$milestones = Milestones::findByProject($this->active_project, $this->logged_user);
Bob appears to be your uncle.
Adam Michel
Unix Systems Programmer
University of Arizona
Unix Systems Programmer
University of Arizona
Can anyone upload the 0.3 version? I tried to download it but the link isn't working.
Thanks!
-Chris
Thanks!
-Chris
Colin | Rocket No. 9
on Aug 27. 2008. 10:33 am
I'm getting an error also for the download. If anyone can post a new link, that would be great.
Thanks!
Colin
Thanks!
Colin
www.RocektNo9.com
Cross Media Design & Branding
Cross Media Design & Branding
adria.richards
on Aug 28. 2008. 9:44 pm
Done. I checked and the origional link on page 3 is not working.
I will take it down if Vlademar requests it.
http://adennetworks.com/share/mirror/module-Vlademar-accharts-0.3.zip
I will take it down if Vlademar requests it.
http://adennetworks.com/share/mirror/module-Vlademar-accharts-0.3.zip
Paul O'Brien
on Sep 2. 2008. 3:51 am
Having installed the module (Version 0.3) and applied the workarounds mentioned I'm still experiencing a problem that Shrike reported earlier where clicking the "Chart it!" button does nothing but refresh the screen.
I've confirmed that the Gantt chart image is created in the cache directory but it doesn't appear on the charts page within ActiveCollab. I've looked through the source code to try and determine the problem but it's a little rough and ready. Enabling level 2 logging hasn't revealed any likely candidates.
Any ideas on what might be causing the problem?
I've confirmed that the Gantt chart image is created in the cache directory but it doesn't appear on the charts page within ActiveCollab. I've looked through the source code to try and determine the problem but it's a little rough and ready. Enabling level 2 logging hasn't revealed any likely candidates.
Any ideas on what might be causing the problem?
Paul O'Brien:Having installed the module (Version 0.3) and applied the workarounds mentioned I'm still experiencing a problem that Shrike reported earlier where clicking the "Chart it!" button does nothing but refresh the screen.
I've confirmed that the Gantt chart image is created in the cache directory but it doesn't appear on the charts page within ActiveCollab. I've looked through the source code to try and determine the problem but it's a little rough and ready. Enabling level 2 logging hasn't revealed any likely candidates.
Any ideas on what might be causing the problem?
I'm sorry I cant help, but applying the fixes as you mentioned on 1.1.5 gives me the exact same problem.
The Gantt Charts are created nicely, but do not show up on the screen only, only saved into the cache folder. I also seem to be getting a weird path problem, where when you click on the GanttChart tab, that it says 'page not found', but the end of the url path says 24, whereas all the other tabs on the same project the same part of the url says 2 instead. changing the 24 for a 2 at least then doesnt give me the error, and lets me see the Gantt chart page, but no charts.
Please, if anyone can help?
We're keen and may be able to pay someone if they can get this working. I stress may, as I'm still evaluating the software, but apart from this issue, look s very good.
Paul O'Brien:Having installed the module (Version 0.3) and applied the workarounds mentioned I'm still experiencing a problem that Shrike reported earlier where clicking the "Chart it!" button does nothing but refresh the screen.
I've confirmed that the Gantt chart image is created in the cache directory but it doesn't appear on the charts page within ActiveCollab. I've looked through the source code to try and determine the problem but it's a little rough and ready. Enabling level 2 logging hasn't revealed any likely candidates.
Any ideas on what might be causing the problem?
Actually I have half an idea what going on. I';m not a programmer, so could be going wrong, but I get a image that says 'JPGraph Generated Chart' .
The source shows that the path to this image is
<h2 class="section_name"><span class="section_name_span">Generated chart</span></h2>
<div id="section_container">
<img src="/cache/22b9fb1469e4ef21dc360e9cda821f76.png" alt="JPGraph Generated Chart" />
</div>
Now if you right click in Firefox and select properties, FF shows the image URL as
http://localhost/cache/22b9fb1469e4ef21dc360e9cda821f76.png
hmm ... my correct URL is actually
http://localhost/activecollab/cache/22b9fb1469e4ef21dc360e9cda821f76.png
so, path is wrong. But if this is really the case, why is the alt tab shown but not the image itself if path wrong?
Anyway, hopefully, this might trigger someone to have another look at this - it look like its very close .. the png files, look very nice it creates in /cache
Julian
I'm sorry I cant help, but applying the fixes as you mentioned on 1.1.5 gives me the exact same problem.
The Gantt Charts are created nicely, but do not show up on the screen only, only saved into the cache folder. I also seem to be getting a weird path problem, where when you click on the GanttChart tab, that it says 'page not found', but the end of the url path says 24, whereas all the other tabs on the same project the same part of the url says 2 instead. changing the 24 for a 2 at least then doesnt give me the error, and lets me see the Gantt chart page, but no charts.
Please, if anyone can help?
We're keen and may be able to pay someone if they can get this working. I stress may, as I'm still evaluating the software, but apart from this issue, look s very good.
joolsr:Paul O'Brien:Having installed the module (Version 0.3) and applied the workarounds mentioned I'm still experiencing a problem that Shrike reported earlier where clicking the "Chart it!" button does nothing but refresh the screen.
I've confirmed that the Gantt chart image is created in the cache directory but it doesn't appear on the charts page within ActiveCollab. I've looked through the source code to try and determine the problem but it's a little rough and ready. Enabling level 2 logging hasn't revealed any likely candidates.
Any ideas on what might be causing the problem?
YES !!!
If you use Firebug to tweak the source dynamically, and add the path of your install (if reqd), it works !! IE the graph shows up beautifully ..
Actually I have half an idea what going on. I';m not a programmer, so could be going wrong, but I get a image that says 'JPGraph Generated Chart' .
The source shows that the path to this image is
<h2 class="section_name"><span class="section_name_span">Generated chart</span></h2>
<div id="section_container">
<img src="/cache/22b9fb1469e4ef21dc360e9cda821f76.png" alt="JPGraph Generated Chart" />
</div>
Now if you right click in Firefox and select properties, FF shows the image URL as
http://localhost/cache/22b9fb1469e4ef21dc360e9cda821f76.png
hmm ... my correct URL is actually
http://localhost/activecollab/cache/22b9fb1469e4ef21dc360e9cda821f76.png
so, path is wrong. But if this is really the case, why is the alt tab shown but not the image itself if path wrong?
Anyway, hopefully, this might trigger someone to have another look at this - it look like its very close .. the png files, look very nice it creates in /cache
Julian
I'm sorry I cant help, but applying the fixes as you mentioned on 1.1.5 gives me the exact same problem.
The Gantt Charts are created nicely, but do not show up on the screen only, only saved into the cache folder. I also seem to be getting a weird path problem, where when you click on the GanttChart tab, that it says 'page not found', but the end of the url path says 24, whereas all the other tabs on the same project the same part of the url says 2 instead. changing the 24 for a 2 at least then doesnt give me the error, and lets me see the Gantt chart page, but no charts.
Please, if anyone can help?
We're keen and may be able to pay someone if they can get this working. I stress may, as I'm still evaluating the software, but apart from this issue, look s very good.
If you add the fullpath in, it WORKS !! Using firebug, and adding in /activecollab/ the graph appaers in 1.1.5 as in the screenshot attached .
Now, i need to find where the path is in the code, any ideas ?
Paul O'Brien
on Sep 18. 2008. 4:57 pm
Ok I got this sorted sometime ago but only now have found time to post a follow-up.
Basically the problem is with pathing, within the file \activecollab\application\modules\charts\controllers.php on line 269
// Save it to cache dir
$filename = md5($this->active_project->getName()) . '.png';
$filefs = ROOT . '/../cache/' . $filename;
$filerelative = 'http://activecollab.test.local/activecollab/cache/'.$filename; #<- Make this a entry a web url location, like this example
$graph->Stroke($filefs);
$this->smarty->assign(array(
'categories' => Categories::findByModuleSection($this->active_project, CHARTS_MODULE, 'charts'),
'charts_data' => $charts_data, 'filename' => $filerelative, ));
In the above code the $filerelative needs to be a valid URL, the code in used in the download didn't work for me because it was passing an invalid URL to the browser. I found this by having the path printed to the screen.
To do that edit \activecollab\application\modules\charts\views\charts\index.tpl and create a HTML section that will use the {$filename} token, you'll then be able to see the location being passed to the img src tag.
The above has worked well for me, note that I'm using IIS in a corporate environment for internal use.
Anyway hope this helps someone.
Basically the problem is with pathing, within the file \activecollab\application\modules\charts\controllers.php on line 269
// Save it to cache dir
$filename = md5($this->active_project->getName()) . '.png';
$filefs = ROOT . '/../cache/' . $filename;
$filerelative = 'http://activecollab.test.local/activecollab/cache/'.$filename; #<- Make this a entry a web url location, like this example
$graph->Stroke($filefs);
$this->smarty->assign(array(
'categories' => Categories::findByModuleSection($this->active_project, CHARTS_MODULE, 'charts'),
'charts_data' => $charts_data, 'filename' => $filerelative, ));
In the above code the $filerelative needs to be a valid URL, the code in used in the download didn't work for me because it was passing an invalid URL to the browser. I found this by having the path printed to the screen.
To do that edit \activecollab\application\modules\charts\views\charts\index.tpl and create a HTML section that will use the {$filename} token, you'll then be able to see the location being passed to the img src tag.
The above has worked well for me, note that I'm using IIS in a corporate environment for internal use.
Anyway hope this helps someone.



