coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: jaslow on June 29, 2004, 10:28:36 AM

Title: users cannot register - critical error
Post by: jaslow on June 29, 2004, 10:28:36 AM
some one help....

i juz realised i had this problem.  users cannot register to my galleries!  when registering after entering username, password, email etc.. it gives this error

Script called without the required parameter(s). (location)

i searched here but cannot find a way to solve it. 

turned on DEBUG mode and tried again.. and i got this:


File: /home/idoadmin/public_html/galleries/register.php - Line: 159



went to line 159:

    if (!isset($HTTP_POST_VARS[$var])) cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'] . " ($var)", __FILE__, __LINE__);


i dono how to solve this??? is someone able to help me?
thank you so much.

Title: Re: users cannot register - critical error
Post by: Joachim Müller on June 29, 2004, 10:34:02 AM
posting a link to your page might help ;)...

GauGau
Title: Re: users cannot register - critical error
Post by: jaslow on June 29, 2004, 10:44:09 AM
www.ido.com.sg/galleries

thanks.
Title: Re: users cannot register - critical error
Post by: Joachim Müller on June 29, 2004, 11:31:44 AM
please upload the classic theme as well temporarily to help making sure this is not related to your custom theme.

GauGau
Title: Re: users cannot register - critical error
Post by: Casper on June 29, 2004, 02:08:38 PM
You appear to have removed the optional fields from the register form, but it looks like you may have made an error regarding the 'location' field.

Please post your modified register.php here.  Rename it register.txt, and attach it using the additional options link in the reply page.
Title: Re: users cannot register - critical error
Post by: jaslow on June 29, 2004, 05:15:27 PM
hi yes i removed the optional fields i think.... sometime bk

uggh

anyways haf attached my register.txt file

thanks for ur help.

[attachment deleted by admin]
Title: Re: users cannot register - critical error
Post by: Nibbler on June 29, 2004, 07:49:50 PM
Change these 4 lines here:

    $location = addslashes(get_post_var('location'));
    $interests = addslashes(get_post_var('interests'));
    $website = addslashes(get_post_var('website'));
    $occupation = addslashes(get_post_var('occupation'));


to:


    $location = '';
    $interests = '';
    $website = '';
    $occupation = '';


it should work then.