- Posts: 6
Joomdle 1.0 Installation
Error after account creation
- Andrew Midgley
- Topic Author
- Offline
- New Member
-
Less
More
10 years 9 months ago - 10 years 9 months ago #1
by Andrew Midgley
Error after account creation was created by Andrew Midgley
Hi, I have a problem with account creation.
Here is what happens:
1) select create an account from joomla and fill in all the required fields
2) select create my account
3) I am then taken to an error page ( mysite.com/moodle/login/signup.php ). The error reads 'Coding error detected, it must be fixed by a programmer: build_navigation() can not be used any more, please use $PAGE->navbar methods instead.
I am still able to complete the registration process after receiving this but it obviously confuses the users. Is this an easy fix?
Thanks,
Andy
Here is what happens:
1) select create an account from joomla and fill in all the required fields
2) select create my account
3) I am then taken to an error page ( mysite.com/moodle/login/signup.php ). The error reads 'Coding error detected, it must be fixed by a programmer: build_navigation() can not be used any more, please use $PAGE->navbar methods instead.
I am still able to complete the registration process after receiving this but it obviously confuses the users. Is this an easy fix?
Thanks,
Andy
Last edit: 10 years 9 months ago by Andrew Midgley.
Please Log in or Create an account to join the conversation.
- Andrew Midgley
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
10 years 9 months ago #2
by Andrew Midgley
Replied by Andrew Midgley on topic Error after account creation
Here is the full error text - oddly when I enable full errors the page does not display the standard error text.
events_trigger() is deprecated, please use new events instead•line 387 of /lib/deprecatedlib.php: call to debugging()
•line 86 of /auth/joomdle/auth.php: call to events_trigger()
•line 86 of /login/signup.php: call to auth_plugin_joomdle->user_signup()
events_trigger() is deprecated, please use new events instead•line 387 of /lib/deprecatedlib.php: call to debugging()
•line 86 of /auth/joomdle/auth.php: call to events_trigger()
•line 86 of /login/signup.php: call to auth_plugin_joomdle->user_signup()
Please Log in or Create an account to join the conversation.
- Andrew Midgley
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
10 years 9 months ago #3
by Andrew Midgley
Replied by Andrew Midgley on topic Error after account creation
Ok, so I have edited out the following lines from auth.php which seems to have fixed the problem as a quick workaround. I would still be interested to learn how to use the $PAGE method - which it seems that moodle is complaining about.
//$navigation = build_navigation($navlinks);
//print_header($emailconfirm, $emailconfirm, $navigation);
Andy
//$navigation = build_navigation($navlinks);
//print_header($emailconfirm, $emailconfirm, $navigation);
Andy
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
10 years 9 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Error after account creation
Hi Andy. Thanks for the bug report.
I think you should be abe to fix the problem by changing the full block:
By:
You should also change:
By:
Please test and let us know if you still have any issues.
I think you should be abe to fix the problem by changing the full block:
Code:
global $CFG;
$emailconfirm = get_string('emailconfirm');
$navlinks = array();
$navlinks[] = array('name' => $emailconfirm, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header($emailconfirm, $emailconfirm, $navigation);
notice(get_string('emailconfirmsent', '', $user->email), "$CFG->wwwroot/index.php");
Code:
$emailconfirm = get_string('emailconfirm');
$PAGE->set_url('/auth/joomdle/auth.php');
$PAGE->navbar->add($emailconfirm);
$PAGE->set_title($emailconfirm);
$PAGE->set_heading($emailconfirm);
echo $OUTPUT->header();
notice(get_string('emailconfirmsent', '', $user->email), "{$CFG->wwwroot}/index.php");
You should also change:
Code:
$this->call_method ("createUser", $userinfo);
events_trigger('user_created', $user);
Code:
\core\event\user_created::create_from_userid($user->id)->trigger();
Please test and let us know if you still have any issues.
Please Log in or Create an account to join the conversation.