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.
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
Comment #1
fagoYep, it is. But hook_user() is documented like this, so it's APK that should call the function properly.
Comment #2
MichelleAPK doesn't call content_profile_user(). I grepped the code to be sure. There isn't anything I can do here.
Michelle
Comment #3
kakajoe CreditAttribution: kakajoe commentedhow can i fix it ?? thanks....
Comment #4
mikebann CreditAttribution: mikebann commentedHave you cleared your cache? Sometimes when I update modules I get error then I clear my cache and they go away.
Comment #5
kakajoe CreditAttribution: kakajoe commentedi did...update.php done, but still... someone help me please?
Comment #6
MichelleWithout knowing what module is making that call, I don't know that there's anything anyone can do to help.
Michelle
Comment #7
kakajoe CreditAttribution: kakajoe commentedhow can i know what module that call ?? would you show me the way ?? thanks
Comment #8
MichelleYou 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
Comment #9
debplatt CreditAttribution: debplatt commentedI 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:
I am new to PHP and the overall architecture of these inter-related modules, so I don't know how to further troubleshoot this.
Comment #10
MichelleThe 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