Fatal Error

livewire1337 - June 3, 2009 - 22:07
Project:Advanced User
Version:5.x-2.1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

When I go to advanced under /admin/user/user/advuser I get the following error:

Fatal error: Call to undefined function profile_load_profile() in /home/americo/public_html/modules/advuser/advuser.module on line 157

I am running Drupal 5.18 with modules CCK, Ubercart, and various others.

#1

livewire1337 - June 3, 2009 - 22:12

I found the problem. I needed to enable the user profile core module. This needs to be added in the module settings to where is says it "Depends on: Profile" when trying to enable the advuser module.

#2

earnie - June 6, 2009 - 17:40
Status:active» postponed

Actually, it isn't supposed to depend on the profile module and the code is fixed in the 6.x version.

#3

seanr - July 7, 2009 - 15:05
Status:postponed» active

How about fixing it in the 5.x version? I just ran into this too.

#4

seanr - July 7, 2009 - 15:11

BTW, it's a crazy simple fix - no reason not to commit it to the 5.x branch too:

line 157:

change

<?php
profile_load_profile
($account);
?>
to
<?php
module_invoke
('profile', 'load_profile', $account);
?>

#5

earnie - July 7, 2009 - 17:42

Actually it is in CVS that as module_invoke.

#6

earnie - July 7, 2009 - 17:48
Status:active» fixed

New release created.

#7

seanr - July 16, 2009 - 15:19

Thanks.

#8

System Message - July 30, 2009 - 15:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.