Results 1 to 12 of 12

Thread: Helpdesk - Fatal error

  1. #1
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Helpdesk - Fatal error

    Hi I set up the Helpdesk extension a while back and all worked great.

    I just set up 3 new members today but when I login as any of them I get the following error:

    Fatal error: Cannot instantiate abstract class Template in /var/www/dev.marketingability.co.uk/system/modules/helpdesk/HelpdeskFrontendModule.php on line 83

    Any ideas?

    Thanks in advance.

    Gary.

  2. #2
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

    Default Re: Helpdesk - Fatal error

    Hi Gary-

    Might want to try and call "new FrontendTemplate" instead of "new Template" on line 84 and see if that makes a difference. Just a quick thought... The code might just need to be updated to be 2.7 compatible in a few places. I haven't run the Helpdesk extension in a while so that would be my first guess...

    Blair

  3. #3
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: Helpdesk - Fatal error

    Hi Blair,

    Thanks for trying to help me with this.

    I have done as you suggested. The screen now loads but at the top I see this error message:

    Code:
    Runtime notice: Creating default object from empty value in /var/www/dev.marketingability.co.uk/system/modules/helpdesk/HelpdeskController.php on line 3256
    .

    Can you help further?

    Thanks,

    Gary.

  4. #4
    User fbliss's Avatar
    Join Date
    06-19-09.
    Location
    Greenfield, MA
    Posts
    50

    Default Re: Helpdesk - Fatal error

    Hi Gary

    The quick & dirty method is to turn off runtime notices. This is happening because a value is (obviously) missing when building an object.

    First check to see if you have displayErrors enabled in the localconfig.php file. If so, you should turn this off unless you are doing other debugging. By default TYPOlight will report everything as it is set to E_ALL in initialize.php for error reporting mode. See if you can run the system without getting an error message after setting the array value that include the displayErrors key in it. It should be set to false. This is in localconfig.php

    Regards,

    Fred

  5. #5
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: Helpdesk - Fatal error

    Hi Fred,

    Thanks for taking a look at this.

    I have entered the following line in localconfig.php:

    Code:
    $GLOBALS['TL_CONFIG']['displayErrors'] = false;
    I still have the same runtime notice displayed.

    Any ideas?

    Thanks,

    Gary.

  6. #6
    User fbliss's Avatar
    Join Date
    06-19-09.
    Location
    Greenfield, MA
    Posts
    50

    Default Re: Helpdesk - Fatal error

    Hi Gary

    The only other thing you can do is forcibly remove E_NOTICE from error reporting, but obviously that only hides the message. Peter Koch is the man to ask about that, though. Perhaps he can resolve it quickly as it is his code.

    Good luck!

  7. #7
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: Helpdesk - Fatal error

    Hi Fred,

    Thanks for helping me out, appreciated.

    Your suggested workaround works a treat by amending initialise.php as follows:

    Code:
    error_reporting(($GLOBALS['TL_CONFIG']['displayErrors'] ? E_NONE : 0));
    Thanks again,

    Gary.

  8. #8
    User fbliss's Avatar
    Join Date
    06-19-09.
    Location
    Greenfield, MA
    Posts
    50

    Default Re: Helpdesk - Fatal error

    Hi Gary

    That will work as a temporary solution, but don't forget you set that the next time you update TYPOlight as your change will be overwritten by the original file. Good luck,

    Fred

  9. #9

    Default Re: Helpdesk - Fatal error

    Are you using the latest release of helpdesk (1.0)?

    That seems to be a error of older release together with TL 2.7.x
    Extensions: avatar, cron, dlstats, editarea, geshi, helpdesk, recall, rep_*, smhcheck.
    FAQ's - Documents - Tickets
    Please no help requests by PM, use the forum or ticket link above instead!

  10. #10
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: Helpdesk - Fatal error

    Hi Acenes,

    Yep just checked, definitely 1.0.0 stable build 12 with TL 2.7.2

    Thanks,

    Gary.

  11. #11

    Default Re: Helpdesk - Fatal error

    Seems to be a missed issue at transition to 2.7.

    Changing "...new Template(...." to "...new BackendTemplate(...." in line 83 of HelpdeskFrontendModule.php should fix it.
    Extensions: avatar, cron, dlstats, editarea, geshi, helpdesk, recall, rep_*, smhcheck.
    FAQ's - Documents - Tickets
    Please no help requests by PM, use the forum or ticket link above instead!

  12. #12
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: Helpdesk - Fatal error

    Hi acenes,

    That worked perfectly - I have switched back on the displayErrors and none are reported.

    Thanks for your help. I am having a couple of other issues but will open a new thread for those.

    Cheers,

    Gary.

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
  •