Results 1 to 5 of 5

Thread: Fatal error: Call to undefined method DateTimeUtil::format()

  1. #1
    SaintAnthony is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    24

    Default Fatal error: Call to undefined method DateTimeUtil::format()

    Hey guys,

    I recently edited my calendar.php, SubPanelSharedCalendar.php, template_shared_calendar.php and template_calendar.php, to allow for month view in the shared calendar. Now when I try to add a meeting to the calendar, I get the error:

    Fatal error: Call to undefined method DateTimeUtil::format() in /home/dvetter/public_html/SugarCE/SugarCE/modules/vCals/vCal.php on line 147

    Any thoughts on how I can fix this?

    Thanks in advance!

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Fatal error: Call to undefined method DateTimeUtil::format()

    You said you edited the file calendar.php. The class DateTimeUtil was defined there? Take a look whether the method “format” still there, and whether its parameters (signature, interface) still the same as before (or the same as expected by its consumer). Also make sure this method is set as public.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Fatal error: Call to undefined method DateTimeUtil::format()

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    You said you edited the file calendar.php. The class DateTimeUtil was defined there? Take a look whether the method “format” still there, and whether its parameters (signature, interface) still the same as before (or the same as expected by its consumer). Also make sure this method is set as public.
    Which version of Sugar are you using?
    John Mertic
    Sugar Community Manager

  4. #4
    SaintAnthony is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    24

    Default Re: Fatal error: Call to undefined method DateTimeUtil::format()

    I will check the method right now, and I am using 6.2.3CE

  5. #5
    SaintAnthony is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    24

    Default Re: Fatal error: Call to undefined method DateTimeUtil::format()

    Everything seems to match up to the best of my knowledge, I have uploaded the files that I have used in case you want to take a look.

    Calendar.php

    template_shared_calendar.php

    templates_calendar.php

    SubPanelSharedCalendar.php

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 'Fatal error: Call to undefined method SugarFieldBase::save()' since upgrade
    By tatty27 in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2011-01-13, 01:12 PM
  2. Replies: 2
    Last Post: 2010-08-03, 03:32 PM
  3. Replies: 2
    Last Post: 2010-07-21, 04:19 PM
  4. Replies: 0
    Last Post: 2008-07-20, 04:07 AM

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
  •