Updating: user_current_to_arg() error
adobo - April 9, 2008 - 23:17
Hello,
I have just upgraded my Drupal 6.1 installation to Drupal 6.2 by following upgrading instructions (turning my site offline, replacing then Drupal source, running update.php and turning it back online), but I get a fatal error:
Fatal error: Call to undefined function user_current_to_arg() in /www/includes/menu.inc on line 594
update.php doesn't show any possible updates, and I have no way to make this work.
Has anyone faced this problem? Is there a solution?

Security advisory for Drupal 6.2
The security advisory says this:
This can probably be corrected through search and replace, but the cascading effect of the menu system has been removed for security. That will be the harder one to deal with. Kind of sucks after the big push to get things working with Drupal 6
I guess we need a list of modules known to work, or a list on known broken.
EDIT - were you user 1? otherwise it may be the other error mentioned on that page. (but your error is different, so I doubt it.)
Important Notes in SA-2008-026 worked!
I got this same error. Since I use version control, I reverted back to my last working copy and followed the "Important Notes" in SA-2008-026. I now have a working copy of Drupal 6.2.
I hope this helps.
Didn't work
I followed the important notes too, but when accesing update.php there are no updates available, so it doesn't do anything.
Did you get any database updates?
so it doesn't do
Did you click the update button? I think not. Please try, then post again.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
Solved!
Your comment gave me a clue, because when I clicked on update button I was just redirected to update.php and did nothing but showing main update page.
I'm using lighttpd with a trick from http://hostingfu.com/article/running-drupal-with-clean-url-on-nginx-or-l... to make clean URLs work without touching rewrite configuration. After disabling that code and browsing update.php again, it worked and performed some updates. Now I can access my site without errors.
Thank you for your comments! I'll try to fix that code and contact the author.
Weirdest update ever...
I ended up getting this error - read all of this stuff above and the Important Notes". None of which mentioned the possibility that I would be seeing an update page which indicated that it had nothing to update, but would still need to hit the update button anyway to get things working correctly. So it works now, but not the most intuitive update to say the least. :-)
~~~
HigherVisibility
What function in update fixes this?
Which function in the update process fixes this issue? The 6.2 update.php doesn't seem to have a no_js option, so I have no way of getting this to work without rewriting the update page a bit.
UPDATE: Looks like this line of the database dump is the problem:
INSERT INTO `menu_router` VALUES('user/%', 'a:1:{i:1;s:17:"user_current_load";}', 'a:1:{i:1;s:19:"user_current_to_arg";}', 'user_view_access', 'a:1:{i:0;i:1;}', 'user_view', 'a:1:{i:0;i:1;}', 2, 2, '', 'user/%', 'My account', 'user_page_title', 'a:1:{i:0;i:1;}', 6, '', '', '', 0, 'modules/user/user.pages.inc');Running this command should take care of that issue:
DELETE FROM `menu_router` WHERE CONVERT(`menu_router`.`path` USING utf8) = 'user/%' LIMIT 1Yes, that query did the
Yes, that query did the trick for me. Thanks.
Can't even get to the
Can't even get to the update.php page, I get the indicated error. :(
Do I need to go into the db and disable all but the core modules or something?
Steel Rat
My Drupal Sites:
RPGMapShare.com
Infinite Ordnance
Malvern Rouge Valley Youth Center