phpCollab Community
Discuss everything phpCollab!

The forums are currently in READ-ONLY mode while we upgrade the forums.
Home » Support » General Support » jpgraph and team privileges issues (jpgraph and team privileges issues )
jpgraph and team privileges issues [message #8637] Thu, 11 March 2010 19:11 Go to next message
levelle is currently offline  levelle
Messages: 5
Registered: March 2010
phpCollab guest
Hello guys
I've installed v2.5 few days ago and just love it. I've been playing with it for a few days and found 2 issues I can't fix.

1) jpgraph doesn't show at all. I've searched the forum, checked lines in the code and tried everything described in here - nothing helps. I don't see it at all - neither red cross nor errors. It is enabled in settings (I put "true"). I'm using HostGator hosting and it claims GD library is installed. But still Gantt doesn't appear on viewproject. Any ideas? This is the most important feature for me.

2) I'm going to use this as a collaboration application between me and my team. So basically I'm the only manager/administrator. Is there any way to switch off the ability of my team to add/delete tasks? I will be the only one who can create projects/task. Plus I don't really like the edit feature, i.e. I want a team member to be able to post a comment on the task, but not being able to edit task information. I'm not a php coder so it's pretty hard for me to do anything with it. I've tried to use this condition

if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {}

for add/edit buttons, but that didn't help - the buttons appear and disappear correctly but those that stay aren't clickable.

Any help on any of the issues above would be appreciated. Thanks in advance.

PS. As a typical woman, I'd really like to have a FCKEditor or TinyMCE or sth else for textboxes. Are there any modules available for this?

[Updated on: Thu, 11 March 2010 19:28]

Report message to a moderator

Re: jpgraph and team privileges issues [message #8640 is a reply to message #8637] Mon, 22 March 2010 19:32 Go to previous messageGo to next message
mindblender is currently offline  mindblender
Messages: 610
Registered: July 2003
Location: AZ
phpCollab contributor

levelle wrote on Thu, 11 March 2010 11:11

1) jpgraph doesn't show at all. I've searched the forum, checked lines in the code and tried everything described in here - nothing helps. I don't see it at all - neither red cross nor errors. It is enabled in settings (I put "true"). I'm using HostGator hosting and it claims GD library is installed. But still Gantt doesn't appear on viewproject. Any ideas? This is the most important feature for me.


You might check the php log files and see if there are any errors being logged. If so, post them here and I can try and help troubleshoot.

levelle wrote on Thu, 11 March 2010 11:11

2) I'm going to use this as a collaboration application between me and my team. So basically I'm the only manager/administrator. Is there any way to switch off the ability of my team to add/delete tasks? I will be the only one who can create projects/task. Plus I don't really like the edit feature, i.e. I want a team member to be able to post a comment on the task, but not being able to edit task information. I'm not a php coder so it's pretty hard for me to do anything with it. I've tried to use this condition

if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {}

for add/edit buttons, but that didn't help - the buttons appear and disappear correctly but those that stay aren't clickable.


Currently there is no way to control access from the project side. If you want to only allow them read/create access you could set them up as a client user and have them use the client side of the app. They would be able to create and view requests but not edit them.

levelle wrote on Thu, 11 March 2010 11:11

PS. As a typical woman, I'd really like to have a FCKEditor or TinyMCE or sth else for textboxes. Are there any modules available for this?

There are pros and cons with using a rich editor. Sometimes the user does not use it properly and likes to put everything in an H1 tag just be cause it is "important". Smile However, it should be fairly easy to implement an editor, its already in the system in a few spots, just need to add the calls to the form fields.

Hope that helps!

Keep us updated on your progress.

