Advanced search  

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

Pages: [1]   Go Down

Author Topic: users cannot register - critical error  (Read 4719 times)

0 Members and 1 Guest are viewing this topic.

jaslow

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
users cannot register - critical error
« 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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: users cannot register - critical error
« Reply #1 on: June 29, 2004, 10:34:02 am »

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

GauGau
Logged

jaslow

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: users cannot register - critical error
« Reply #2 on: June 29, 2004, 10:44:09 am »

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: users cannot register - critical error
« Reply #3 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: users cannot register - critical error
« Reply #4 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: users cannot register - critical error
« Reply #5 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]
Logged

Nibbler

  • Guest
Re: users cannot register - critical error
« Reply #6 on: June 29, 2004, 07:49:50 pm »

Change these 4 lines here:
Code: [Select]
    $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:

Code: [Select]
    $location = '';
    $interests = '';
    $website = '';
    $occupation = '';

it should work then.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.