hi everyone..
im installing APK (Advanced Profile Kit)..successed it, but unfortanelly when im going to testing user page.. i got this error..

    * warning: Parameter 2 to content_profile_user() expected to be a reference, value given in /home/xxx/public_html/includes/module.inc on line 483.

is it pointing to php 5.3 compability ?? how can i fix it ?? thanks....

Comments

fago’s picture

Project: Content Profile » Advanced Profile Kit
Version: 6.x-1.0-beta4 » 6.x-1.x-dev

Yep, it is. But hook_user() is documented like this, so it's APK that should call the function properly.

Michelle’s picture

Category: bug » support
Status: Active » Closed (won't fix)

APK doesn't call content_profile_user(). I grepped the code to be sure. There isn't anything I can do here.

Michelle

kakajoe’s picture

how can i fix it ?? thanks....

mikebann’s picture

Have you cleared your cache? Sometimes when I update modules I get error then I clear my cache and they go away.

kakajoe’s picture

i did...update.php done, but still... someone help me please?

Michelle’s picture

Without knowing what module is making that call, I don't know that there's anything anyone can do to help.

Michelle

kakajoe’s picture

how can i know what module that call ?? would you show me the way ?? thanks

Michelle’s picture

You can do the same thing I did: grep the source code of all the modules you use for "content_profile_user". I checked APK and it doesn't call it. APK doesn't really do anything with content profile directly; it just assumes that it's there to provide the relationship so the node context based panes show up.

Michelle

debplatt’s picture

I followed the instructions that I found here ( http://drupal.org/node/517182 ) on installing the APK. Prior to installing APK, I installed "Content Profile". Then I followed the instruction here ( http://drupal.org/node/579468 ) on "Importing the included User Profile node type". As originally described in the thread above, I got the message "content_profile_user() expected to be a reference". I grep'ed to discover what was calling this function. content_profile.install states the following:

function content_profile_install() {
  // Set the module weight to -1, so content_profile_user() gets called before
  // node_user(), so that one can't set a node's uid to 0 on user deletion
  // before the profile nodes are deleted.

I am new to PHP and the overall architecture of these inter-related modules, so I don't know how to further troubleshoot this.

Michelle’s picture

Project: Advanced Profile Kit » Content Profile
Status: Closed (won't fix) » Active

The only thing I can think of is Content Profile runs something when a Content Profile enabled node type is created. As I said, this isn't anything in APK. Moving this to the CP queue in case fago has an idea.

Michelle