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.
posting a link to your page might help ;)...
GauGau
www.ido.com.sg/galleries
thanks.
please upload the classic theme as well temporarily to help making sure this is not related to your custom theme.
GauGau
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.
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]
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.