0

FOG blank page when creating new task

This is caused by a PHP update whereby function calls have arguements passed by reference i.e the ampersand & this has been depreceated for a long time but only recently has PHP dropped support for it entirely.

FOG contains the &$tmp variable in the tasks.confirm.include.php file, therefore you will need to change it to $tmp in order to be able to create tasks. To do this perform the following actions:

  1. Edit /var/www/fog/management/includes/tasks.confirm.include.php search for ‘&$tmp‘ and replace with ‘$tmp‘ there are around 20 occurances.
    $ sudo nano /var/www/fog/management/includes/tasks.confirm.include.php
    • In nano use ctrl + w to find ‘&$tmp‘ and then delete the ‘&‘ at each occurance.
  2. Try your task again and it should work.

Subscribe to my feed either by E-mail or by RSS to receive updates as they happen.

Can you improve on any of the tips I’ve discussed here? If you can let me know in the comments.

Jason Edwards