Multi-User Simple Authorization Script

Troubleshooting

Frequently asked questions and troubleshooting for Multi-User Simple Authorization Script. Here is a list of common problems and their solutions.

PHP Notice: Undefined index

There is a known issue of MUSAS and the PHP error reporting level of web servers. There is a config file on web servers that sets the error reporting levels for PHP scripts, typically, this reporting level is set to:

Meaning that PHP will report all errors and warnings, but NOT PHP notices. On some occasions, web servers are set to to report all errors, warnings AND notices, this typically looks like this in the PHP config file:

OR

MUSAS may show some PHP notices when error reporting is set to E_ALL. Typically, you'll see the following notice at the top of your web page.

This is one solution to resolve this problem:

  1. Open up musas.php
  2. Add the following code as the second line of the file (under <?php)
      error_reporting(E_ALL ^ E_NOTICE);
  3. Save and upload musas.php
Header information appearing in email body

If you have elected to be advised by email of logging-in problems by your users and you find what appears to be message header in the body of the email, you can try editing the config.php file where you see the line emailcrlf = "\r\n". Please note - this line MUST show either emailcrlf = "\r\n" or emailcrlf = "\n". If anything else apears here, the email sending part of the system WILL NOT WORK.

Cannot modify header information

Another known issue is when the correct login is entered and the script lets you view the password protected page, but you get a warning message at the top of the page that looks a little like this:

This possible warning was introduced when the optional logout button and logout text were added. It is suspected that the warning occurs when musas.php has been modified; in particular, if the logout code has been changed.

So what's the solution? Firstly, as with any problems you encounter while installing any scripts, I would suggest that you try installing and using MUSAS unmodified.

If you DO NOT intend to use the logout feature, then I suggest removing the logout code completely. The logout code is everything between the so named comment, ie

/* Logout Stuff - Sept 24, 2011 */
...
...
...
/* End Logout Stuff */



Still have problems?

Try testing a unmodified version of demo.php and musas.php.

  1. Upload an unmodified version of demo.php and musas.php
  2. Open up demo.php in your web browser, e.g. http:www.yourwebsite.com/demo.php
  3. Test the script by entering in a non-existent name with any password, then an incorrect name/password combination, then enter in a correct name/password combination.