Menu

Upgrade issues - Class not found

2011-10-26
2012-09-14
  • Keith Waldron

    Keith Waldron - 2011-10-26

    Hello - hope someone can help - I just downloaded and updated my alloc install

    • from version 1.7.4 to 1.8.2. I followed the brief instructions, went to the
      patch.php file, each patch ran with green check marks. I was then redirected
      to my dashboard where everything appeared to be fine - felt pretty good...
      however, I have 2 issues, both critical:

    1 - Task - Task All tab - at the bottom after the Comments Block this error is
    rendered inline:

    Fatal error: Class 'auditItem' not found in
    /home/username/public_html/task/lib/task.inc.php on line 1431 - I get the same
    error if I try to save a task - although at the top of the page

    2 - When I click on the Tools tab, the pages renders the Reminders link, but
    then returns this error:

    Fatal error: Class 'announcement' not found in
    /home/username/public_html/shared/lib/db_entity.inc.php on line 885

    These are new since the upgrade - Can anyone assist?

    We happily use alloc daily for our small dev/support team, and I would like to
    hear back from anyone who can help us solve this, thanks in advance!

    KW - ITO

     
  • Alex Lance

    Alex Lance - 2011-10-26

    Is this on windows or linux?

    Did you copy the new source code on top of the old source code? Or did you
    move the old source code away and replace it with the new source code?

    What is the value of your php include_path? You will find it in the php.ini
    file.

     
  • Keith Waldron

    Keith Waldron - 2011-10-26

    Thanks for your quick response -

    This is on a linux server - cpanel with centos - fairly up to date I believe.

    I moved original root contents source code into a sub-folder in the root -
    then uploaded all of the latest version files to the server. I copied my
    original alloc_config.php file to the root.

    My path is:

    include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/public_html/zen
    d'

    Thanks for you help.

    KW - ITO

     
  • Keith Waldron

    Keith Waldron - 2011-10-26

    I was just looking through the code - I think there is a typo in the include
    file - I changed it, and it resolved the first issue:

    excerpt from audit/lib/init.php

    require_once(dirname(FILE)."/auditItem.inc.php");

    class audit_module extends module

    {

    var $db_entities = array("auditItem"

    );

    }

    • note the ");" above

    I changed this to:

    require_once(dirname(FILE)."/auditItem.inc.php");

    class audit_module extends module

    {

    var $db_entities = array("auditItem");

    }

    and the task all error is gone... I wouldn't have thought to find a typo in
    downloaded code...

    On to the next error - I appreciate any input you have - also - do you know
    who we should report that small error to?

    KW-ITO

     
  • Alex Lance

    Alex Lance - 2011-10-26

    It's not a bug in the code. It's a bug in the version of PHP you are using.
    What is the version of PHP?

    To resolve your second error, the solution will be similar to the first.

     
  • Keith Waldron

    Keith Waldron - 2011-10-26

    I re-uploaded the files again - it appears that there were some files that for
    some reason did not upload the first time - although I received no FTP
    errors... After touching the file I mentioned above, and making sure all files
    were available - the issue is resolved.

    Thanks for your suggestions.

    KW-ITO

     
  • Keith Waldron

    Keith Waldron - 2011-10-26

    Might have been a bit of a red herring here - either a few files were
    corrupt/failed during upload, or were otherwise missing caused the issue - my
    change of the file along with re-uploading fixed things up... now - on to some
    fun with the new version... have to figure out customize timesheet reports:)

    Thanks for your help!

     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo