View Single Post
  #1 (permalink)  
Old August 4th, 2008, 03:37 AM
ArthurDent ArthurDent is offline
Registered User
 
Join Date: Aug 2008
Location: London, , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Possible Error? - CH1 Regiser.php

I've been wrestling with this problem for a while so I downloaded the source code and tried that unmodified. Same problem.

I have the Production Environment flag (common.php) set to false in order to receive error messages. With that set, entering any sort of erroneous input during the registration process in "register.php" will result in the following error:
Code:
Notice: Undefined index: TEMPLATE in ../Wrox_Code/ch_01/public_files/register.php on line 105

Notice: Undefined index: content in ../Wrox_Code/ch_01/public_files/register.php on line 105
Now, line 105 is in this section of the code (the first $GLOBALS line here):
Code:
    // there was invalid data
    else
    {
        $GLOBALS['TEMPLATE']['content'] .= '<div id=Error></div><p><strong>You provided some ' .
            'invalid data.</strong></p> <p>Please fill in all fields ' .
            'correctly so we can register your user account.</p></div>';
        $GLOBALS['TEMPLATE']['content'] .= $form;
    }
    It fails in my code and it fails in the downloaded code from this site and yet I can't for the life of me see anything wrong with it.

Can anyone shed any light on this?

Thanks in advance.

AD

Reply With Quote