Drupal version 5.1
MySQL 4.1.10
URL = http://www.altbikermice.us/

Fatal error: Function name must be a string in /home/bikermic/public_html/modules/views/views.module on line 1580

What I did: Was using views 5.x-1.6-beta5. Turned off usernodes and got the above error message. Downloaded views 5.x-1.6 updated on July 14th. Repaired the database. And then I got the following fatal error.

Fatal error: Function name must be a string in /home/bikermic/public_html/modules/views/views.module on line 1581

Tried uploading both usernodes and views at the same time. Same error message. Took out the views module and site will come up, so then I turned off all modules but the core and reuploaded views. Still got the last fatal error. Tried to upload both views and usernodes at the same time and still got the error message.

I don't know how to fix this. I have a friend telling me it may need a server restore, but my hosting company charges for that so I want to explore all other options. I need views for the majority of my site.

I'm afraid I created a views page that is drawing off the usernodes and I can't delete it now. I don't know PHP so I can't tell if something is wrong with the code.

HELP!

Comments

merlinofchaos’s picture

I would advise the following steps:

1) re-activate the usernode module.
2) Look for any of your views that may be using this module. In particular, the error you're seeing is because Views is looking for an argument handler that doesn't exist, and this is causing a crash. This view is probably providing a block which is in use, which is why it is being run.
3) Remove the offending view. YOu should then be able to deactivate user module.

If you can't get your site going at all, modify views.module like 1581, to look like this:

  if (function_exists($arginfo[$argtype]['handler'])) {
    return $arginfo[$argtype]['handler']('link', $item, $argtype, $base);
  }

That should make Views stop crashing on that missing function.

klcthebookworm’s picture

Okay, I made sure usernode folder was in the directory. Made the changes to views.module because I can't access my administrative pages at all. Ran the update file. And now I get this fatal error:

Fatal error: Call to undefined function views_get_summary_link() in /home/bikermic/public_html/modules/views/views.module on line 1588

If I take views.module out, I can bring up the site. But I have no views to edit or delete, so I can't find the offending view through the program.

klcthebookworm’s picture

You can close this one. I used the instructions in this node http://drupal.org/node/64165 to delete the tables from the database and start over.

catch’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.