Installed module. Exported a node: "page" content type. Copied code. Went to "Import" and pasted code. Got these errors when I clicked on "Import".
* warning: current(): Passed variable is not an array or object in /var/www/html/websites/drupal/test/modules/node_export/export.pages.inc on line 128.
* warning: call_user_func_array(): First argumented is expected to be a valid callback, '_node_form' was given in /var/www/html/websites/drupal/test/includes/form.inc on line 366.
Using Drupal 6.9.
Any suggstions?
Comments
Comment #1
somebodysysop commentedOh, I forgot to add, here is the code I'm attempting to import:
Comment #2
danielb commentedDid you export a node... or a content type? This is not for content types, that functionality is already there.
Comment #3
somebodysysop commentedI went to the page node whose source I listed above. I clicked on "Export" tab on the node. The above is what I got. I then copied and pasted the above into the "Import" box. Clicked on "Import" button. Got the errors I listed at the top of this issue and nothing else.
It looks like the program is saying that the node object I pasted in is not being recognized as a node object, but I haven't a clue as to what to do since I believe I've followed the instructions to the letter.
Comment #4
danielb commentedare you using php 4 ? Looks like it gives different output to php 5 and I haven't handled it correctly.
Comment #5
somebodysysop commentedYes, I'm running PHP 4.7. That's it? This module will only work with PHP 5? Any workarounds?
Comment #6
danielb commentedI'll have to change the code to accept your node code that you pasted up there
Comment #7
danielb commentedI'm thinking of changing the import/export code to use these functions I found
Will just need to add in handling for objects, ints, and other data types.
Hoepfully this method will be more consistent.
Comment #8
danielb commentedOK i've added it to the DRUPAL 6 version of the module, if this works out I will backport.
Comment #9
somebodysysop commentedThank you. Downloaded 6.x-2.2 and installed. Tried to import code from above:
Comment #10
danielb commentedNo you will need to generate new code :(
Comment #11
somebodysysop commentedYes! Whoo-Hoo! Thank you so much!
One final question: Can the 5.x version be made to export in this fashion so that we could do 5.x to 6.x node transfers?
Comment #12
danielb commentedYeah I will do this soon, got some other work I need to do first :/
Comment #13
somebodysysop commentedThank you! Good show.
Comment #14
danielb commented