users cannot register - critical error users cannot register - critical error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

users cannot register - critical error

Started by jaslow, June 29, 2004, 10:28:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jaslow

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.


Joachim Müller

posting a link to your page might help ;)...

GauGau


Joachim Müller

please upload the classic theme as well temporarily to help making sure this is not related to your custom theme.

GauGau

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

jaslow

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]

Nibbler

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.