I always get this error message after uploading Views to my modules folder:
"warning: Missing argument 2 for views_ui_help() in /html/modules/views/views_ui.module on line 155."

I also can't access Views from my administer menu even though I have those modules enabled (I guess they didn't properly install?)

These installation issues occurred on my site with both the 2.0 rc1 and the beta release prior to that.

Thanks for the help.

Comments

etamar’s picture

Title: Installation issues » Installation issues Views module views_ui_help and db_drop_table
Version: 6.x-2.0-rc1 » 5.x-1.6

Have upgraded my Drupal installation to 5.12, ran update scripts, and finally got to reinstalling the new Views module.

After successfully turning the old Views module off, copying the new one, and activating Views module successfully also, I have attempted running update.php to apply update commands.

The following errors have occured, rendering Views module inactive.

  1. Installation of Views module fails, on error:
  2. Fatal error: Call to undefined function db_drop_table() in /home/lfamlar1/public_html/drupal-5.3/modules/views/views.install on line 182

  3. The log (watchdog) tracks the following errors:
  4. Invalid argument supplied for foreach() in /home/lfamlar1/public_html/drupal-5.3/update.php on line 542

    array_merge() [function.array-merge]: Argument #2 is not an array in /home/lfamlar1/public_html/drupal-5.3/update.php on line 309.

    Missing argument 2 for views_ui_help() in /home/lfamlar1/public_html/drupal-5.3/modules/views/views_ui.module on line 156.

merlinofchaos’s picture

Version: 5.x-1.6 » 6.x-2.0-rc1
Category: support » bug

First, NEVER change an issue from a Drupal 6 issue to a Drupal 5 issue in the Views queue, because they're different software packages. It's just pollution. It confuses the issues and harms the existing flow.

Second, why are you trying to install a Drupal 6 module on Drupal 5? Surprise, it won't work.

submodality: Somehow I'd missed this issue in the queue, sorry. It probably should've been filed as a bug report.

merlinofchaos’s picture

submodality: I've never seen this error, and according to the documentation the 2nd argument for hook_help isn't optional, so the question for me would be: What's *calling* hook_help without the 2nd argument and why?

merlinofchaos’s picture

Status: Active » Closed (fixed)

Closing after a year with no response to #3.