If you need to upgrade your PGV installation, then hopefully you will also consider that you can conveniently move to webtrees with our PGV-to-webtrees wizard. It will move ALL your users, news, favorites and family trees to webtrees in a matter of minutes.

TOPIC: fatal error running transfer wizard [solved]

fatal error running transfer wizard [solved] 3 years 1 month ago #1

  • eneless
  • eneless's Avatar
Hi

I have just tried to migrate my PGV to a new webtrees installation.

My PGV version is 4.2.3 and I am trying to transfer to WT 1.7.2

I have provided the WT DB user full privelages to the PGV DB. When I run the transfer wizard I get the following error: -
PhpGedView to webtrees transfer wizard
/home/****/public_html/family/index/config.php => wt_site_setting…

pgv_site_setting => wt_site_setting…

/home/****/public_html/family/index/gedcoms.php => wt_gedcom…

pgv_users => wt_user…

pgv_users => wt_user_setting…

pgv_users => wt_user_gedcom_setting…


Fatal error: Call to a member function getTreeId() on a non-object in /home/****/public_html/webtrees/admin_pgv_to_wt.php on line 558

I found nothing either here in the forum or through doing a keyword search in the launchpad bug tracker. Line 558 of the file contains the following
$tree_id = Tree::findByName($gedcom)->getTreeId();[/color]


which is part of
try {
					$tree_id = Tree::findByName($gedcom)->getTreeId();
					Database::prepare(
						"INSERT IGNORE INTO `##user_gedcom_setting` (user_id, gedcom_id, setting_name, setting_value) VALUES (?, ?, ?, ?)"
					)->execute(array($setting->user_id, $tree_id, 'gedcomid', $value));
				} catch (PDOException $ex) {
					// Invalid data?  Reference to non-existing tree?
				}

Can anyone suggest how I might proceed?
Last Edit: 3 years 1 month ago by eneless.
The administrator has disabled public write access.

fatal error running transfer wizard 3 years 1 month ago #2

  • makitso
  • makitso's Avatar
  • Offline
  • Administrator
  • Posts: 425
This is similar to but not exactly like the problem discussed in Tree Error

Do you have multiple trees in your installation?
Rob
www.skatekey.net ( version 2.0.0 GitHub)
PHP 7.1.21, MySQL 5.6.40, Apache 2.2.9,
Hosted at tigertech.net
The administrator has disabled public write access.

fatal error running transfer wizard 3 years 1 month ago #3

  • eneless
  • eneless's Avatar
nope. I have a single gedcom.
The administrator has disabled public write access.

fatal error running transfer wizard 3 years 1 month ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10500
I guess that your PGV site contains corrupt data.

Specifically, I think that the u_gedcomid column of the pgv_users table contains data for a non-existant tree.

I've just updated the code to work around this invalid data. I haven't been able to test it, but it's a simple change.

You can download the updated code from github.com/fisharebest/webtrees/blob/master/admin_pgv_to_wt.php (click "Raw", and then download using your browser)
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

fatal error running transfer wizard 3 years 1 month ago #5

  • eneless
  • eneless's Avatar
Fixed. Thanks! :)
The administrator has disabled public write access.

[SOLVED] fatal error running transfer wizard 3 years 1 month ago #6

  • eneless
  • eneless's Avatar
Problem solved.
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum