Cannot create Tasks, Task Manager Blank
-
Hi Chad. Thanks for the response. I tried different browsers and from different machines with the same result. I am fairly noobish when it comess to linux, but I managed to find the apache logs. here’s what I am seeing:
[QUOTE]
[Wed Nov 14 08:14:05 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://xxx.xxx.xxx.xxx/fog/management/index.php?node=tasks&sub=listhosts[/url][Wed Nov 14 08:14:05 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined index: confirm in /var/www/fog/management/includes/tasks.include.php on line 5, referer: [url]http://xxx.xxx.xxx.xxx/fog/management/index.php?node=tasks&sub=listhosts[/url]
[Wed Nov 14 08:14:05 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call-time pass-by-reference has been removed in /var/www/fog/management/includes/tasks.confirm.include.php on line 754, referer: [url]http://xxx.xxx.xxx.xxx/fog/management/index.php?node=tasks&sub=listhosts[/url]
[/QUOTE]I’m not sure what that means though - like I said, I’m new to this. Did I not configure something corrrectly?
-
The undefined index errors can be ignored. The call-time pass-by-reference is probably the culprit. Take a look at the code in the /var/www/fog/management/includes/tasks.confirm.include.php line 754 and take the “&” out of the function call argument list. Save the file and try again.
-
I tried removing the ‘&’ symbol from the argument list, but that doesn’t seem to have made a difference.
-
try to schedule a task again, look at the apache logs, see what the errors are now, ignoring the undefinded index errors.
-
Well, thank you for your suggestions chad-bisd; I think we’ve found a solution. Every time I would try to schedule a task I’d see another error similar to the one above show up in the apache logs. At the end of the line I found “&$tmp”. After removing the ‘&’ symbol I would get another error, but referencing new line, which would of course have “&$tmp” at the end. I finally did a search/replace on all instances of “&$tmp” replacing them with “$tmp” (just removing the & symbol). Immediately after that I tried to schedule an upload and was met with the correct confirmation screen under task management.
Thank you for your help.
For other users with this issue, here is specifically what I did. I can’t guarantee it will work for everyone, but it seems to have corrected it for me at least:
gksu gedit /var/www/fog/management/includes/tasks.confirm.include.php
Search Menu > Replace
Search for: &$tmp
Replace with: $tmp
Replace All (there were somewhere around twenty instances)
Save
Close
Then try to schedule your upload task again. -
It’s just magic, i replaced the “&$tmp” and it works for me.
Anyone knows what’s the source problem?A php update?
Thanks for the help gents!
Regards,
Fred -
Newer versions of PHP no longer accept function calls with arguments explicitly passed by reference. It’s been deprecated for several releases of PHP, but still worked. It does not work anymore. The function definition must specify whether the argument is passed by value or by reference, and the function call just needs to specify the variable name or value without the &
-
Amazing… it worked perfectly
-
This post is deleted! -
Thanks rma (a year later), that solved my issue too! For anyone else running FOG headless, this single command fixes it:
sed ‘s:&$tmp:$tmp:’ -i /var/www/fog/management/includes/tasks.confirm.include.php
For those unfamiliar with sed, the command simply replaces “&$tmp” with “$tmp” in the file.