• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Sep 6, 2016, 5:01 PM

    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
    • W
      Wayne Workman
      last edited by Sep 6, 2016, 5:43 PM

      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/

      T 1 Reply Last reply Sep 6, 2016, 5:46 PM Reply Quote 0
      • T
        Tom Elliott @Wayne Workman
        last edited by Sep 6, 2016, 5:46 PM

        @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
        • T
          Tom Elliott
          last edited by Sep 6, 2016, 5:48 PM

          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 Sep 7, 2016, 8:53 AM

            @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 Sep 7, 2016, 2:51 PM Reply Quote 1
            • K
              kpeterson @Sebastian Roth
              last edited by Sep 7, 2016, 2:51 PM

              @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 Sep 7, 2016, 2:55 PM Reply Quote 0
              • Q
                Quazz Moderator @kpeterson
                last edited by Sep 7, 2016, 2:55 PM

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

                K 1 Reply Last reply Sep 7, 2016, 3:07 PM Reply Quote 0
                • K
                  kpeterson @Quazz
                  last edited by Sep 7, 2016, 3:07 PM

                  @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

                  W 1 Reply Last reply Sep 7, 2016, 3:11 PM Reply Quote 1
                  • W
                    Wayne Workman @kpeterson
                    last edited by Sep 7, 2016, 3:11 PM

                    @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 Sep 7, 2016, 3:18 PM Reply Quote 2
                    • K
                      kpeterson @Wayne Workman
                      last edited by Sep 7, 2016, 3:18 PM

                      @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
                      1 / 1
                      • First post
                        9/10
                        Last post

                      196

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project