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

    FOG 1.0.1 on Debian 7.5 PrinterManager Error pulling printer list

    Scheduled Pinned Locked Moved
    FOG Problems
    6
    14
    4.0k
    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.
    • B
      BPSTravis Developer
      last edited by

      It seems like there is a bad call somewhere as the actual name for the printer class is PrinterAssociationManager.class

      We are looking into this right now.

      [SIZE=12px]signature:[/SIZE]
      [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

      1 Reply Last reply Reply Quote 0
      • B
        BPSTravis Developer
        last edited by

        Found the issue, resolved in revision 1717. Please update your FOG version.

        [SIZE=12px]signature:[/SIZE]
        [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

        1 Reply Last reply Reply Quote 0
        • G
          GAm7
          last edited by

          Cool! Where can I download the latest update, and how do I install it ? The lastest file on sourceforce i can see is 1.0.1 from [FONT=sans-serif][COLOR=#555555]2014-05-13 ?[/COLOR][/FONT]

          1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer
            last edited by

            [url]http://www.fogproject.org/wiki/index.php/SVN[/url]

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

              After updating, it still wasn’t working for me until I added “\n” to the end of the print statement when the printer type isn’t a Network or iPrint printer (by the way does the printer class even set a type? I couldn’t find it anywhere).

              After that it worked, but it was trying to add a blank printer for every real printer I had:
              [CODE] 5/22/2014 2:05 PM FOG::PrinterManager Adding new printers to host…
              5/22/2014 2:05 PM FOG::PrinterManager 6 found on server side.
              5/22/2014 2:05 PM FOG::PrinterManager Installation requested for
              5/22/2014 2:05 PM FOG::PrinterManager Printer Installed:
              5/22/2014 2:05 PM FOG::PrinterManager Installation requested for
              5/22/2014 2:05 PM FOG::PrinterManager Printer Installed:
              5/22/2014 2:05 PM FOG::PrinterManager Installation requested for
              5/22/2014 2:05 PM FOG::PrinterManager Printer Installed:
              5/22/2014 2:05 PM FOG::PrinterManager Printer already installed Test Printer1
              5/22/2014 2:05 PM FOG::PrinterManager Printer already installed Test Printer2
              5/22/2014 2:05 PM FOG::PrinterManager Printer already installed Test Printer3[/CODE]

              Not a big deal since nothing happens (I think), but I couldn’t figure out why, so I just hacked around it and this is working perfectly for me:
              [CODE]foreach ($Printers AS $Printer)
              {
              // Send the printer based on the type.
              if ($Printer->get(‘type’) == ‘Network’)
              $return = ‘|||’.$Printer->get(‘name’).‘||’.($Host->getDefault($Printer->get(‘id’))?‘1’:‘0’);
              else if ($Printer->get(‘type’) == ‘iPrint’)
              $return = $Printer->get(‘port’).‘|||’.$Printer->get(‘name’).‘||’.($Host->getDefault($Printer->get(‘id’))?‘1’:‘0’);
              else
              $return = $Printer->get(‘port’).‘|’.$Printer->get(‘file’).‘|’.$Printer->get(‘model’).‘|’.$Printer->get(‘name’).‘|’.$Printer->get(‘ip’).‘|’.($Host->getDefault($Printer->get(‘id’))?‘1’:‘0’);

                                  if (!($return == '|||||0'))
                                          print base64_encode($return)."\n";
                          }[/CODE]
              
              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                [quote=“naeren, post: 27894, member: 24314”]After updating, it still wasn’t working for me until I added “\n” to the end of the print statement when the printer type isn’t a Network or iPrint printer (by the way does the printer class even set a type? I couldn’t find it anywhere).

                After that it worked, but it was trying to add a blank printer for every real printer I had:
                [CODE] 5/22/2014 2:05 PM FOG::PrinterManager Adding new printers to host…
                5/22/2014 2:05 PM FOG::PrinterManager 6 found on server side.
                5/22/2014 2:05 PM FOG::PrinterManager Installation requested for
                5/22/2014 2:05 PM FOG::PrinterManager Printer Installed:
                5/22/2014 2:05 PM FOG::PrinterManager Installation requested for
                5/22/2014 2:05 PM FOG::PrinterManager Printer Installed:
                5/22/2014 2:05 PM FOG::PrinterManager Installation requested for
                5/22/2014 2:05 PM FOG::PrinterManager Printer Installed:
                5/22/2014 2:05 PM FOG::PrinterManager Printer already installed Test Printer1
                5/22/2014 2:05 PM FOG::PrinterManager Printer already installed Test Printer2
                5/22/2014 2:05 PM FOG::PrinterManager Printer already installed Test Printer3[/CODE]

                Not a big deal since nothing happens (I think), but I couldn’t figure out why, so I just hacked around it and this is working perfectly for me:
                [CODE]foreach ($Printers AS $Printer)
                {
                // Send the printer based on the type.
                if ($Printer->get(‘type’) == ‘Network’)
                $return = ‘|||’.$Printer->get(‘name’).‘||’.($Host->getDefault($Printer->get(‘id’))?‘1’:‘0’);
                else if ($Printer->get(‘type’) == ‘iPrint’)
                $return = $Printer->get(‘port’).‘|||’.$Printer->get(‘name’).‘||’.($Host->getDefault($Printer->get(‘id’))?‘1’:‘0’);
                else
                $return = $Printer->get(‘port’).‘|’.$Printer->get(‘file’).‘|’.$Printer->get(‘model’).‘|’.$Printer->get(‘name’).‘|’.$Printer->get(‘ip’).‘|’.($Host->getDefault($Printer->get(‘id’))?‘1’:‘0’);

                                    if (!($return == '|||||0'))
                                            print base64_encode($return)."\n";
                            }[/CODE][/quote]
                

                Which part did you add the \n to?

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  I’ve found and added the \n on the last part of the checks. Sorry I missed it.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

                    No worries. Thank you!

                    1 Reply Last reply Reply Quote 0
                    • G
                      GAm7
                      last edited by

                      Installed the last SVN 1726… and didn´t work:
                      Started from Fog Tray
                      [QUOTE]23.05.2014 07:54 FOG::printerManager Printer update was request from fog tray…
                      23.05.2014 07:54 FOG::printerManager Management level = 1
                      23.05.2014 07:54 FOG::printerManager Adding new printers to host…
                      23.05.2014 07:54 FOG::printerManager 0 found on server side.
                      23.05.2014 07:55 FOG::printerManager Failed to connect to fog server!
                      23.05.2014 07:55 FOG::printerManager This is typically caused by a network error!
                      23.05.2014 07:55 FOG::printerManager Sleeping for 1 minute.
                      23.05.2014 07:56 FOG::printerManager Failed to connect to fog server!
                      23.05.2014 07:56 FOG::printerManager This is typically caused by a network error!
                      23.05.2014 07:56 FOG::printerManager Sleeping for 1 minute.[/QUOTE]
                      And from self:
                      [QUOTE] 23.05.2014 07:58 FOG::printerManager Failed to connect to fog server!
                      23.05.2014 07:58 FOG::printerManager This is typically caused by a network error!
                      23.05.2014 07:58 FOG::printerManager Sleeping for 1 minute.
                      [/QUOTE]
                      Apache Error.log:
                      [QUOTE][Fri May 23 07:48:48 2014] [error] [client 10.231.194.28] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/fog/lib/fog/FOGBase.class.php on line 164
                      [Fri May 23 07:49:49 2014] [error] [client 10.231.194.28] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/fog/lib/fog/FOGBase.class.php on line 164[/QUOTE]

                      The message is now different in the fog.log, but the result is equal.

                      1 Reply Last reply Reply Quote 0
                      • AbuelikaA
                        Abuelika
                        last edited by

                        SAME PROBLEM:

                        [Fri May 23 09:33:35 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:34:36 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:35:36 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:35:41 2014] [error] [client 172.16.64.224] File does not exist: /var/www/html/fog/management/css/images, referer: [url]http://172.16.10.230/fog/management/index.php?node=about&sub=settings[/url]
                        [Fri May 23 09:35:41 2014] [error] [client 172.16.64.224] File does not exist: /var/www/html/fog/management/css/images, referer: [url]http://172.16.10.230/fog/management/index.php?node=about&sub=settings[/url]
                        [Fri May 23 09:35:41 2014] [error] [client 172.16.64.224] File does not exist: /var/www/html/fog/management/css/images, referer: [url]http://172.16.10.230/fog/management/index.php?node=about&sub=settings[/url]
                        [Fri May 23 09:36:37 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:37:38 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:38:38 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:39:39 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:40:39 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:41:40 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:42:40 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:43:41 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164
                        [Fri May 23 09:44:41 2014] [error] [client 172.16.35.14] PHP Fatal error: Class ‘PrinterManagementAssociationManager’ not found in /var/www/html/fog/lib/fog/FOGBase.class.php on line 164

                        GFG! ¬¬!

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          When you updated to svn, did you reinstall with ./installfog.sh or just update what was in your svn folder?

                          I assure you, this Error has since been corrected: (NOTE THERE’S NO FILES RETURNED
                          [code][root@mastaweb fog]# grep -rl ‘PrinterManagementAssociation’ .
                          [root@mastaweb fog]# [/code]

                          If PrinterManagementAssociationManager was found it would be in /var/www/{FOGWEBDIR}/service/PrinterManager.php
                          If you can edit the file, Change the part that says PrinterManagementAssociationManager to:
                          PrinterAssociationManager

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          1 Reply Last reply Reply Quote 0
                          • G
                            GAm7
                            last edited by

                            I did the update according to the instructions from: [url]http://www.fogproject.org/wiki/index.php/SVN[/url]
                            so it was a reinstall with ./installfog.sh

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

                              I’ve tried it out with a fresh install and it’s working for me. Maybe the new file isn’t overwriting the old one. I run into weird problems when updating a lot of times unless I delete the web directory (rm -rf /var/www/fog) before reinstalling.

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

                              305

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project