Task Management Blank



  • Ok so I know this has been posted before, but I’ve followed the directions posted here:
    http://fogproject.org/forum/threads/cannot-create-tasks-task-manager-blank.3823/#post-9593

    But when I do the search and replace it does it for ~200 items rather than ~20. And the Task Manager is still blank underneath the Task Management Logo.
    I’m running FOG on ubuntu server 13.04 with FOG v .32



  • Horray! It works perfect.

    Thanks!


  • Senior Developer

    remove trunk from the command line sorry.



  • I’m getting an 404 Not Found on that. Is there another site that it’s on that you know of?


  • Senior Developer

    sounds like it.

    Try redownloading just the file you need:

    wget https://svn.code.sf.net/p/freeghost/code/trunk/tags/0.32/packages/web/management/includes/tasks.confirm.include.php -O /var/www/fog/management/includes/tasks.confirm.include.php
    

    That’s all one line.

    Then perform the sed command I gave above and try again.



  • So this is the error…

    [Wed Feb 26 15:46:11.688696 2014] [:error] [pid 1894] [client XXXXX] PHP Parse error:  syntax error, unexpected '$tmp' (T_VARIABLE) in /var/www/fog/management/includes/tasks.confirm.include.php on line 752, referer: http://XXX/fog/management/index.php?node=host&sub=edit&tab=tasks&id=2
    

    So basically I messed up a command somewhere and it ended up replacing things it shouldn’t have?


  • Senior Developer

    What do the error logs tell you when you go to schedule a task?

    /var/log/apache2/error.log



  • @Tom Elliott, post: 23582, member: 7271 said:

    Alright,

    The fix for this is to open the file, tasks.confirm.include.php and replace all the instances of &$tmp with $tmp.

    I don’t know what command you used to perform this, but if it’s finding 200~ items to replace, chances are there’s a typo in your statement.

    You should simply need to enter the command:

    >sed 's:&$tmp:$tmp:' -i /var/www/fog/management/includes/tasks.confirm.include.php
    >``` and be done.
     
    I copy/pasted that exact code and am still ending up with the blank space.

  • Senior Developer

    Alright,

    The fix for this is to open the file, tasks.confirm.include.php and replace all the instances of &$tmp with $tmp.

    I don’t know what command you used to perform this, but if it’s finding 200~ items to replace, chances are there’s a typo in your statement.

    You should simply need to enter the command:

    sed 's:&$tmp:$tmp:' -i /var/www/fog/management/includes/tasks.confirm.include.php
    ``` and be done.

Log in to reply
 

394
Online

38918
Users

10688
Topics

101399
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.