failed to open stream errors with Advanced Profile Kit 5.x-1.0-alpha4
| Project: | Advanced Profile Kit |
| Version: | 5.x-1.0-alpha5 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
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

#1
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
#2
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).
#3
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
#4
Should I try out the dev version instead? :)
#5
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
#6
Will do. Thanks for the inputs. :)
#7
Um, where can I find the content copy UI? :)
#8
?q=admin/content/types/import
Michelle
#9
#10
No further info provided...
Michelle
#11
Isn't that a CCK issue? Check CCK is installed. I had a similar issue and installed CCK and issue gone.
#12
Could be. I have CCK installed when this happened.
#13
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:
#14
need support =)
#15
/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;
#16
"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
#17
Solved!
This error appears when "CCK Content Copy" NOT enabled.
#18
Automatically closed -- issue fixed for two weeks with no activity.