What makes a mod work on one server and not on another?

Started by DenDen60, January 14, 2015, 12:31:38 PM

Previous topic - Next topic

DenDen60

Hi,

I am using a mod that when tested on one server works, but does not on the second.

In this case it is a mod that synchronizes members database between two instances of SMF.

On one server it works like it is supposed to, meaning that once registered, the details of the registration is saved in forum "A". Then when the user visit forum "B", the systems gets the information from the forum "A" and he can log in without registering in forum "B".

This does not happen when installed on my server. I have check the code and have not seen anything that seems to link to a fixed URL, which could explain the error.

I have included the mod so that you can see the code and maybe solve the issue.





Justyne

Is the original mod author not available? It seems to me that person would be best qualified to help you with this.

Could be any number of things that are different in how the server is configured.

Do you get any specific error messages? Exactly how does it fail?
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

DenDen60

Quote from: Justyne on January 14, 2015, 12:39:27 PM
Is the original mod author not available? It seems to me that person would be best qualified to help you with this.

Thank you for your question Justyne. I think he is very busy at this moment and does not have time to really look at it. This is why I came here. I am launching my site very soon and I need to be able to use this mod as it is very important to me and the members of my community.

QuoteCould be any number of things that are different in how the server is configured.

Do you get any specific error messages? Exactly how does it fail?
I do not have any error messages per se. All it says is that the user does not exist. Usually it should log the user. 


margarett

Based on the issue you're having, I would say session handling is different.

A comparison of phpinfo between both sites would be a start ;)
What is a phpinfo() file?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

DenDen60


DenDen60

I have run PHP info. This is what it shows for the session.

session

Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary

Directive Local Value Master Value

session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.upload_progress.cleanup On On
session.upload_progress.enabled On On
session.upload_progress.freq 1% 1%
session.upload_progress.min_freq1 1
session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix upload_progress_ upload_progress_
session.use_cookies On On
session.use_only_cookies On On
session.use_trans_sid 0 0

Is there anything special here that would not make a program run?

thanks
Denis

margarett

It would be easier if you can get both phpinfos ;) That way we can compare it.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Night09

I did try this mod on my own server and it done nothing.

Also from Denis Pague post its actually you register on forum B and it is supposed to clone to A not the other way round.

DenDen60

Quote from: margarett on January 19, 2015, 05:49:22 AM
It would be easier if you can get both phpinfos ;) That way we can compare it.

Here you go

Thanks
Denis

DenDen60

Quote from: Night09 on January 19, 2015, 05:54:32 AM
I did try this mod on my own server and it done nothing.


Hi Night09
Can you share your phpinfo file with us?

Thanks

DenDen60

I had to upgrade to a VPS server to be able to change the PHP settings to make this mod work. Now I hope I will be able to change these settings and make it work.

However, to help me identify which PHP setting to change, could someone try to install the mod, see if it works on you server. If it does, then run the phpinfo file and post it here so I can see what the differences are

http://wiki.simplemachines.org/smf/What_is_a_phpinfo%28%29_file

Thank you

margarett

Just so that I know, in which of the hosts above does the MOD work?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

DenDen60

Quote from: margarett on January 26, 2015, 12:34:47 PM
Just so that I know, in which of the hosts above does the MOD work?

It is the inmotion host.


margarett

Hmmm I thought that it was the other way around :P This has an older PHP version which could explain it. But no, it works in PHP 5.2 and not in PHP 5.4

No idea, really...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

DenDen60

When I checked the session information, I saw that the session.use_only_cookies was on on the newer version and off on the older version.

I think this might be a change to make. However, If I could get a few phpinfo file, it would help me figure it out.

DenDen60

Looks like changing the  session.use_only_cookies did not make it work. :-(

Advertisement: