Both realname-6.x-1.1-rc3 and dev versions report the same error after installing: "The profile load function (profile_load_profile) was not found."

I'm working with a 25-Nov dev version of Content profile.

Real Name doesn't work after this error choosing fields of Content Profile module

CommentFileSizeAuthor
#13 realname.patch732 bytesbcn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NancyDru’s picture

Status: Active » Postponed (maintainer needs more info)

Please go back to your settings and make sure it is using the content_profile module (the "Module" tab); this message would indicate that you have chosen the core profile module.

azuledu’s picture

Thanks for answer Nancy.
The message appear at the moment I activate Real Name Module at admin/build/modules page, and remains till the moment I select Content Profile Module at admin/user/realname/module page. I don't know if it is the supposed behaviour.
Anyway the module doesn't work for me, using Content Profile module dev version from Nov,25.

NancyDru’s picture

Assigned: Unassigned » NancyDru
Status: Postponed (maintainer needs more info) » Fixed

Yes, if you don't have the core profile module enabled, I could see this happening before you select the content profile module and some fields. The fix for #340673: Fatal Installation Error should resolve this. It will be in the -dev version that rolls up at midnight GMT. I'm going to mark this as fixed by that; if it is not, please re-open it.

azuledu’s picture

Status: Fixed » Active

Using the dev version from Non,30 now I get "The profile load function (_load_profile) was not found." till I activate the core Profile module.

NancyDru’s picture

Status: Active » Fixed

It won't roll a new version for another two hours or so yet (midnight GMT)

Status: Fixed » Closed (fixed)

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

poundy’s picture

Status: Closed (fixed) » Active

I realize this issue was mark as fixed and closed, but I am still having the profile load function was not found error show up. I am using Content Profile 6.x-1.x-dev.

tallsimon’s picture

Issue also exists with realname.module,v 1.4.4.26 2008/12/30 i.e. 6.x-1.1

In fact, after installing (then re-installing and clearing cache), the Module tab at admin/user/realname/module only shows Core Profile- there is not option to select RealName.

The error The profile load function (_load_profile) was not found. also displays on every page.

Drupal v 6.8

tallsimon’s picture

Rolling back to 6.x-1.1-rc3 actually fixes the issue- the error disappears! Stranger and stranger...

CKIDOW’s picture

Hey Guys!

Did you already set this module up? After I added a field for realname and set it up into the module settings, the error message disappears.

Good Luck!

Greetings

CKIDOW

tallsimon’s picture

Aah yes this does work, silly omission... thank you CKIDOW!

NancyDru’s picture

Status: Active » Fixed
bcn’s picture

Status: Fixed » Needs review
FileSize
732 bytes

Attached patch adds another check to make sure the $fields (and $module) variables have been set before displaying this error.

-  if (!isset($account->{key($fields)})) {
+  if (!isset($account->{key($fields)}) && !isset($fields)) {
bcn’s picture

Status: Needs review » Needs work

Further testing showed that my patch broke things quite badly :)

I'll make another effort shortly.

EDITED TO ADD:
After trying a few different approaches, I'm not sure I have a good solution for this. I guess it's not a huge problem, but I'm sure there must be a better way to handle this.. Maybe moving the $module = variable_get(... to earlier in the function, and put it inside a module_exists to see which module are installed.

NancyDru’s picture

Status: Needs work » Fixed

I uninstalled the module and saw what you've been reporting. It is fixed now.

j0rd’s picture

The most recent stable version of this module, still has this bug.

NancyDru’s picture

"Fixed" means this is still in the -dev version. Check the project page for what fixes are in the -dev version. When I am satisfied that the -dev version has been tested adequately, I will publish it.

Status: Fixed » Closed (fixed)

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

verta’s picture

[edit: Never mind, found a fix by installing current dev release.]