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

PHP error "Call to a member function url() on null" if "Source facts to show for sources within source citations" is used #50

Closed
macRaizel opened this issue Nov 20, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@macRaizel
Copy link

original posted problem: Installed and did basic configuration (to see if error disappeared, turned off some). Saw error which mentions Vesta module that I have installed.

<followup....>
Will have to turn the module on and seeing if I can replicate error. I assume you're referring to supplying the GEDCOM code for the record which was random. I happened to be on that person's record but don't remember who. So will note that when I experiment again.

@Jefferson49
Copy link
Owner

Reported in webtrees forum, #102126

PHP error:
Call to a member function url() on null …/modules_v4/repository_hierarchy/resources/views/source-facts-within-citation.phtml:60

Full stack trace:
error.txt

@Jefferson49
Copy link
Owner

Can be reproduced, if a source contains a wrong XREF to a repository, e.g. if X1234 does not exist in the following example:

0 @I9117@ INDI
1 BAPM
2 DATE 31 JAN 1881
2 SOUR @S10698@

0 @S10698@ SOUR
1 REPO @X1234@

@Jefferson49
Copy link
Owner

You can search for this error, if you check the webtrees tree in the control panel:

Control panel / Manage family trees / Check for errors

webtrees_check_for_errors

It might be possible to search in the browser for "Source:" or "does not exist".

@Jefferson49 Jefferson49 added the bug Something isn't working label Nov 22, 2023
@Jefferson49 Jefferson49 changed the title repository_hierarchy module error (from webtrees forum) PHP error "Call to a member function url() on null" if "Source facts to show for sources within source citations" is used Nov 22, 2023
@macRaizel
Copy link
Author

I fixed all errors and turned on RepositoryHierarchy. It does work. What I noticed is without anything checked in Settings for Repository Hierarchy list is the Publication shows (desired) but so too Author, Repository, Notes(undesired). Didn't see option to show just the Publication.

@Jefferson49
Copy link
Owner

In the new layout for the settings, you need to select or un-select each of the facts.

You can un-select by clicking on the label (e.g. "Author"). You can add by choosing from the drop down menu.

image

@macRaizel
Copy link
Author

Is there newer version than repository_hierarchy_v1.3.7?

@Jefferson49
Copy link
Owner

Yes, v1.3.8

See release area in GitHub

@macRaizel
Copy link
Author

Installed. Working. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants