Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.7.2 "Undefined offset: 2" Editing Name Fact #704

Closed
eric215 opened this issue Aug 26, 2015 · 5 comments
Closed

1.7.2 "Undefined offset: 2" Editing Name Fact #704

eric215 opened this issue Aug 26, 2015 · 5 comments

Comments

@eric215
Copy link

eric215 commented Aug 26, 2015

Recently upgraded to 1.7.2 Received error below each time I open up name fact to edit for 1 individual
#0 /edit_interface.php:2521 ErrorException("Undefined offset: 2")
#1 /edit_interface.php:1643 Fisharebest\Webtrees\print_indi_form()

nameediterror

This has only occurred on 1 individual but consistently. I tried several others and received no error.

http://behunt.net/ft/individual.php?pid=I1548&ged=hunt.ged

@fisharebest
Copy link
Owner

Does this name record have a multi-line note or source-citation?

@eric215
Copy link
Author

eric215 commented Aug 27, 2015

yes - there was a multi-line simple note attached to the Name fact.

I reproduced this in the current beta by adding a note line this

1 NAME Augustus the Younger, Duke of Brunswick-Lüneburg
2 NOTE line 1
3 CONT line 2
3 CONT line 3

With a one-line note the edit window works OK.

Adding a multi-line shared note does not cause a problem. The below works OK on my 1.7.2 site even though the shared note is several lines long

1 NAME Douglas Wright /Hunt/
2 TYPE birth
2 GIVN Douglas Wright
2 SURN Hunt
2 NOTE @N133@

Do you want this split into 2 bugs?

The edit window fails on my 1.7.2 site and on the latest beta with the same message if the Text in the source citation is multi-lines as well:

1 NAME Douglas Wright /Hunt/
2 TYPE birth
2 GIVN Douglas Wright
2 SURN Hunt
2 NOTE @N133@
2 SOUR @S15@
3 DATA
4 TEXT line 1
5 CONT line 2
5 CONT line 3

@fisharebest
Copy link
Owner

Do you want this split into 2 bugs?

No. I think this is the same bug.

@antilet
Copy link
Contributor

antilet commented Sep 1, 2015

Same bug in dev-demo (latest beta):
#0 /edit_interface.php:2521 ErrorException("Undefined offset: 2")
#1 /edit_interface.php:1643 Fisharebest\Webtrees\print_indi_form('update', [Individual i229@1], [NULL], [Fact c0ba7de8db845acf11d4435822812704@i229], '', 'F')

also reported in forum:
https://www.webtrees.net/index.php/en/forum/help-for-ver-1-7-2/30629-error-by-editing-names#55113

is there an "easy" solution / workaround?

@fisharebest
Copy link
Owner

Duplicate of #690

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants