salvamomo / drupalauth

Automatically exported from code.google.com/p/drupalauth
0 stars 0 forks source link

Call to undefined function entity_load #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the simpleSAMLphp installation page, I clicked on the Authentication tab to 
test the drupalauth connection. I entered a username and password for an 
account in the site and got the following error message on a white screen:

Call to undefined function entity_load() in 
/home/sitename/public_html/modules/user/user.module on line 287

Original issue reported on code.google.com by lloydsil...@gmail.com on 1 Oct 2012 at 7:51

GoogleCodeExporter commented 9 years ago
Just add 
require_once(DRUPAL_ROOT.'/includes/common.inc');

between
require_once(DRUPAL_ROOT.'/includes/bootstrap.inc');
and
require_once(DRUPAL_ROOT.'/includes/file.inc');

Original comment by e.cuni...@gmail.com on 11 Oct 2012 at 12:14

GoogleCodeExporter commented 9 years ago
Made the sugested change. Now I get the following error:

Fatal error: Class name must be a valid object or a string in 
/home/mysite/public_html/includes/common.inc on line 7679

that line is:    $controllers[$entity_type] = new $class($entity_type);

Original comment by lloydsil...@gmail.com on 11 Oct 2012 at 3:04