• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Cannot create Tasks, Task Manager Blank

    Scheduled Pinned Locked Moved
    FOG Problems
    7
    13
    14.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rma
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • C
        chad-bisd Moderator
        last edited by

        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.


        If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

        1 Reply Last reply Reply Quote 0
        • R
          rma
          last edited by

          I tried removing the ‘&’ symbol from the argument list, but that doesn’t seem to have made a difference.

          1 Reply Last reply Reply Quote 0
          • C
            chad-bisd Moderator
            last edited by

            try to schedule a task again, look at the apache logs, see what the errors are now, ignoring the undefinded index errors.


            If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

            1 Reply Last reply Reply Quote 0
            • R
              rma
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • F
                Fred
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • C
                  chad-bisd Moderator
                  last edited by

                  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 &


                  If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

                  1 Reply Last reply Reply Quote 0
                  • C
                    Corey kelly
                    last edited by

                    Amazing… it worked perfectly 🙂

                    1 Reply Last reply Reply Quote 0
                    • N
                      noelpd
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • 7
                        7rox
                        last edited by

                        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.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        194

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project