This Help forum is for issues relates to webtrees 1.7. For issues related to webtrees 2.0, please use that forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1

TOPIC:

Module 'recent changes' not showing anymore 1 month 3 days ago #1

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
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.

Module 'recent changes' not showing anymore 1 month 3 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
The contents of this block are loaded dynamically.

Look in your browser console for any errors.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Module 'recent changes' not showing anymore 1 month 3 days ago #3

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
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.

Module 'recent changes' not showing anymore 1 month 3 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
> the module 'recent changes' is not showing up

The recent changes block works OK for me.

I see this:



Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Attachments:

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

Module 'recent changes' not showing anymore 1 month 3 days ago #5

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
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.

Module 'recent changes' not showing anymore 1 month 3 days ago #6

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
> 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 - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Module 'recent changes' not showing anymore 1 month 3 days ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
I am not logged into your site.

Perhaps you are.

Does it make a difference if you are logged in/logged out?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Module 'recent changes' not showing anymore 1 month 2 days ago #8

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
Does not make any difference, I tried that too ...

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

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Module 'recent changes' not showing anymore 1 month 2 days ago #9

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
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.

Module 'recent changes' not showing anymore 1 month 2 days ago #10

  • ddrury
  • ddrury's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 303
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 10 Pro/WSL Ubuntu 18.04.4, Nginx 1.14.0, PHP 7.4.5/7.3.17-1, Mysql 5.7.29-0ubuntu0.18.04.1
Production: Apache 2.2, PHP 7.3.15, 10.3.18-MariaDB

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

Module 'recent changes' not showing anymore 1 month 2 days ago #11

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
> 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 - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Module 'recent changes' not showing anymore 1 month 1 day ago #12

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
It was 'no' !

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

Module 'recent changes' not showing anymore 1 month 1 day ago #13

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
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.

Module 'recent changes' not showing anymore 1 month 1 day ago #14

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
> 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 - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Module 'recent changes' not showing anymore 1 month 1 day ago #15

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
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.

Module 'recent changes' not showing anymore 1 month 1 day ago #16

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2203
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:
            if ($record->canShow()) {

Change that to
            if ($record && $record->canShow()) {
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

Module 'recent changes' not showing anymore 1 month 1 day ago #17

  • aderksen
  • aderksen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
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.

Module 'recent changes' not showing anymore 1 month 1 day ago #18

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084

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 - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

  • Page:
  • 1
Powered by Kunena Forum