Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8086583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:29:57+00:00 2026-06-05T18:29:57+00:00

I am upgrading a CMS that used $logged_in = user_external_login($account); to verify a login

  • 0

I am upgrading a CMS that used

$logged_in = user_external_login($account);

to verify a login after they hit an external service.

http://drupal.org/update/modules/6/7 suggested this solution

   user_login_submit(array(), array('uid' => $account->uid));
   drupal_goto(); 

This throws a “Only variables can be passed by reference” error at runtime. I am unsure what else to do. Looking around like here http://drupal.org/node/497612 the same solution is suggested. Can someone please fill me in on what I am missing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:29:58+00:00Added an answer on June 5, 2026 at 6:29 pm

    For this line:

     user_login_submit(array(), array('uid' => $account->uid));
    

    … it expects the second parameter to be a reference. What you gave it was a value, which is not a reference.

    Try this instead:

    $account = array('uid' => $account->uid);
    user_login_submit(array(), $account);
    // rest of your code follows after...
    

    I think the documentation is messed up on Drupal.org. user_login_submit(array(), array('uid' => $account->uid)); is not correct, unless I missed something.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an odd issue that started appearing after upgrading EPiServer CMS 6 to
After upgrading to 12.04, my Eclipse that I had since 11.10 has been full
After upgrading to Joomla 2.5 so that I could use the latest version of
After seeing some of the problems that Microsoft has had upgrading people from Internet
After upgrading to a newer hibernate version (guess it came with the switch from
After upgrading node to v0.8.1, bundled Meteor apps now throw an error: node: symbol
After upgrading from Spring 3.0.0.M4 to 3.0.0.RC1 and Spring Security 3.0.0.M2 to 3.0.0.RC1, I've
After upgrading to ReSharper5 it gives me even more useful tips on code improvements.
After upgrading from Cake 1.3 to 2.0 I I'm getting missing table errors for
After upgrading to Ruby 1.9.3 (from 1.9.2 using system RVM) on Ubuntu 10.04.3, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.