Error on saving the user.
| Project: | Deployment |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
# warning: Missing argument 2 for phptemplate_menu_item_link() in C:\xampplite\htdocs\themes\quickschools\template.php on line 42.
# warning: Missing argument 2 for phptemplate_menu_item_link() in C:\xampplite\htdocs\themes\quickschools\template.php on line 42.
Module Description Result Message
user User: admin Error Error on saving the user.
node landing: TestPage Not Sent Item not sent due to prior fatal error.
At the Remote Server Site i check the log and got this
cache clear serv 06/12/2009 - 10:35 caches cleared admin
php 06/12/2009 - 10:35 Duplicate entry 'admin' for ... admin
user 06/12/2009 - 10:35 Session opened for admin. admin
when i click on the dup. entry
it shows this
Type php
Date Friday, June 12, 2009 - 10:39
User admin
Location http://www..com/services/xmlrpc
Referrer
Message Duplicate entry 'admin' for key 'name' query: INSERT INTO users (name, pass, mail, mode, sort, threshold, theme, signature, created, access, login, status, timezone, language, picture, init, data) VALUES ('admin', 'fc49854a464d5159736af998ea549dda', 'support@fakeemail.com', 0, 0, 0, '', '', 1226367693, 1244774308, 1244709432, 1, 28800, '', '', 'support@quickschools.com', 'a:3:{s:13:\"form_build_id\";s:37:\"form-7eb23917e140c0e94b15f95201f9ca06\";s:18:\"admin_compact_mode\";b:0;s:7:\"contact\";i:0;}') in /usr/local/apache/htdocs/v1/modules/user/user.module on line 327.
Severity error
Hostname .....
Operations

#1
any info i miss out to help?
btw this is my code for phptemplate_menu_item_link() in the template folder
function phptemplate_menu_item_link($link, $link_item) {
if (empty($link['localized_options'])) {
$link['localized_options'] = array();
}
if (empty($link['localized_options']['attributes']['class'])) {
$link['localized_options']['attributes']['class'] = 'menu-'. $link['mlid'];
} else {
$link['localized_options']['attributes']['class'] .= ' menu-'. $link['mlid'];
}
if($link['href'] == $_GET['q'] or ($link['href'] == '' && drupal_is_front_page())) {
$link['localized_options']['attributes']['class'] .= ' menu-'. $link['mlid'].'-active';
}
if ($link['href'] == 'node/45') {
$link['localized_options']['attributes']['onclick'] = "Zopim.window.toggle();return false;";
}
if ($link['href'] == 'node/47') {
$link['localized_options']['attributes']['onclick'] = "clickToCall();return false;";
}
return l($link['title'], $link['href'], $link['localized_options']);
}
i wish to help to debug, but could anyone help me on where should I look at?
#2
i just figure out that the template is causing the warning arguments
when i change to the default templete there isn't any error for the missing arguement
but yet i still get "Error on saving the user."
#3
anyone can give some tips on what went wrong?
i tired redoing the fresh installation of module deploy, its still giving out the same result.
#4
problem fixed ..
problem was I install with a administrator name called "administrator"
and I create a username admin later.
Now everything seems to be working.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.