Results 1 to 4 of 4

Thread: Save Project Task Error

  1. #1
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Save Project Task Error

    I get the following error when I click Save after creating a new Project Task:

    Warning: aSubPanel::require(modules//metadata/subpanels/.php) [function.aSubPanel-require]: failed to open stream: No such file or directory in /var/www/html/SugarCRM/include/SubPanel/SubPanelDefinitions.php on line 88

    Fatal error: aSubPanel::require() [function.require]: Failed opening required 'modules//metadata/subpanels/.php' (include_path='/var/www/html/SugarCRM/include/..:.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/SugarCRM/include/SubPanel/SubPanelDefinitions.php on line 88
    If I return to the Project, the task was saved properly. If I then create another task, it is saved normally with no warnings or errors. If I logout and login again and create a new task, I get the error again.

    I have not customized Projects. We do not use it formally in my company and I simply started using it to track my own project tasks, but I had tried out Projects under 5.2 with no problems. So I don't know if this error has been there all along or if it just started.

    I recently went through the entire Wiki Performance section and implemented almost all the tips including collapsing subpanels initially on login. But in order to add a Project Task I expand the Tasks subpanel, click Create, fill in the form and click Save, so the subpanel is opened before the save action.

    Has anyone seen this error?

    I have SugarCRM 5.5.1, MySQL 5.0.45, php 5.2.4 on Linux Mandriva 2008.

    Thanks

    Phil

  2. #2
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: Save Project Task Error

    Is the module and subpanel normally specified in a GET string?

    The important aspect of this message is the line:
    Failed opening required 'modules//metadata/subpanels/.php'
    Note that there is no module specified (i.e. 'modules//metadata') and that the filename is empty (i.e. 'subpanels/.php') as if they were filled in from a variable that was supposed to be set from a GET string which was never set.

    Looks like a bug to me. Ideas?

    Anyone have trouble with Project Tasks in 5.5.1?

    I'll try to characterize a little better before I file a bug in Bug Tracker.

    Phil

  3. #3
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: Save Project Task Error

    I opened bug #37229 for this.

    Poking around the code, it appears that the module name is supposed to get filled in from the subpanel collection. So I am guessing that the subpanel collection is not initialized properly when the subpanel is first expanded.

    I tried expanding the subpanel, navigating away, returning, then clicking Create and I do not get the error with those steps.

    So it appears to be related to my having set 'hide_subpanels' to improve performance.

    Phil

  4. #4
    uneebe is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Default Re: Save Project Task Error

    Hi,

    I fixed this in my Sugar instance but its not Upgrade Safe.
    Paste this code snippet in the file, include/SubPanel/SubPanel.php, right at the beginning of function 'SubPanel' to get stuff working..

    PHP Code:
    global $sugar_config;
    if(empty(
    $subpanel_id) && empty($subpanelDef) && $_REQUEST['action']=='SubPanelViewer' && $sugar_config['hide_subpanels']==true)            //fix for sugarcrm bug 37229
        
    header("Location: index.php?module=$_REQUEST[module]&action=DetailView&record=$_REQUEST[record]"); 
    I'm posting this because I didn't see any official fix for this bug.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. $bean->save() action for a Project Task
    By twguk1516 in forum Developer Help
    Replies: 12
    Last Post: 2008-07-16, 05:13 PM
  2. Error with ADD PROJECT TASK
    By kathiste in forum Help
    Replies: 0
    Last Post: 2007-11-20, 07:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •