After creating some project tasks I wanted to see in Gannt chart form - but the Gannt Chart option is missing from the dropdown menu in SuiteCRM 7.2.1
How to get it to show up? I am only seeing delete & duplicate. Thanks!
After creating some project tasks I wanted to see in Gannt chart form - but the Gannt Chart option is missing from the dropdown menu in SuiteCRM 7.2.1
How to get it to show up? I am only seeing delete & duplicate. Thanks!
Quick Repair & Rebuild in Admin -> Repair, execute any changes. Refresh page.
Did you install any new custom modules/functionality?
Thanks,
Will.
Same problem here, v7.2.1, “Quick Repair & Rebuild” doesn’t solve it.
I’ve some custom modules, I tried to deactivate them and quick repair again, nothing
Hi Will. Yes, there are many new custom modules added. Are you inferring that Gannt Chart will not work if and when additional custom modules/functionality is added? Are there specific modules that should not be added if Gannt Chart is to work? If so, which?
SugarPrint by Datamain, K Base Package, BRGDirectors (my custom), SugarCRM Canned Response Plugin, AlineaSol Common Base, SugarCRM Asterisk Module, User Activity By TechExtension, tagMe, Dynamic Dropdown(Urdhva Tech), KReporter Core, WYSIWYG, AlineaSol Reports - Community Edition, TrackerDisplay all installed. I have run quick repair and rebuild - and refreshed page. Never have seen Gannt Chart in menu.
I am running Bitnami stack on Amazon Web Services (Ubuntu, Apache, MySql, etc)
Have you ensured the module is enabled in Admin -> Display Modules and subpanels and is enabled for your user in the user preferences?
Thanks,
Will.
Will,
I am admin - and yes the module is available - how else would I know the Gannt chart is missing?
When I save a project task - the screen does not return properly - halts on all white screen - although when I re-enter suitecrm - the data did change. Edit view did not show predecessor and other fields. I have added to edit and detail view, but no difference. Still no gannt. Is there a sample template, a youtube video or a user manual that shows how Projects, Project Tasks and Gannt are supposed to work? I have attached screenshot to show that I am in module.
Have you resolved this? Same issue… frustrating!
I think you can try to add this to the template file :
<li><a id="view_gantt">View Gantt</a><input title="" class="button" type="button" name="view_gantt" id="view_gantt_old" value="View Gantt" onclick="javascript:window.location.href='index.php?module=Project&action=view_GanttChart&project_id=XXXX'" style="display: none;"></li>
Where XXX is equal to the project ID.
Bump…
I did an upgrade from 7.1.x to 7.3.1. When I add tasks, I get a blank white screen (like others) and I don’t see any way to view the Gantt Charts.
Thanks,
sieberta
See this link:
https://suitecrm.com/forum/installation-upgrade-help/3216-gantt-in-7-2?start=15#15265
Thank you! But what about all the users reporting a while screen after adding project tasks?
Did you check the CRM log or PHP log? Those will have clues. Sometimes it’s permissions, sometimes another issue that takes more work…
PHP Error Log:
[Fri Sep 25 20:38:05.412376 2015] [proxy_fcgi:error] [pid 1770:tid 139660399314688] [client (IPADDRESSHERE):54349] AH01071: Got error 'PHP message: PHP Fatal error: Call to a member function format() on a non-object in /opt/bitnami/apps/suitecrm/htdocs/custom/modules/ProjectTask/updateProject.php on line 22\nrelate_id=1&offset=1&name=1234&status=Not+Started&date_start=09%2F25%2F2015&date_finish=10%2F30%2F2015&priority=High&percent_complete=&project_name=Lambert+Municipal+Airport&project_id=1&task_number=&assigned_user_name=(USERNAME)&assigned_user_id=1&description=&estimated_effort=180&actual_effort=&relationship_type=FS&utilization=100&order_number=1&milestone_flag=0', referer: http://url.com/index.php
SuiteCRM Error Log:
Fri Sep 25 13:38:05 2015 [1941][1][ERROR] Unable to get proper side for link project_name_link
Fri Sep 25 13:38:05 2015 [1941][1][ERROR] Unable to get proper side for link project_name_link
Fri Sep 25 13:38:05 2015 [1941][1][ERROR] Unable to get proper side for link project_name_link
Fri Sep 25 13:38:05 2015 [1941][1][ERROR] Unable to get proper side for link project_name_link
Interestingly, I get that error on my 7.1.2 installation, but it doesn’t seem to cause any issue. Also interesting, is that if I populate the start date and end date of the project, it posts back OK without the fatal error. But those aren’t required fields by default???
Thanks for the input!
sieberta
Here is the code from “updateProject.php”, where it clearly shows it shouldn’t try and do this if the end date is null or empty string.
<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* updateProject.php
* @author SalesAgility (Andrew Mclaughlan) <support@salesagility.com>
* Date: 24/01/14
* Comments
*/
class updateEndDate {
//logichook is used to update project end date when task end date exceeds project end date
function update(&$bean, $event, $arguments){
if(!$this->IsNullOrEmptyString($bean->project_id)){
if($this->IsNullOrEmptyString($bean->set_project_end_date)){
global $current_user;
$dateformat = $current_user->getPreference('datef');
$project = new Project();
$project->retrieve($bean->project_id);
$projectend = DateTime::createFromFormat($dateformat, $project->estimated_end_date);
$projectend = $projectend->format('Y-m-d');
$taskend = $bean->date_finish;
//if the task end date is after the projects end date, extend the project to fit the new task end date.
if(strtotime($taskend) > strtotime($projectend))
{
$project->estimated_end_date = $taskend;
$project->save();
}
}
}
}
//Function for basic field validation (present and neither empty nor only white space
function IsNullOrEmptyString($question){
return (!isset($question) || trim($question)==='');
}
}
Here is my new updateProject.php, which fixes this issue, but why am I the only one with this problem?
<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* updateProject.php
* @author SalesAgility (Andrew Mclaughlan) <support@salesagility.com>
* Date: 24/01/14
* Comments
*/
class updateEndDate {
//logichook is used to update project end date when task end date exceeds project end date
function update(&$bean, $event, $arguments){
if(!$this->IsNullOrEmptyString($bean->project_id)){
if($this->IsNullOrEmptyString($bean->set_project_end_date)){
global $current_user;
$dateformat = $current_user->getPreference('datef');
$project = new Project();
$project->retrieve($bean->project_id);
if(!$this->IsNullOrEmptyString($project->estimated_end_date)){
$projectend = DateTime::createFromFormat($dateformat, $project->estimated_end_date);
$projectend = $projectend->format('Y-m-d');
$taskend = $bean->date_finish;
//if the task end date is after the projects end date, extend the project to fit the new task end date.
if(strtotime($taskend) > strtotime($projectend))
{
$project->estimated_end_date = $taskend;
$project->save();
}
} else {
//if there is no project end date, set the project end date equal to the new task end date.
$project->estimated_end_date = $bean->date_finish;
$project->save();
}
}
}
}
//Function for basic field validation (present and neither empty nor only white space
function IsNullOrEmptyString($question){
return (!isset($question) || trim($question)==='');
}
}
FYI, my fixes did not fix the SuiteCRM Error Log:
Wed Sep 30 09:31:22 2015 [2307][1][ERROR] Unable to get proper side for link project_name_link
Wed Sep 30 09:31:22 2015 [2307][1][ERROR] Unable to get proper side for link project_name_link
Wed Sep 30 09:31:22 2015 [2307][1][ERROR] Unable to get proper side for link project_name_link
Wed Sep 30 09:31:22 2015 [2307][1][ERROR] Unable to get proper side for link project_name_link
Wed Sep 30 09:31:22 2015 [2307][1][ERROR] Unable to get proper side for link project_name_link
Wed Sep 30 09:31:22 2015 [2307][1][ERROR] Unable to get proper side for link project_name_link
This problem existed before I upgrade to 7.3, but I don’t really have an idea as to what was causing it. I haven’t seen any lack of functionality due to this error, but I would still like to figure out what is going on.
I found this: https://community.sugarcrm.com/sugarcrm/topics/unable_to_get_proper_side_for_link_project_name_link-1gp0a4
which confused me at first…
But I edited modules\ProjectTask\vardefs.php (backwards of what was recommended in that post) and the errors went away with no apparent repercussions???
'project_name_link' =>
array (
'name' => 'project_name_link',
'type' => 'link',
'relationship' => 'projects_project_tasks',
'vname' => 'LBL_PROJECT_NAME',
'link_type' => 'one',
'module'=>'Project',
'bean_name'=>'Project',
'source'=>'non-db',
'side'=>'right',
),
The part I added was
'side'=>'right',
Does anyone know what is actually happening/going on here?
I had to do this again after upgrading to 7.7.2 (several upgrades inbetween). Why am I the only person reporting this issue? Should it be fixed in a different way so it isn’t overwritten every upgrade?