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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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:
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.