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
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.
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
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.
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!
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.
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
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
Re: Helpdesk - Fatal error
Hi Acenes,
Yep just checked, definitely 1.0.0 stable build 12 with TL 2.7.2
Thanks,
Gary.
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.
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.