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

    Schema update issues RC-9

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    10
    1.8k
    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.
    • K
      kpeterson
      last edited by

      Keep getting the following error when trying to update schema after updating to RC-9

      PHP Fatal error: Call to undefined method PDODB::insertId() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 524

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        Pinging @Tom-Elliott

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

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

          @Wayne-Workman pdodb insertId() does exist and is working from what I can tell.

          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

            https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/lib/db/pdodb.class.php#L402

            Just for clarity.

            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
            • S
              Sebastian Roth Moderator
              last edited by

              @kpeterson As you can see in the code two lines before insertId is called it says self::$DB->query. This is not failing, so why should self::$DB->insertId fail?

              My guess is something is wrong with the repo checkout. Please check your /var/www/html/fog/lib/db/pdodb.class.php (around line 400). Do you see the function definition??

              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

              K 1 Reply Last reply Reply Quote 1
              • K
                kpeterson @Sebastian Roth
                last edited by

                @Sebastian-Roth said in Schema update issues RC-9:

                /var/www/html/fog/lib/db/pdodb.class.php

                The function is indeed there, this is what I have

                public function insertId()
                {
                return self::$_link->lastInsertId();
                }

                Anything else I should check?

                Q 1 Reply Last reply Reply Quote 0
                • Q
                  Quazz Moderator @kpeterson
                  last edited by

                  @kpeterson Might be worth checking out the SQL server log. Will be somewhere in /var/log/mysql afaik.

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    kpeterson @Quazz
                    last edited by

                    @Quazz

                    SQL logs all look good, like Sebastian said probably a problem with the checkout but I have no idea what to do. I guess first thing I will try is pull down a fresh copy of RC9

                    Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                    • Wayne WorkmanW
                      Wayne Workman @kpeterson
                      last edited by

                      @kpeterson said in Schema update issues RC-9:

                      I guess first thing I will try is pull down a fresh copy of RC9

                      As well as deleting /var/www/fog and /var/www/html/fog and then re-running the installer.

                      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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      K 1 Reply Last reply Reply Quote 2
                      • K
                        kpeterson @Wayne Workman
                        last edited by

                        @Wayne-Workman
                        I feel dumb now, should have tried that yesterday. Simply deleting those folders/doing another git clone and everything is working fine now. Thanks a lot for the help!

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

                        230

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project