Jump to content
TNG Community
theKiwi

Search for Connections Mod

Recommended Posts

ton van lil

Ken

Thanks for your answer. I will try this out.

Greetings

Ton

Share this post


Link to post
Share on other sites
LBelard

The dreaded PHP version error is back!

 

Connections Mod Error.jpg

"A Pesquisar" means "Searching" in Portuguese.

My server is using PHP 7.4.28.

I have the latest TNG version, 13.1.2.

I have been reading the early posts in this thread hoping to find a solution, but I am too afraid to mess things up. Am I the only one with this error nowadays?

 

 

Share this post


Link to post
Share on other sites
Ken Roy

I am running the latest Connections mod on my production site using PHP 7.4.28on TNG 13.1.1 and on a test site using PHP 8.1.3 with TNG 13.1.2

Of course, I am not using only English and French.  So it must be something else going on on your site.

Share this post


Link to post
Share on other sites
mjaro
10 hours ago, LBelard said:

The dreaded PHP version error is back!

Hi,

I don't think the bug is related to PHP/TNG versions... I've tested multiple combinations of them (thanks also to Ken!).

Does this error only occur for one particular starting and ending person?

Michał

Share this post


Link to post
Share on other sites
LBelard

Hi, Michal. Thank you for your reply and your interest in this problem.

This happens for every starting and ending person (I have tested several combinations) and regardless of whether the user is logged on or not.

I removed other mods that could be conflicting.

I checked the mod on other sites and would really like to see it working on mine... It just does not.

I have the mod loaded and active on my site right now, with all default options, if you want to check it. My site is https://belard.pt 

Thank you

Share this post


Link to post
Share on other sites
mjaro

Luis,

please find attached version 7a of the mod.

Please use ModManager to uninstal AND DELETE the version you run with the problem, then install 7a.

Little hope this will help...

Michał

Connections_v13.1.0.7a.zip

Share this post


Link to post
Share on other sites
LBelard

Michal,

I did EXACTLY what you suggested, deleted the 7 version and installed 7a. I didn't even touched the translation part. Unfortunately, it still does not work.

Other people are running it, so the problem must be on my site or my server. Thank you for your time and trouble anyway...

Luis

Share this post


Link to post
Share on other sites
LBelard

Updating this thread, I now have everything running and working.

The issue had, indeed, to do with the PHP version. Although my server indicated that it was using PHP 7.4.28, somehow it was configured to run my https://belard.pt site in PHP 5.6. I have other sites on the same server, but because I am not using PHP in them I never noticed any problem.

Weird.

Again, I wish to thank Michal and Ken Roy for their help and interest with this issue, and all the other members on this thread who helped me to find the solution.

BTW, fabulous mod, Michal!

Share this post


Link to post
Share on other sites
mjaro

Now it's clear. I was able to find and then turn on this historical PHP 5.6 and the result was as you observed.

Thank you that you found the reason. I was sad and very stressed out not being able to reproduce the error...

Michał

Share this post


Link to post
Share on other sites
theKiwi
31 minutes ago, mjaro said:

Thank you that you found the reason. I was sad and very stressed out not being able to reproduce the error...

Michal - is this problem "fixable"? My poor outdated server is still running 5.6.36 and now I discover the same error is happening for my site.

Yes, I know I need to update things, and am partway through building a new server that will be all up date date...

Thanks

Roger

Share this post


Link to post
Share on other sites
mjaro
On 4/24/2022 at 12:00 AM, theKiwi said:

is this problem "fixable"?

Roger,

I started to analyze where 5.6 is causing problems. Unfortunately, there are several dozen of such places in all my scripts. Some fixes seriously change the script. Maybe some consequences for PHP7 and 8 I haven't noticed yet (before that I didn't even know PHP5.6; when I started programming I learned 7.4, and now 5.6 is not even supported by developers).

Taking all this into account, I gave up trying to make the mod backward compatible.

I'm sorry if you counted on that. 😞

Michał

Share this post


Link to post
Share on other sites
theKiwi
On 5/19/2022 at 1:26 PM, mjaro said:

Taking all this into account, I gave up trying to make the mod backward compatible.

 

That's OK - one of these times I'll get my updated server up and running, or migrate everything over to SimplyHosting.

Roger

Share this post


Link to post
Share on other sites
stores

I have not been following this thread but i use the Connections Mod ver. 13.1.0.7a offline and it runs fine for me... Setup in signature

