Web based family history software

Question Module 'recent changes' not showing anymore

  • aderksen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #1 by aderksen
Since a few weeks suddenly the module 'recent changes' is not showing up on my website www.drxn.nl .
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
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #2 by fisharebest
Replied by fisharebest on topic Module 'recent changes' not showing anymore
The contents of this block are loaded dynamically.

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
  • New Member
More
3 years 2 months ago #3 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
Thanks for reaction.
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.

More
3 years 2 months ago #4 by fisharebest
Replied by fisharebest on topic Module 'recent changes' not showing anymore
> the module 'recent changes' is not showing up

The recent changes block works OK for me.

I see this:




Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Attachments:

Please Log in or Create an account to join the conversation.

  • aderksen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #5 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
That is what I got few weeks ago.
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.

More
3 years 2 months ago #6 by fisharebest
Replied by fisharebest on topic Module 'recent changes' not showing anymore
> That is what I got few weeks ago.
> 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.

More
3 years 2 months ago #7 by fisharebest
Replied by fisharebest on topic Module 'recent changes' not showing anymore
I am not logged into your site.

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
  • New Member
More
3 years 2 months ago #8 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
Does not make any difference, I tried that too ...

Please Log in or Create an account to join the conversation.

  • aderksen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #9 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
Something strange just happened.
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.

More
3 years 2 months ago #10 by ddrury
Replied by ddrury on topic Module 'recent changes' not showing anymore
I bet you have the "Should this block be hidden when it is empty" option set to yes. When you next see the block change it to no

--
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.

More
3 years 2 months ago #11 by fisharebest
Replied by fisharebest on topic Module 'recent changes' not showing anymore
> Maybe something bad happened to the gedcom about 7 days ago that causes the problem.

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
  • New Member
More
3 years 2 months ago #12 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
It was 'no' !

Please Log in or Create an account to join the conversation.

  • aderksen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #13 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
And indeed, today it appears again.
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.

More
3 years 2 months ago #14 by fisharebest
Replied by fisharebest on topic Module 'recent changes' not showing anymore
> Now I have to set days to 9 to let it disappear.

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
  • New Member
More
3 years 2 months ago #15 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
It is showing 8, with 9 the module dissappears.
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
  • Platinum Member
  • Greetings from Utrecht, Holland
More
3 years 2 months ago #16 by bertkoor
Replied by bertkoor on topic Module 'recent changes' not showing anymore
The code of RecentChanges module has a minor bug: forgotten null check.
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:
Code:
if ($record->canShow()) {

Change that to
Code:
if ($record && $record->canShow()) {

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
  • New Member
More
3 years 2 months ago #17 by aderksen
Replied by aderksen on topic Module 'recent changes' not showing anymore
That works !!! Thanks ...

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.

More
3 years 2 months ago #18 by fisharebest
Replied by fisharebest on topic Module 'recent changes' not showing anymore

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.

Moderators: makitso
Powered by Kunena Forum
}