Results 1 to 3 of 3
Like Tree2Likes
  • 1 Post By westphal
  • 1 Post By mpoer@profilingsolutions.com

Thread: resolved: undefined LoggerManager::getloggerrepository()

  1. #1
    westphal is offline Junior Member
    Join Date
    Nov 2008
    Posts
    2

    Lightbulb resolved: undefined LoggerManager::getloggerrepository()

    I got
    Fatal error: Call to undefined method LoggerManager::getloggerrepository() in /srv/www/htdocs/SugarCRM/log4php/LoggerPropertyConfigurator.php on line 120
    when trying to upgrade from 5.0.0i to 5.1.0b.

    Reason were some older modules using a now outdated logging mechanism, while
    the logging mechanisms received an update (BUMM).
    I resolved the issue by commenting the following 5 lines in include/logging.php:

    PHP Code:
    if (! isset($simple_log) || $simple_log == false) { 
    $config = new LoggerPropertyConfigurator(); 
    $config->configure('log4php.properties'); 

    (The cleaner way would be to set $simple_log to something like true, but I did not take the time
    to find out, how to do that).

    This way I could upgrade without further problems and the module loader worked
    for me, so I could upgrade the outdated modules as well.

    Good luck I had a Xen VM to spare for this upgrade, so I was the only one, who invested time into this.

    I hope this saves you some time
    (the upgrade ruined a whole working day for me, just because the old modules wanted to have their log configured
    and it was not just ZuckerReports in my case, but Queues and Rules used include/logging.php as well).

    Regards,

    Heiner
    --
    Heiner Westphal, www.verit.de
    Chris_C likes this.

  2. #2
    mpoer@profilingsolutions.com's Avatar
    mpoer@profilingsolutions.com is offline Sugar Community Member
    Join Date
    May 2011
    Location
    Atlanta, GA
    Posts
    64

    Default Re: resolved: undefined LoggerManager::getloggerrepository()

    This thread seems long-dead, but it's worth noting that this fix still works for old Sugar instances, particularly if an old version of Zucker is lingering around.

    Re-blogged and bumping to give the OP his due credit.
    Chris_C likes this.
    Matthew Poer, Consultant/Developer with Profiling Solutions (Atlanta, GA and Mobile, AL).

    @matthewpoer
    @PSI_Atlanta

    Check out my SugarCRM modules:

  3. #3
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: resolved: undefined LoggerManager::getloggerrepository()

    It would be good for Sugar CE to start using PHP Interfaces - this is so that, when new mechanisms come into play, and older code gets obsolete, this can provide forward compatibility to the older code - so it won't just break like that, and ruin days of productivity for millions of people around the world. It needs to just work.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ZuckerReports 1.10 in SugarCRM 5.1.0
    By domenico1983 in forum Help
    Replies: 18
    Last Post: 2008-12-16, 03:24 PM
  2. Admin Tools for SugarCRM 4.2
    By kbrill in forum Downloads
    Replies: 80
    Last Post: 2006-09-22, 10:31 PM
  3. PHP Warnings after install add-in Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2006-08-08, 05:54 PM
  4. Errors after upgrade
    By mturany in forum Help
    Replies: 0
    Last Post: 2006-04-24, 04:40 AM
  5. ERROR in 4.01
    By rateck in forum Help
    Replies: 3
    Last Post: 2006-02-02, 10:00 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
  •