-
Notifications
You must be signed in to change notification settings - Fork 5
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
Updates to support webtrees 1.7.9 #23
Conversation
…splayed during this request (and shouldn't need a try/catch fallback anymore)
I attempted this PR. FYI, I get an error: Update; I should have put in this is on 1.7.9 |
Good to know. I've updated to title to reflect the need to be on 1.7.9. |
Ok correction on my correction... "I should have put in my post that I'm running 1.7.9"... lol "Lets eat, grandma." vs "Lets eat grandma." Grammar and commas save lives. |
Oh, I see. I was hoping you figured it out! In the latest version, that line is blank: https://github.com/fisharebest/webtrees/blob/master/app/Theme/AbstractTheme.php#L1973 |
Very interesting. Mine is different from the master. I wonder if something was skipped during an upgrade? I have:
L1973 ---> $individual = $controller->getSignificantIndividual();
} Let me see about downloading a new set of files and see if that resolves it. Must be something horked up somewhere. |
I just checked and that's not the file distributed with 1.7.9. The diff -u is pretty huge. It still runs if swap that in but the error just moves to line 1983. (The new call.) If you have any suggestions to troubleshoot I'm happy to do so. My first guess is that $controller shouldn't be null but it's hard to track a global you're not familiar with. |
$controller definitely shouldn't be null, it should contain the main page controller for the site, but not sure what would be causing it to go away. The only time this uses the global $controller is in the |
I just cloned the latest and my version shows 1.8.0-dev. I'm still getting the same error, FYI. What PHP version are you using? |
PHP is version 7.1.5. Just to confirm, if you roll back to the master commit of this repo, does it work? It almost feels as though a |
Hi |
Hello, Thank you. |
@anmol26s @lmbvm It was working for me when I committed it (aside from a couple fixes shorty after). The 1 person who had issues hasn't come back to say if they ever fixed it or not and no one else has said whether it is or isn't working for them, so you're probably best off trying it and seeing how it goes. |
Thank you very much and apologies about the horribly slow review. I had assumed that a new webtrees version would have been released a long time ago and I was waiting for that to avoid having to update the module yet again. It seems like v2 of webtrees is still a ways away though. |
Thank you |
Fixes #23. "To try to improve performance on mobile networks, Nodes and Edges in v2.4 requires that you explicitly request the field(s) you need for your GET requests."
While testing these changes I hit the
|
@Ephemerality Reverting the |
Yeah I don't really recall what the issue was with it, I'll have to remember to be more specific with that sort of thing next time. Not sure what the difference is, but mine seems to work with or without the globals defined there. |
I think you didn't test the brand new user case on this branch since I fixed a few bugs with that after this PR.
Yeah, I'm well aware of that as it's mentioned in the README and covered by #16 and #11. It's really unfortunate and it's part of the reason I lost motivation to work on this module for a while. Facebook and Webtrees are constantly breaking things for no clear reason. |
Also note that I added Selenium integration tests that interact with the Graph API so that testing different scenarios isn't as tedious and it would mean I can merge future PRs easier. There is still more scenarios to add to the tests. |
Definitely not. I haven't done much with it at all since June except continuously try to keep it working in the latest dev version (2.0.0). I'll have to check out your updates...
Doh, I missed that, thought it was a more recent change. It's definitely the most annoying breaking change of all. |
Initial changes required to run the module on webtrees 1.7.9.
Slow day yesterday, so I went ahead and re-did the changes with more granular commits. Hopefully that makes it easier to review :)