Jeff
Re: jpgraph and team privileges issues [message #8641 is a reply to message #8637] Tue, 23 March 2010 04:39 Go to previous messageGo to next message
aqwnet is currently offline  aqwnet
Messages: 2
Registered: March 2010
phpCollab guest
I too am experiencing the inability to display graphs. In my case, I'm trying the view the graphs on the Team Tasks page. I've followed the advice in this topic and viewed the logs. I've made every attempt to log an error by enabling every error log type I could come up with, but I can't get it to log an error.

I did notice in the jpg-confg.inc file, there is a path for a jpgraph cache in /tmp/jpgraph_cache. I did create this directory, but the result was the same, so I am not sure whether this cache is utilized or not.

This is low priority for my purposes, but I'm willing to help out here.

Aaron
Re: jpgraph and team privileges issues [message #8642 is a reply to message #8640] Tue, 23 March 2010 09:02 Go to previous messageGo to next message
levelle is currently offline  levelle
Messages: 5
Registered: March 2010
phpCollab guest
Thank u Jeff
I played with php and was able to hide delete buttons everywhere, so I fixed that. I enabled editor and now PHPCollab is almost perfect, except I still can't enable JPGraph

I looked for error logs - found none. Few days ago for about an hour I saw JPGraph error on Calendar page. It said somthing about plot area too small. I was playing with hosting settings and then it disappeared again. I still can't repeat it. But at list I saw an error.

Any ideas, maybe I need to enable sth on the hosting?
Re: jpgraph and team privileges issues [message #8643 is a reply to message #8642] Tue, 23 March 2010 16:26 Go to previous messageGo to next message
mindblender is currently offline  mindblender
Messages: 610
Registered: July 2003
Location: AZ
phpCollab contributor

I'll take a look and see if I can find anything and let you know and Aaron know what I find.
Re: jpgraph and team privileges issues [message #8644 is a reply to message #8637] Tue, 23 March 2010 17:37 Go to previous messageGo to next message
levelle is currently offline  levelle
Messages: 5
Registered: March 2010
phpCollab guest
I finally got an error - completely different one. All I did - set-upped task's planned end date
Right now I have an image right under the tasks, that say 'General PHP error: Non-static method. JpGraphError: install() should not be called statically'
Any ideas what is that?
Re: jpgraph and team privileges issues [message #8645 is a reply to message #8637] Wed, 24 March 2010 08:26 Go to previous messageGo to next message
levelle is currently offline  levelle
Messages: 5
Registered: March 2010
phpCollab guest
Hello Guys.
I fixed the problem. Looked at JPGraph forum according to the error.
In jpgraph.php (line 331) update class JpGraphError with the following code:

class JpGraphError {
public static function Install($aErrObject) {
GLOBAL $__jpg_err;
$__jpg_err = $aErrObject;
}
public static function Raise($aMsg,$aHalt=true){
GLOBAL $__jpg_err;
$tmp = new $__jpg_err;
$tmp->Raise($aMsg,$aHalt);
}
}

Now everything works fine. As I understood the problem was in JPGraph incompatibility to PHP 5.1. Hope that will help someone.
Re: jpgraph and team privileges issues [message #8646 is a reply to message #8637] Wed, 24 March 2010 08:31 Go to previous messageGo to next message
mindblender is currently offline  mindblender
Messages: 610
Registered: July 2003
Location: AZ
phpCollab contributor

levelle,

Thanks for the update. Do you happen to know if that is a backwards compatible solution for earlier versions of PHP?
Re: jpgraph and team privileges issues [message #8647 is a reply to message #8637] Wed, 24 March 2010 08:48 Go to previous messageGo to next message
levelle is currently offline  levelle
Messages: 5
Registered: March 2010
phpCollab guest
Jeff, don't know about that. Didn't try and didn't really notice anything about it while searching
Re: jpgraph and team privileges issues [message #8648 is a reply to message #8637] Thu, 25 March 2010 01:47 Go to previous messageGo to next message
aqwnet is currently offline  aqwnet
Messages: 2
Registered: March 2010
phpCollab guest
I took a look at Levelle's suggestion. Firstly, the jpgraph.php file didn't contain the JpGraphError class. Instead, I located it in jpgraph_errhandler.inc.php. The jpgraph.php file has a runonce reference to jpgraph_errhandler.inc.php, so I am guessing this basically the same as what Levelle edited. Are there different versions of jpgraph being distributed in the includes?

Editing jpgraph_errhandler.inc.php still did not produce any graphs. I however do have jpgraph 3.0.7 loaded on the server. To determine if results differ, I put a symbolic link in the includes directory to the jpgraph 3.0.7 directory. Doing so, I'm still not getting a graph, but now I'm getting a browser-based error message of JpGraph Error:6006. I'll attach the image.

I'm still working on this, and I'll update if I find something. Additional feedback is welcome.
Re: jpgraph and team privileges issues [message #8726 is a reply to message #8642] Sat, 09 October 2010 08:59 Go to previous messageGo to next message
ceccherini is currently offline  ceccherini
Messages: 1
Registered: October 2010
phpCollab guest
Ciao
i did the things described in this forum for activate fckeditor but i was not able to enable fckeditor in all textarea controls... It runs for projects (in editproject.php) but not for tasks (in edittask.php)...
Can you help me? thank you very much!!!
Re: jpgraph and team privileges issues [message #8838 is a reply to message #8637] Tue, 08 March 2011 13:16 Go to previous message
lamadredelsapo is currently offline  lamadredelsapo
Messages: 5
Registered: March 2011
phpCollab guest
I have phpCollab over xampp and windows, and even though I followed your tips I don't get the gantt charts. Just the red cross. There are no errors in php log.
Previous Topic: Total worked hours on a project
Next Topic: Internal Server Error
Goto Forum:
  


Current Time: Thu May 23 14:27:54 CEST 2013

Total time taken to generate the page: 0.28755 seconds