Results 1 to 7 of 7

Thread: Cannot redeclare class EditView Tasks

  1. #1
    replicadata is offline Junior Member
    Join Date
    Jan 2010
    Posts
    2

    Default Cannot redeclare class EditView Tasks

    Hello,

    We have Sugar CRM 5.5 installed. All is working fine except for one error message which we get when we want to create a new task for a contact (so in the contact tab, button "create task").

    This is the message:
    "Cannot redeclare class EditView in .../include/EditView/EditView.php on line 40"

    Could some one please advise on what to do?

    Thanks a dozen!

    Red

  2. #2
    replicadata is offline Junior Member
    Join Date
    Jan 2010
    Posts
    2

    Smile Re: Cannot redeclare class EditView Tasks

    Hi there,

    Does anyone have any ideas for me?

    Thx

    Red

  3. #3
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: Cannot redeclare class EditView Tasks

    What version do you use of SugarCRM and PHP?
    Letrium ltd. - Only high quality service
    http://letrium.com

  4. #4
    privasphere is offline Member
    Join Date
    Mar 2007
    Posts
    12

    Default Re: Cannot redeclare class EditView Tasks

    I run the same error while making a new Meeting

    Fatal error: Cannot redeclare class EditView in /var/www/crm/include/EditView/EditView.php on line 40

    Version 5.5.2 (Build 1224)

    any help?

  5. #5
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Cannot redeclare class EditView Tasks

    How did you configure this instance?
    Is this a new one or upgraded from previous version?
    Did you install any package or customize anything by hand?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  6. #6
    jboeckler is offline Junior Member
    Join Date
    Jan 2007
    Posts
    1

    Default Re: Cannot redeclare class EditView Tasks

    I also am experiencing this issue. I just finished upgrading from 5.2.1 using the patch releases 5.2 -> 5.5.1 then 5.5.1 -> 5.5.2.

  7. #7
    snikwahj is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    38

    Thumbs up Re: Cannot redeclare class EditView Tasks

    All,

    I too have had this issue with the Tasks sub-panel on a custom module. As with jboeckler this occurred for me after upgrading a customers SugarCRM instance. I upgraded all the way from 4.5.1 to 5.5.4 (which is another story!).

    Anyway, I traced the issue down to there being legacy EditView.php & DetailView.php etc. files in the Tasks directory. These files were apparently conflicting with the new framework when creating the QuickCreate edit view form. I think this is due to the fact that the new framework uses an instantiation of the EditView class from file "include/EditView/EditView2.php" and the legacy system used an insantiation from the "include/EditView/EditView.php" file. Basically the system was using the legacy include and then the new include and that was redeclaring the same "EditView" class.

    My fix was to move the legacy stuff to the new MVC framework and delete the legacy files from the modules/Tasks folder (actually I appended ".old" to the file names to preserve history - just in case). This has fixed the error and I am now getting the QuickCreate form in the sub-panel again.

    This is only a partial fix for me though as I was using a custom tpl file as the QuickCreate form to allow me to create up to 10 tasks at a time related to the custom module - I am using them to record ToDo items against a custom object! So, if anyone has any quick ideas how I can re-override the MVC framework to create a fully custom QuickCreate form then please let me know.

    Thanks,

    JH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cannot redeclare class Tracker
    By rajendranraja in forum Help
    Replies: 0
    Last Post: 2009-09-24, 12:05 PM
  2. Replies: 1
    Last Post: 2009-08-05, 10:50 AM
  3. Cannot redeclare class Tracker
    By noswalnod in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-11-13, 08:04 PM
  4. Cannot redeclare class Tracker Error
    By cebula in forum Help
    Replies: 1
    Last Post: 2008-11-13, 01:44 PM
  5. Cannot redeclare class user
    By dchouinard in forum Help
    Replies: 0
    Last Post: 2007-11-14, 11:07 AM

Tags for this Thread

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
  •