Registration Redirection

Hey guys,

On registration, people are just redirected back to the registration page with no confirmation message. They seem to be registering several times because they think it hasn’t been processed properly.

Could somebody point me out as to where i could, for example, place a php include() so I can show a confirmation?

Detailed answers are appreciated.

Thanks!

What version are you using? Did you upgrade from 1.0

I’m currently on the latest build, clean install.

If it’s redirecting back, there’s an error somewhere. Is the captcha showing up?

I tried using the reCaptcha but I need to prioritse, so I removed it and replaced the registration scripts with the factory-fresh ones.

It isn’t redirecting as such, but it is inserting the user registration into the database, then showing the registration form again (even if it is correct).

This may be a result of my shifty attempts to add an external captcha, though I’m sure I re-installed all of the scripts that I edited.

I can post any scripts at your request.

Thanks,

Kieran

Im also on the newest version and  when a user registers it says"Confirmation Sent

Thanks for registering for Sunset Airlines, you will be notified via email of your registration status."

So maybe  fresh re-install?

Just my input

Thanks for the input, but I’ve been developing the site for some time and a fresh install would be tedious and unnecessary.

Perhaps there is a way to fix this using alternative methods?

Did you reupload the registration module after you had modified it? Reupload the original one and then try

Re-uploaded the original ‘Templates’ and ‘Modules’, still nothing.

Upon taking a second glance, the registrations are not even being inserted into the database!

Can you set DEBUG_MODE to true in the local.config.php file, try registering, and then attach the core/logs/log.txt file?

When I enabled Debug mode, the registration actually procecced (but I got a whole load of errors with my SMTP settings, even though they are all correct, also an RSS write error which is easily solved). When I re-disabled debug mode, it didn’t process.

Log file is empty :s

Hmm, that log being on wouldn’t make a difference in terms of processing. In the core/logs/log.txt file, are there any errors?

The log file is completely empty :s. Do you happen to have a complete list of scripts included in the registration process so that I could restore them?

Thanks.

Well, reupload the entire core/common and core/modules folders. Also core/templates.

Ah now this is funny -

I disabled all of my Custom fields and it seemed to register users correctly!

But I really need those custom fields. I’ll look in to it and get back to you by tomorrow.

Thanks for your assistance Nabeel, when I am accustomed tot he phpVMS system I will almost certainly write some scripts for it in return!

My custom fields have been removed from the registration form and are now only displaying on the user’s profile.

It MAY have something to do with I had to edit the database to get the textarea to work correctly.

I edited the field type from ‘text’ to ‘textarea’.

Is there any sort of scripts that need coding right now?

Hmm, if there was an error it should have shown up in the logs. I’ll investigate further as well. But yes, that edit may have to do with it. I’m not sure I enabled textfields.

Come to think of it, my log file may not have been writable (it was on default permissions).

EDIT: Now it isn’t letting me register regardless of whether the custom fields are disabled on registration or not! 

If I have any custom fields At all, this error occurs :s

Hopefully that added fuel to the fire.

Also, what path do I put for the New Pilots RSS Feed?

Does it start from /public_html/ or is it relative? Currently the error is:

An Error Was Encountered

public_html/lib/rss/latestpilots.rss is not writeable!

The permissions of latestpilots.rss are 777.

That’s probably the right path. Yeah, set the log to writable, and try again, see if anything shows up

Now something’s showing up in the log! EGLL is London Heathrow’s ICAO code.

Caller: DB::write_debug->DB::query->OperationsData::AddAirport->Operations->add_airport_post->Operations->airports->call_user_func_array->MainController::RunAllActions

INSERT INTO airports

( icao, name, country, lat, lng, hub, chartlink, fuelprice)

VALUES (

‘EGLL’, ‘Heathrow’, ‘United Kingdom’,

51.4711455584879, -0.456490516662598, 1, ‘’, 1.2)

Duplicate entry ‘EGLL’ for key 2

Caller: DB::write_debug->DB::query->SettingsData::AddField->Settings->add_field_post->Settings->customfields->call_user_func_array->MainController::RunAllActions

INSERT INTO customfields (title, fieldname, value, type, public, showonregister)

VALUES (‘VATSIM ID’, ‘VATSIM_ID’, ‘’, ‘text’, 1, 1)

Duplicate entry ‘VATSIM_ID’ for key 2

Caller: DB::write_debug->DB::query->SettingsData::AddField->Settings->add_field_post->Settings->customfields->call_user_func_array->MainController::RunAllActions

INSERT INTO customfields (title, fieldname, value, type, public, showonregister)

VALUES (‘VATSIM ID’, ‘VATSIM_ID’, ‘’, ‘text’, 1, 1)

Duplicate entry ‘VATSIM_ID’ for key 2

Caller: DB::write_debug->DB::query->SettingsData::AddField->Settings->add_field_post->Settings->customfields->call_user_func_array->MainController::RunAllActions

INSERT INTO customfields (title, fieldname, value, type, public, showonregister)

VALUES (‘VATSIM ID’, ‘VATSIM_ID’, ‘’, ‘text’, 1, 1)

Duplicate entry ‘VATSIM_ID’ for key 2

Caller: DB::write_debug->DB::query->SettingsData::AddField->Settings->add_field_post->Settings->customfields->call_user_func_array->MainController::RunAllActions

INSERT INTO customfields (title, fieldname, value, type, public, showonregister)

VALUES (‘VATSIM ID’, ‘VATSIM_ID’, ‘’, ‘text’, 1, 1)

Duplicate entry ‘VATSIM_ID’ for key 2

Caller: DB::write_debug->DB::query->SettingsData::AddField->Settings->add_field_post->Settings->customfields->call_user_func_array->MainController::RunAllActions

INSERT INTO customfields (title, fieldname, value, type, public, showonregister)

VALUES (‘VATSIM ID’, ‘VATSIM_ID’, ‘’, ‘text’, 1, 1)

Duplicate entry ‘VATSIM_ID’ for key 2

When I register putting either NO Vatsim ID in or an ID that has already been used then it gives me this error. Weird :S.