The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun May 23, 2010 9:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 17, 2010 2:32 pm
Posts: 14
Hi,

I added some extra fields to the Joomla! registration page, but when i click Register i get the following error:

Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script.

Can someone tell me what is this error about? Or how to fix it.

thanks,
sebastian


Last edited by sebastian tm on Sun May 23, 2010 1:02 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun May 23, 2010 1:00 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 17, 2010 2:32 pm
Posts: 14
solved it my self :)

if you want to add fields to the registration module and get this error.

comment the following line in request.php:
Code:
$failed |= is_numeric( $key );

line 526


Top
 Profile  
 
PostPosted: Tue May 25, 2010 12:03 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Sep 21, 2008 3:31 am
Posts: 214
Its not Joomla, Sending Fields starting with Numbers is Illegal in HTML.

_________________
http://www.joomlux.com - Joomla! Extensions and Templates


Top
 Profile  
 
PostPosted: Tue May 25, 2010 3:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 17, 2010 2:32 pm
Posts: 14
how can i proceed without getting this error?


Top
 Profile  
 
PostPosted: Tue May 25, 2010 4:00 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Sep 21, 2008 3:31 am
Posts: 214
this Error is not your main problem,
To bypass this error, "name" of all fields must start with a alphabetical character, not a number.

but about adding fields to User Registration, It has been discussed a lot on this forum, you can search for it.

as an outline of what should be done, you must create another table ( like jos_users_details ) or extend joomla built-in jos_users table ( hacking core files is not recommended ) with the fields you want, then send your data along with default registration data, then handle saving them in "model" class.

there is more detailed info in this forum, or you can Google it!

Cheers,
Milad

_________________
http://www.joomlux.com - Joomla! Extensions and Templates


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group