Share this post


Link to post
Share on other sites
JTSolem

I really like this Mod, but I seem to have one problem that I just noticed:

(I'm on TNG 13.1.2 running on PHP 7.4.30, Connections Mod 13.1.0.7)

Having run a connections search, viewing the results, I click the Refresh menu item in the Tab-line. Result is an error message: "Bad maxMarriages parameter"

Yes, I have experimented with the last option (max number of marriages) on the mod options page, but it is now reset to the default of 9. Still the error!

What can I do about it?

 

Share this post


Link to post
Share on other sites
mjaro
2 hours ago, JTSolem said:

error message: "Bad maxMarriages parameter"

Hi, please follow steps below:

On 4/19/2022 at 11:08 PM, mjaro said:

Please use ModManager to uninstal AND DELETE the version you run with the problem, then install 7a.

Connections_v13.1.0.7a.zip

I hope it helps.

Sorry for troubles,

Michał

Share this post


Link to post
Share on other sites
JTSolem
2 hours ago, mjaro said:

I hope it helps. 

 

It did! Error message gone, all good.

Thanks for your quick respone.

Share this post


Link to post
Share on other sites
JTSolem

I just noticed something strange while using the Connections mod:
Communicating with a relative, I sent a link to show the several ways we are connected. One of the more distant ways, is a straight up-and-down common ancestor chart like this:

Mogens_Descendant.jpg

I'm in the lower right, talking to Eldrid (lower left). So far so good!

Now, I selected Eldrid's daughter in TNG, and ran the Connections again, but this time this connection to our common ancestor does not show at all!

Why is that? One too maany steps? This should be one of the simple connections for the Connections Mod, and yes, it does show up in the standard TNG relationship chart!

I have tried several of the options on the Connections options page, but no better results?

What can I do?

 

Share this post


Link to post
Share on other sites
JTSolem

About foster-/adopted- relationships:

My father grew up with foster-parents from his infancy (the family I know and love) , but he had good relations with his birth-mother as long as she lived.

He (and many others in my database) is registered with two sets of parents in TNG: One set as birth-parents, and one set as foster-parents.

The Connections mod shows connections between two people, if there is one (also through foster-relationships), regardless. All well and good!
I do however, wish I had an option to select to show some sort of notification on the results chart, f.ex. just a word 'foster' or some sort of icon, to show that "there is something to notice here".

(I do realise that adopted relationships might have to be treated differently from foster relationships, as that might be more sensitive?)

Any thought, TNG world?

Share this post


Link to post
Share on other sites
mjaro
1 hour ago, JTSolem said:

I just noticed something strange while using the Connections mod:

Have you tried to run the mod with Max Paths parameter much larger than default 99? e.g., 200 or even 1000 (it can take more time to complete calculations!)

 

1 hour ago, JTSolem said:

option to select to show some sort of notification

It IS possible to add such a message, or even to hide such connections. I'll add it to my ToDo list...

Share this post


Link to post
Share on other sites
JTSolem
14 minutes ago, mjaro said:

Have you tried to run the mod with Max Paths parameter much larger than default 99? e.g., 200 or even 1000 (it can take more time to complete calculations!) 

I have tried upping the limit, but never went that 'wild' before ;-)

Now I did; tried different values, and ended up on 300 to show the chart (with said daughter) in the example above.
(The result for this particular chart was: "Path 6 found in search step 124 (path length is 17 incl. 0 marriages)", so that might explain why it wasn't found before.)

I'm now a "happy camper", thank you for the tip!

Share this post


Link to post
Share on other sites
mjaro
2 minutes ago, JTSolem said:

ended up on 300 to show the chart (with said daughter)

This is a very nature of the algorithm running on a big database. It treats the same way every "neigbour" of a person - either son, parent, spouse, foster-parent, etc. The number of different paths ("connections") between two persons in the database graph is really large, and all of them must be examined. The paths analysed are longer and longer: when all the paths of the length 16 are found, then the paths of the length 17 start to be discovered. There can be twice as many paths of length 17 as there were 16. The order of finding them is random (from the human point of view). This explains your case of the paths to spouse and daughter. 

Moreover, only a few paths are ultimately shown - most of them are trivially similar to those shown earlier (e.g. the "son-father-second son" sequence is equivalent to "son-mother-second son", although the paths are different for the algorithm). This explains slightly different outcomes after swapping the start and end persons.

Have a fun using my mod 😉

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×