I installed Advanced Profile Kit 5.x-1.0-alpha4 on my Drupal 5.7 and got the following errors when I tried to "Create the user profile node type with included fields"

* warning: include_once(.//content_admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/thissite/public_html/sites/all/modules/advanced_profile/advanced_profile.module on line 427.
* warning: include_once() [function.include]: Failed opening './/content_admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thissite/public_html/sites/all/modules/advanced_profile/advanced_profile.module on line 427.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'content_copy_import_form' was given in /home/thissite/public_html/includes/form.inc on line 218.

I'm using Panels 5.x-2.0-beta3

Comments

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

Could you tell me what's on line 427 of your copy? On mine, that's theming the buddylist view and not even remotely related to content copy.

Michelle

kyutums’s picture

My line 427 is
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');

My buddylist 2 version is Buddylist2 5.x-1.x-dev (2008-Apr-08).

michelle’s picture

Status: Postponed (maintainer needs more info) » Active

The buddylist version doesn't matter. I was just saying that my copy of the code has changed so much that my line 427 isn't even close to yours.

Anyway, erm, not a clue. I just checked CCK's CVS and it looks like content_admin.inc is still right there where it's supposed to be. So I don't know why it can't find it.

I'll have to do some digging but I really don't have time to do any more with this module than try to keep the issue queue under control right now. However, you can get around this by manually importing the contents of uprofile.inc into the content copy UI. All my code is doing is automating that import because a lot of people had trouble working the content copy module.

Michelle

kyutums’s picture

Should I try out the dev version instead? :)

michelle’s picture

Honestly, I don't know. You can give it a try on a test site. I haven't looked at this module in weeks and I don't remember what state the dev is in. I'm trying to get back to it and feel bad there there's people having some major issues with panels beta 4, but I simply haven't had the time.

Michelle

kyutums’s picture

Will do. Thanks for the inputs. :)

kyutums’s picture

I'll have to do some digging but I really don't have time to do any more with this module than try to keep the issue queue under control right now. However, you can get around this by manually importing the contents of uprofile.inc into the content copy UI.

Um, where can I find the content copy UI? :)

michelle’s picture

?q=admin/content/types/import

Michelle

michelle’s picture

Status: Active » Postponed (maintainer needs more info)
michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

No further info provided...

Michelle

Anonymous’s picture

Isn't that a CCK issue? Check CCK is installed. I had a similar issue and installed CCK and issue gone.

kyutums’s picture

Could be. I have CCK installed when this happened.

gildedgod’s picture

Status: Active » Fixed

warning: include_once(.//content_admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/thissite/public_html/sites/all/modules/advanced_profile/advanced_profile.module on line 427.
* warning: include_once() [function.include]: Failed opening './/content_admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thissite/public_html/sites/all/modules/advanced_profile/advanced_profile.module on line 427.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'content_copy_import_form' was given in /home/thissite/public_html/includes/form.inc on line 218.

Same problem. Drupal 5.5, Advanced Profile Kit 5.x-1.0-alpha5.

"content_admin.inc" is component of CCK, so, I additionally installed it (why it is not in dependences list?), and firs two messages disappeared. But the third error message still exists:

* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'content_copy_import_form' was given in /home/thissite/public_html/includes/form.inc on line 218.

gildedgod’s picture

Version: 5.x-1.0-alpha4 » 5.x-1.0-alpha5
Status: Fixed » Active

need support =)

gildedgod’s picture

Status: Fixed » Active

/includes/form.inc

214:    }
215:  }
216:  // If $callback was returned by a hook_forms() implementation, call it.
217:  // Otherwise, call the function named after the form id.
218:  $form = call_user_func_array(isset($callback) ? $callback : $form_id, $args);
219:
220:  // We store the original function arguments, rather than the final $arg
221:  // value, so that form_alter functions can see what was originally
222:  // passed to drupal_retrieve_form(). This allows the contents of #parameters
223:  // to be saved and passed in at a later date to recreate the form.
224:  $form['#parameters'] = $saved_args;
michelle’s picture

Status: Active » Fixed

"why it is not in dependences list?"

Because it's not a dependency. It's listed in the instructions along with all the other optional modules.

"need support"

There's really nothing I can do to support content copy. It's not my module and I know very little about it. My standard answer is take the contents of "uprofile.inc" and run it thru the content copy UI. If it still fails, file an issue in the CCK queue and maybe they can help.

Michelle

gildedgod’s picture

Solved!

This error appears when "CCK Content Copy" NOT enabled.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

kulfi’s picture

Thanks gildedgod, your tip saved me lots of time.

timmeh’s picture

hi michelle,

i'm getting this error. using drupal 5.7 and APK 5.x-1.0-alpha6

* warning: include_once(sites/all/modules/advanced_profile/includes/views.user-list.inc) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\d5\sites\all\modules\advanced_profile\advanced_profile.module on line 241.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/advanced_profile/includes/views.user-list.inc' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\d5\sites\all\modules\advanced_profile\advanced_profile.module on line 241.
* warning: include_once(sites/all/modules/advanced_profile/includes/views.user-list.inc) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\d5\sites\all\modules\advanced_profile\advanced_profile.module on line 241.
* warning: include_once() [function.include]: Failed opening 'sites/all/modules/advanced_profile/includes/views.user-list.inc' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\d5\sites\all\modules\advanced_profile\advanced_profile.module on line 241.

line 241 is:

include_once $views_dir . 'views.user-list.inc';

i've enabled both CCK and Views.

anyone having this problem?

collegehoopsnet’s picture

I have the same exact error as the above post.

tannerjfco’s picture

Make sure you guys have content copy enabled, which comes with CCK. I encountered this issue on a clean test drupal install and realized I didn't have CCK installed whatsoever. Once I installed it along with pretty much all of the other components it comes with and CCK Link, it worked without a hitch. Hope that helps!

timmeh’s picture

i read that in the above commentaries and tried it. still getting the error.

alakesh’s picture

hello Timmeh,
1. download the dev version from -> http://drupal.org/project/advanced_profile
2. Copy the file 'views.user-list.inc' from include directory to your already installed advaced_profile/include directory. Reload the page..bingo..

views.user-list.inc is missing in APK 5.x-1.0-alpha6.
You can make use of APK 5.x-1.0-alpha7, that file is included.