Author Topic: Not Redirecting After Initial Login  (Read 17248 times)

0 Members and 1 Guest are viewing this topic.

princessfool00

  • Full Member
  • ***
  • Posts: 6
Not Redirecting After Initial Login
« on: October 23, 2013, 12:14:31 PM »
On the initial login screen after installing Mibew, when I try to login using "admin" with a blank password, the id & password fields are cleared out like the login is successful, but I do not get redirected to the operator details page to finish setting up the account.  There aren't any login errors or any other kind of errors.  I've tried this is Firefox, IE, & Safari.  I've tried on other pc's from the same network as well as pc's not on our network. Our versions of MySQL & PHP meet the minimum requirements.  I appreciate any assistance possible.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Not Redirecting After Initial Login
« Reply #1 on: October 23, 2013, 02:02:58 PM »
Is it a new installation, or you have upgraded an old one?

Have you checked your error logs?

princessfool00

  • Full Member
  • ***
  • Posts: 6
Re: Not Redirecting After Initial Login
« Reply #2 on: October 23, 2013, 02:14:46 PM »
It is a new installation.  We have checked all the logs we can think of looking for something...anything and haven't been able to find anything.  Maybe you know of a particular log we should look for and check??? We tried installing the package on a different web server and it worked fine.  So, we know there's nothing wrong with the install package itself.  There isn't any difference between the 2 web servers either.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Not Redirecting After Initial Login
« Reply #3 on: October 23, 2013, 02:28:44 PM »
There isn't any difference between the 2 web servers either.

There should be at least one.  ;)

Maybe you know of a particular log we should look for and check???

Since you haven't specify your webserver, I presume that it's Apache. Then you should look into its error logs. Their location depends on OS and Apache settings. Also you should check PHP configuration to make sure that it actually writes errors.

Also, what about your sessions settings?

princessfool00

  • Full Member
  • ***
  • Posts: 6
Re: Not Redirecting After Initial Login
« Reply #4 on: October 23, 2013, 04:35:31 PM »
Yes, it is Apache and nothing is showing in that error log.  We are also logging PHP errors and nothing is showing there either. One other thing I just remembered...after the install completed, it showed that it successfully completed under the "Completed" section, but it never even displayed the "Next Step" section or the link to "Proceed to the login page".  Below are the session settings. 

Session Support => enabled
session.auto_start => Off => Off
session.bug_compat_42 => Off => Off
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
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 => 1000 => 1000
session.gc_maxlifetime => 7200 => 7200
session.gc_probability => 1 => 1
session.hash_bits_per_character => 5 => 5
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Not Redirecting After Initial Login
« Reply #5 on: October 23, 2013, 06:02:37 PM »
Check your database. In the chatoperator table there should be one row for admin account.

Maybe something went wrong during the installation process, and you should just reinstall Mibew Messenger.

Also you could try to set session.save_path PHP variable.

princessfool00

  • Full Member
  • ***
  • Posts: 6
Re: Not Redirecting After Initial Login
« Reply #6 on: October 23, 2013, 06:11:47 PM »
There is a row for the admin account.  I can see where it is calling operator.php?op=1 and then redirects back to login.php.  We've already reinstalled it twice with the same results.  The session.save_path is set, but I did not post it for security reasons.  I can provide you a link to the page (privately) if it will help determine what the problem is.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Not Redirecting After Initial Login
« Reply #7 on: October 23, 2013, 07:19:31 PM »
Ok. You can send me the link as a personal message. I'm not gonna promise you anything, but at least I can take a look.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Not Redirecting After Initial Login
« Reply #8 on: October 23, 2013, 08:07:04 PM »
Well. I've got the link and made some experiments. As far as I can see being outside the box, it has something to do with sessions.

princessfool00

  • Full Member
  • ***
  • Posts: 6
Re: Not Redirecting After Initial Login
« Reply #9 on: October 24, 2013, 11:21:33 AM »
We finally found the problem. It was due to us having multiple sites running on the web server.  We had to add a line to libs/common.php to force the site to use a different directory for session files. Here's an example of what we added:

@ini_set('session.save_path', 'pathToWebsite/php/session');

Hopefully this will save others the trouble we went through to get it to work.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Not Redirecting After Initial Login
« Reply #10 on: October 24, 2013, 03:43:52 PM »
Actually, session.save_path value can be set in many places, so it's not neccessary to do it in libs/common.php. To make future upgrades more painless, you could for example move it to libs/config.php.

However, I'm glad that you've solved your problem. :)

princessfool00

  • Full Member
  • ***
  • Posts: 6
Re: Not Redirecting After Initial Login
« Reply #11 on: October 24, 2013, 04:20:33 PM »
Thanks for the suggestion.  I will move the line to the config.php file.