Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal 6.20.
Enabled OAuth and Autoload, went to /user/1/ and got:
Fatal error: Class 'DrupalOAuthConsumer' not found in /nroc/sites/all/modules/contrib/oauth/oauth_common.module on line 146
Comments
Comment #1
yuriy.babenko CreditAttribution: yuriy.babenko commentedClearing cache from Drush solved the issue. I'm guessing OAuth relies on Autoloader to load that missing class, and the code ran before Autoloader had a chance to load the class.
Comment #2
voxpelli CreditAttribution: voxpelli commentedThanks for reporting this! I think this is a duplicate of #1141658: autoload cache not cleared during install - right?
Comment #3
yuriy.babenko CreditAttribution: yuriy.babenko commentedHmm - looks like it could be.
Comment #4
Kutakizukari CreditAttribution: Kutakizukari commentedWhen I go to either “View my account” or “Edit my account” I get a blank white page with the following error, “Fatal error: Class 'DrupalOAuthConsumer' not found in /thepath/sites/all/modules/oauth/oauth_common.module on line 146”, even after clearing the cache with Drush it still throws the error.
Comment #5
tiroles CreditAttribution: tiroles commentedI have exactly the same problem. And it was after I installed the new versions of a few modules, including OAuth. I didn't tried Drush, but I think it will not solve the problem.
Anyone knows how to fix this?
Comment #6
voxpelli CreditAttribution: voxpelli commentedYou have Autoload 2 installed? And you have cleared the cache?
Comment #7
tiroles CreditAttribution: tiroles commentedNot yet (just got 1.4). I'll try and give you a feed back here. Thanks!
Comment #8
voxpelli CreditAttribution: voxpelli commentedYou need to use Autoload 2.x
Comment #9
tiroles CreditAttribution: tiroles commentedSo, I've installed the 2.1, cleaned all the cashes, and still I got the same line of error, and I can´t access the user's page.
Any ideas?
Comment #10
tiroles CreditAttribution: tiroles commentedNobody?
Comment #11
voxpelli CreditAttribution: voxpelli commentedAnd you are on OAuth 6.x-3.0-beta4?
Comment #12
tiroles CreditAttribution: tiroles commentedNo. Just 6.x-2.1
I don´t know if there's something to do with it, but I still didn't upload the drupal core to 6.22
Thanks for all the help.
Comment #13
tiroles CreditAttribution: tiroles commentedOk. Now I don´t know what to do... :(
I made the upload to the drupal core 6.22 and still got the error.
Comment #14
voxpelli CreditAttribution: voxpelli commentedTry the latest dev-release of the OAuth module. If that doesn't help I'm afraid I don't know what else we could do - I can't replicate this problem. If you continue to see an issue then open a new issue - the one this was originally about should have been fixed.
Comment #15
tiroles CreditAttribution: tiroles commentedOk, thanks! I will try that.
Comment #16
tiroles CreditAttribution: tiroles commentedStill nothing... Made everything a noob on coding could do. :(
If someone figured out how to solve, please tell me. I have people subscribing my website, and they can't access the reserved content because of that.
Thanks Voxpelli for all the help man. :)
Comment #17
tiroles CreditAttribution: tiroles commentedUpdate: for anyone who is interested on this, I solved the problem uninstalling the OAuth and Autoload modules. Problem fixed.
Comment #18
glass.dimly CreditAttribution: glass.dimly commentedI fixed this problem by upgrading to this version of autoload. It was necessary to run update.php afterwards. http://ftp.drupal.org/files/projects/autoload-6.x-2.1.tar.gz
Comment #19
marthinal CreditAttribution: marthinal commented#18 fix the problem for me.
Thanks @glass.dimly!