Hi,
I got the following errors with importing a node of the node-type Web links from a drupal 5 site.
warning: current() [function.current]: Passed variable is not an array or object in /sites/all/modules/node_export/export.pages.inc on line 116.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in /includes/form.inc on line 366.
Thanks a lot in advance for going into this!
Greetings,
Martijn
Comments
Comment #1
summit commentedThis was the Web links node I wanted to import:
Just to make you test it yourself.
Greetings,
Martijn
Comment #2
danielb commentedfrom the looks of it I have stuffed up the D6 version, will get back to you
Comment #3
danielb commentedoh
Comment #4
danielb commentedCan you please confirm which version of Drupal you have, and which version of the module it says you have on your admin/build/modules page?
Something is fishy. You say you have drupal 5, but the error is a drupal 6 error (i can tell by the filename given).
Comment #5
danielb commentedComment #6
summit commentedHi,
it is a node which I want to copy from D5 to a D6 site. Is this may be the problem?
That would be great to do with this module, so upgrading is more easy for sites with only 20x nodes.
Greetings,
Martijn
Comment #7
danielb commentedyes that's the problem!
Haven't really thought about this - I will investigate it soon
Comment #8
danielb commentedComment #9
danielb commentedComment #10
no2e commentedIs moving nodes from 5 to 6 possible now? If not, will it be?
(I'm unsure, because the last release is from 28th Nov, same as the last posts of this issue)
Comment #11
danielb commentednope, haven't looked at it yet
Comment #12
summit commentedPlease no2e, give Daniel some space. one week...He said he will look into it. Give hime some time to investigate.
I set the issue to feature request because it is not a bug.
Daniel, great you will look into it, it would be absolutely great for small sites to export from 5 to 6 or visa versa and upgrade the site with this tool that easy!
greetings,
Martijn
Comment #13
Steve Halleman commentedI too am trying to export from a 5.14 site to a 6.8 site and am getting the same errors:
* warning: current() [function.current]: Passed variable is not an array or object in C:\wamp\www\sites\all\modules\node_export\export.pages.inc on line 116.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in C:\wamp\www\includes\form.inc on line 366.
This would be a very good feature to have. Are there any plans to provide something like this?
Regards,
Steve Halleman
Comment #14
danielb commentedI've made the Drupal 5 node code the same as the Drupal 6 code. So it should have some compatibility now. Let me know if you run into any problems.
Comment #15
danielb commentedI'll mark as fixed, please start a new issue for any problems that come up.
Comment #17
avolve commentedI have received a very similar error — also exporting/importing from D5 - D6.
Would it be far more effective to create a sandbox of the D5 site, upgrade to D6 and then re-attempt?
Comment #18
danielb commentedWhat versions of the modules are you using? (hint: do not use version 6.x-2.x for cross-version exports)
Comment #19
avolve commentedI will double check — have had problems with all methods i have attempted thus far.