Question Module 'recent changes' not showing anymore
- aderksen
- Topic Author
- Offline
- New Member
It was always below the module 'most viewed pages'.
In the browser inspector you can see that the block is created but has no contents, see the attachment ...
I use PHP 7.3, according to the specs, that shouldn't be a problem.
The table wt_changes is sufficiently filled, I checked that.
What else can be wrong ?
Alain
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Look in your browser console for any errors.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
No errors in console, totally empty ...
You can try for yourself on drxn.nl/webtrees
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
The recent changes block works OK for me.
I see this:
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
But suddenly no more.
Is it possible that this can happen when there is a corruption somewhere in the gedcom ?
One of my editors made changes a few weeks ago that lead to some strange behaviours in some modules. There where FAMC without FAMS and vice versa and people with multiple parents.
I deleted all of his last mutations and everything worked again.
All but the recent changes !!!
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
> But suddenly no more.
Are you saying that it is not working today?
It was working OK earlier (when I created the screendump).
It is still working now.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Perhaps you are.
Does it make a difference if you are logged in/logged out?
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
The module 'recent changes' appeared again.
The settings tell me it shows the last 7 days.
I changed it to 8 days, and the block disappeared again, now I cannot change it back to 7 days because the module isn't there.
I guess tomorrow it shows again, I will tell you ...
Maybe something bad happened to the gedcom about 7 days ago that causes the problem.
Hope I can find it, I am going to try GEDCOM-Validator.
Please Log in or Create an account to join the conversation.
- ddrury
- Offline
- Senior Member
--
Dave
Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Are there any errors in the webtrees error log?
It may be possible to see an error message in the browser's developer-tools.
If you want us to look at it, then you will need to increase the number of days so that it triggers the error.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
Now I have to set days to 9 to let it disappear.
It has to be something in the data.
Where can I find the error log ?
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
It is still showing 8 - and hence working OK now.
> Where can I find the error log ?
Control panel -> Website logs
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
Tomorrow I think both values increase by 1.
The log shows hundreds of times the following:
/www/webtrees/app/Module/RecentChangesModule.php:222 Call to a member function canShow() on null
#0 /app/Module/RecentChangesModule.php:73 Error("Call to a member function canShow() on null")
#1 /index.php:70 getBlock(418)
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
In case a GedcomRecord cannot be found (despite there was a change to it logged) then it fails.
You can fix this yourself, it's a simple patch. Edit the file app/Module/RecentChangesModule.php.
Line 222 at the bottom of function getRecentChanges:
Change that to
stamboom.BertKoor.nl runs on webtrees v1.7.13
Please Log in or Create an account to join the conversation.
- aderksen
- Topic Author
- Offline
- New Member
But ... actually ... these kinds of inconsistencies shouldn't happen in the first place ...
Sorry ... I am a developer too ...
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
aderksen wrote: That works !!! Thanks ...
But ... actually ... these kinds of inconsistencies shouldn't happen in the first place ...
Sorry ... I am a developer too ...
You are using webtrees 1.7 which is obsolete.
It is only receiving updates for security or major bugs (i.e. things that might corrupt your data).
This bug was fixed a long time ago - and released in webtrees 2.0.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.