Menu

Fresh install

Help
steve1445
2021-02-08
2021-02-09
  • steve1445

    steve1445 - 2021-02-08

    Downloaded my sql database from a working online version, this install is for backup and eventual replacement purposes.

    Environment:
    Windows 10,
    downloaded the snapshot r7283,
    PHP Version 7.4.1

    Starting the install the following error message is produced:

    Fatal error: Uncaught Error: Access to undeclared static property: PGV_DB::$DB_ENGINE in C:\MAMP\phpGedView\includes\db_schema\db_schema_11_12.php:63 Stack trace: #0

    C:\MAMP\phpGedView\includes\classes\class_pgv_db.php(782): require() #1

    C:\MAMP\phpGedView\includes\session.php(325): PGV_DB::updateSchema('C:\MAMP\phpGedV...', 'PGV_SCHEMA_VERS...', 14) #2 C:\MAMP\phpGedView\config.php(76): require_once('C:\MAMP\phpGedV...') #3 C:\MAMP\phpGedView\index.php(35): require('C:\MAMP\phpGedV...') #4 {main} thrown in C:\MAMP\phpGedView\includes\db_schema\db_schema_11_12.php on line 63

    If a can provide any other information please ask.

     
  • Gerry Kroll

    Gerry Kroll - 2021-02-09

    You didn't mention the database type.

    SVN number 7283 is the correct SVN version.

    Are you SURE of that line number 782 in \includes\classes\class_pgv_db.php ?

    According to my copy of the SVN, that line number should be 799. Also, that $DB_ENGINE variable is defined on line 63 of that same file.

    It looks as if the file class_pgv_db.php is corrupt.

    Please check the file class_pgv_db.php:
    (a) that the SVN version recorded in line 27 is 7281, dated 2021-02-02
    (b) that line 63 is:
    public static $DB_ENGINE =null;
    (c) that line 782 is:
    self::$COL_YEAR=self::$INT2_TYPE;
    (d) that line 799 is:
    require $schema_dir.'db_schema_'.$current_version.'_'.$next_version.'.php';

    If your copy of class_pgv_db.php doesn't match, there may be other files that are also corrupt.

     
    • steve1445

      steve1445 - 2021-02-09

      Thanks for the help! I hosed up the install and corrupted the file you
      mentioned. Working now.

      On Mon, Feb 8, 2021, 7:59 PM Gerry Kroll canajun2eh@users.sourceforge.net
      wrote:

      You didn't mention the database type.

      SVN number 7283 is the correct SVN version.

      Are you SURE of that line number 782 in \includes\classes\class_pgv_db.php
      ?

      According to my copy of the SVN, that line number should be 799. Also,
      that $DB_ENGINE variable is defined on line 63 of that same file.

      It looks as if the file class_pgv_db.php is corrupt.

      Please check the file class_pgv_db.php:
      (a) that the SVN version recorded in line 27 is 7281, dated 2021-02-02
      (b) that line 63 is:
      public static $DB_ENGINE =null;
      (c) that line 782 is:
      self::$COL_YEAR=self::$INT2_TYPE;
      (d) that line 799 is:
      require $schema_dir.'db_schema_'.$current_version.'_'.$next_version.'.php';

      If your copy of class_pgv_db.php doesn't match, there may be other files
      that are also corrupt.


      Fresh install
      https://sourceforge.net/p/phpgedview/discussion/185166/thread/db1fda3fa9/?limit=25#7fa3


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/phpgedview/discussion/185166/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Gerry Kroll

    Gerry Kroll - 2021-02-09

    Thanks for the update.

    I am glad I was able to help. One thing you might consider is the amount of memory allocated to PhpGedView. This is in the site configuration that you access from the Admin menu.

    If I recall, the default memory allocation is 32 Mb. That's not nearly enough. 64 Mb is better, and 128 Mb should be more than enough, particularly if you're working with a lot of media or if your database has a lot of people in it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.