Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Editview's have stopped appearing

  1. #1
    atheimer98 is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    202

    Default Editview's have stopped appearing

    Running OS 4.5
    PHP 5
    mysql

    My system suddenly doesn't display any editview pages. When I try and edit or create a record via a full form the area where the editview form normally appears is blank. This is the case for all of the edit's and worse yet there is nothing that I can detect to have directly caused this. The editview files are intact, I have checked permissions and ownership. I have tried to edit the editview files in the Studio and they appear as blanks as well. What in the world happened?
    Can anyone point me in the right direction? I have attached an excerpt of the debug log when I try and navigate to the tasks editview

    <excerpt from sugarcrm.log>

    WHERE meetings_users.user_id ='1' ^
    AND meetings.reminder_time != -1^
    AND meetings_users.deleted != 1^
    HAVING dateTime >= '2006-12-22 23:03:09'
    Fri Dec 22 17:03:09 2006,081 [12970] INFO SugarCRM - Query Execution Time:0.00042300000000001
    Fri Dec 22 17:03:09 2006,081 [12970] INFO SugarCRM - Query:^
    SELECT calls.id, name, reminder_time, description, date_start, time_start, ^
    CONCAT( date_start, CONCAT(' ', time_start) ) AS dateTime ^
    FROM calls LEFT JOIN calls_users ON calls.id = calls_users.call_id ^
    WHERE calls_users.user_id ='1' ^
    AND calls.reminder_time != -1 ^
    AND calls_users.deleted != 1^
    HAVING dateTime >= '2006-12-22 23:03:09'
    Fri Dec 22 17:03:09 2006,087 [12970] INFO SugarCRM - Query Execution Time:0.005631
    Fri Dec 22 17:03:09 2006,116 [12970] DEBUG SugarCRM - including headers
    Fri Dec 22 17:03:09 2006,136 [12970] INFO SugarCRM - Query:SELECT placement,name,id,url from iframes WHERE deleted=0 AND statu
    Fri Dec 22 17:03:09 2006,136 [12970] INFO SugarCRM - Query Execution Time:0.00036800000000001
    Fri Dec 22 17:03:09 2006,150 [12970] DEBUG SugarCRM - About to retrieve list: SELECT tracker.* from tracker WHERE user_id='1'
    Fri Dec 22 17:03:09 2006,150 [12970] DEBUG SugarCRM - Limit Query:SELECT tracker.* from tracker WHERE user_id='1' ORDER BY id
    Fri Dec 22 17:03:09 2006,150 [12970] INFO SugarCRM - Query:SELECT tracker.* from tracker WHERE user_id='1' ORDER BY id DESC LI
    Fri Dec 22 17:03:09 2006,151 [12970] INFO SugarCRM - Query Execution Time:0.000723
    Fri Dec 22 17:03:09 2006,160 [12970] INFO SugarCRM - Query:SELECT category, name, value FROM config
    Fri Dec 22 17:03:09 2006,161 [12970] INFO SugarCRM - Query Execution Time:0.00046000000000002
    Fri Dec 22 17:03:09 2006,164 [12970] DEBUG SugarCRM - ---------> BEGING INCLUDING REQUESTED PAGE: [modules/Tasks/EditView.php
    Fri Dec 22 17:03:09 2006,177 [12970] INFO SugarCRM - Task detail view

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Editview's have stopped appearing

    Do you have access to your apache/IIS logs. I bet your going to find an exception fault there. Look and let me know.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    atheimer98 is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    202

    Default Re: Editview's have stopped appearing

    You were right, here are the fatal errors from the last couple trys. So it looks like 2 functions are having a problem

    sugar_exit() and get_validate_record_js()

    To my knowledge there was nothing done to directly cause this, any thoughts on what I can do to restore this system to
    working order? Thank you for your help already!

    [client 192.168.2.10] PHP Fatal error: Call to undefined function sugar_exit() in /var/www/html/modules/Studio/wizards/Select
    ModuleLayout.php on line 68, referer: http://server.com/index.php?module=S...setLayout=true
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/cache/studio/modu
    les/Calls/EditView.php on line 188, referer: http://server.com/index.php?module=S...x&setLayout=tr
    ue
    [client 192.168.2.10] PHP Fatal error: Call to undefined function sugar_exit() in /var/www/html/modules/Studio/wizards/Select
    ModuleLayout.php on line 68, referer: http://server.com/index.php?module=S...setLayout=true
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/cache/studio/modu
    les/Cases/EditView.php on line 125, referer: http://server.com/index.php?module=S...x&setLayout=tr
    ue
    [client 192.168.2.10] PHP Fatal error: Call to undefined function sugar_exit() in /var/www/html/modules/Studio/wizards/Select
    ModuleLayout.php on line 68, referer: http://server.com/index.php?module=S...setLayout=true
    [client 192.168.2.10] PHP Fatal error: Call to undefined function sugar_exit() in /var/www/html/modules/Studio/wizards/Select
    ModuleLayout.php on line 68, referer: http://server.com/index.php?module=S...yout=true&list
    view=true
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/cache/studio/modu
    les/Cases/EditView.php on line 125, referer: http://server.com/index.php?module=S...x&setLayout=tr
    ue&listview=true
    [client 192.168.2.10] PHP Fatal error: Call to undefined function sugar_exit() in /var/www/html/modules/Studio/wizards/Select
    ModuleLayout.php on line 68, referer: http://server.com/index.php?module=S...setLayout=true
    [client 192.168.2.10] PHP Fatal error: Call to undefined function sugar_exit() in /var/www/html/modules/Studio/wizards/Select
    ModuleLayout.php on line 68, referer: http://server.com/index.php?module=S...setLayout=true
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/cache/studio/modu
    les/Cases/EditView.php on line 125, referer: http://server.com/index.php?module=S...x&setLayout=tr
    ue
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/cache/studio/modu
    les/Cases/EditView.php on line 125, referer: http://server.com/index.php?module=S...x&setLayout=tr
    ue
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/modules/Calls/Edi
    tView.php on line 186, referer: http://server.com/index.php?module=C...6a8f9853-b696-
    098c-00b4-4580761d1994
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/modules/Calls/Edi
    tView.php on line 186, referer: http://server.com/index.php?module=C...6a8f9853-b696-
    098c-00b4-4580761d1994
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/modules/Tasks/Edi
    tView.php on line 166, referer: http://server.com/index.php
    [client 192.168.2.10] PHP Fatal error: Call to undefined function get_validate_record_js() in /var/www/html/modules/Calls/Edi
    tView.php on line 186, referer: http://server.com/index.php?module=C...6a8f9853-b696-
    098c-00b4-4580761d1994
    Last edited by atheimer98; 2006-12-28 at 06:08 PM.

  4. #4
    atheimer98 is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    202

    Default Re: Editview's have stopped appearing

    Alright, so I've poked around and got the editview to start working again for calls by commenting out the line below in
    modules/calls/editview.php that was causing the php failure. I do the same in tasks and I can create and edit there as well.
    The only thing I can think of is it's related to not having a Json module installed but that still doesn't explain why everything used to work properly. Any thoughts? What exactly am I losing by commeneting out the line below.

    line186: //$xtpl->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js() . $quicksearch_js);

  5. #5
    mismaxanne is offline Member
    Join Date
    Jan 2007
    Posts
    6

    Cool Re: Editview's have stopped appearing

    Could this be the same problem that all of us are having after upgrading to v 5.0a? Many of us get a blank screen when trying to edit or even add a task.

  6. #6
    Zirius is offline Junior Member
    Join Date
    Feb 2006
    Posts
    4

    Default Re: Editview's have stopped appearing

    I was searching for understanding as to why we cannot view a list of Tasks. We jsut upgraded from 4.5. From the previous comment, can anyone point me to a post that would help, or make a comment?
    Thanks

  7. #7
    sugarcrmdaddy is offline Junior Member
    Join Date
    Feb 2008
    Posts
    2

    Default Re: Editview's have stopped appearing

    Just edit out those lines from the offending EditView.php files.

    Contacts/EditView.php
    Accounts/EditView.php
    Leads/EditView.php
    blah...

    Commenting these lines out is harmless because the function does not exist, although it probably will in a later release. You can see in other modules in the Forms.php file where this function exists. The offending modules do not have this defined. For examples see...

    ProspectLists/Forms.php

    Also, in Documents/EditView.php the string being assigned to the $javascript variable should be quoted.

    $javascript = "get_set_focus_js().get_validate_record_js()";

  8. #8
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default Re: Editview's have stopped appearing

    Instead of editing out that line in Each and Every EditView.php file, why not define the get_validate_record_js() function its looking for in one place, but leave it blank, like so?

    function get_validate_record_js()
    {}

    If saves in the right file this will stop that error site wide.

    I just saved it in my index.php towards the top and now the error is gone.

    This is just a temp fix until that function is defined in a later version
    Laban Johnson
    SugarCE User, Idealist
    Open Source and Social Media Enthusiast, Social Entrepreneur
    Twitter: http://www.twitter.com/labanjohnson
    Facebook LinkedIn
    Home page: http://www.LabanJohnson.com

  9. #9
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default Re: Editview's have stopped appearing

    ... only problem with that now is that I am getting this error:
    Fatal error: Cannot redeclare get_validate_record_js() (previously declared in /sugar/index.php:42) in /sugar/modules/iFrames/Forms.php on line 52
    It appears that someone already thought to make a blank get_validate_record_js() (great minds think alike!)

    but this is apparently not being included for the edit views.

    So the hot fix for this, again until something is actually declared within the get_validate_record_js() function:

    in modules/iFrames/Forms.php

    if (!function_exists('get_validate_record_js'))
    {
    function get_validate_record_js () {
    }
    }
    Laban Johnson
    SugarCE User, Idealist
    Open Source and Social Media Enthusiast, Social Entrepreneur
    Twitter: http://www.twitter.com/labanjohnson
    Facebook LinkedIn
    Home page: http://www.LabanJohnson.com

  10. #10
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default Re: Editview's have stopped appearing

    looks like this function is being called in all the modules' Form.php scripts, and I'm not going to edit them all

    So I made this change to the change I added in the index.php
    // temp fix - Laban
    if (!function_exists('get_validate_record_js') && ($_REQUEST['action']
    !='DetailView') )
    {
    function get_validate_record_js () {
    }
    }
    Laban Johnson
    SugarCE User, Idealist
    Open Source and Social Media Enthusiast, Social Entrepreneur
    Twitter: http://www.twitter.com/labanjohnson
    Facebook LinkedIn
    Home page: http://www.LabanJohnson.com

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

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
  •