Frequently Asked Questions

Won’t log me in

Every time I log in, it takes me back to the login page. I know my username and password are correct, and I don’t get an error.

The most common cause of this problem is the scripts’ reliance on a PHP setting called “register_globals”. This setting is turned off by default in new versions of PHP, but at the time when most of CodeGrrl’s scripts were written, it was on.

This problem will affect you if register_globals is turned OFF on your server and if you are using any of the following scripts:

PHPCalendar, PHPClique, PHPCurrently, PHPFanBase, PHPQuotes, simpbook, Flinx and Flinx Collective.

You can do one of two things to fix this issue:

Either:

  1. Use .htaccess/php.ini to turn register_globals back on. Add the following line to your .htaccess file:

    php_flag register_globals on

    If modifying .htaccess causes an internal server error, your host does not allow you to change these settings. Instead, you should paste this code into another blank file which you should call php.ini. This file goes into your root folder (usually called public_html):

    register_globals = On
  2. OR: Add the following code to config.php, placing it below the opening <?:

    extract($_SERVER, EXTR_SKIP);
    extract($_COOKIE, EXTR_SKIP);
    extract($_POST, EXTR_SKIP);
    extract($_GET, EXTR_SKIP);

    Note that this will only fix one script at a time. You will need to modify config.php for each one that is causing problems.

How do I check if register_globals is off on my server?

Add the following to a blank file, and save it as anything with a .php extension:

<?php phpinfo(); ?>

Upload it, then run it in your browser. You will get a long list of PHP settings and details. Press CTRL + F (on Windows) to find “register_globals” - you should see two columns to the right of it detailing whether the setting is on or off. If, under the FIRST column, it says “Off”, register_globals is off on your server.

If the above does NOT fix the problem, or register_globals is on on your server, there may be something to do with your computer or browser that is causing the login to fail.

Try the following solutions:

  1. Check that your computer’s date is set correctly. If it’s set in the future, you may have problems staying logged in.
  2. Delete all your Temporary Internet Files, including your cookies, clear out your cache and make sure cookies are enabled in your browser. Then reboot and try logging in again. This will solve it if it’s a cookie problem, like your browser not accepting them, or duplicate cookies being stored.
  3. Make sure that any ad-blocking software you have installed is allowing cookies from your domain. If it’s blocking them, you will be unable to login.