Task 002: Install on Drupal 5.1 and import simple book pages exported from Drupal 4.7.6 in Task 001.
I used my Drupal Sandbox from the Drupal Dojo class (fairly new installation, doesn't really matter what I have installed there).
Test Case 002
Download latest version of module from CVS HEAD.
Follow same directions for installation (as per README.txt).
Go to Administer >> import.
Import first simple file from Test Case 001 (Task 001).
Go to Administer >> content and visualize imported nodes.
Check logs.
Results
Upon attempting to enable module, following error is created:
Fatal error: Call to undefined function system_listing() in /var/www/drupal-5.x/sites/all/modules/importexportapi/importexportapi.module on line 959
Site broken until I remove module.
Solution
A search in the Drupal 5 API shows that the function system_listing() is now named drupal_system_listing().
Results
Following error:
Fatal error: Call to undefined function module_exist() in /var/www/drupal-5.x/sites/all/modules/importexportapi/importexportapi.module on line 965
A search in the Drupal API and the handbook pages show that in Drupal 5.x, module_exist() has been changed to module_exists().
Results
Fatal error: Call to undefined function system_listing() in /var/www/drupal-5.x/sites/all/modules/importexportapi/importexportapi.module on line 977
Same as first error. I fix in various places.
Results
Module enabled.
Module access configured.
Patch made
Went into module directory and executed the following:
cvs diff -u -p importexportapi.module > drupal5_syntax_importexportapi.patch
Posted patch at http://drupal.org/node/117064 (issue queue).
Re-run test case
Access administer >> import
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'importexporui_initial_selection_form' was given in /var/www/drupal-5.x/includes/form.inc on line 218.