Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/commentrss/system.admin.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www-sec/nilavi.com/includes/menu.inc on line 344

Just installed the latest commentrss, after uninstalling the previous version.

The error happens when I try to configure RSS General Settings -- admin/content/rss-publishing/default

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

subscribe

Gábor Hojtsy’s picture

Status: Active » Fixed
FileSize
1.59 KB

Just committed this patch to the Drupal 6.x-2.x branch. No such patch required for Drupal 5.x. I did not see this error, since I was only using the default Drupal mane interface. I assume you ended up on that path with admin_menu or some such extension. Applying this patch, or updating to the latest Drupal 6.x-2.x dev version should solve the issue for you.

Thanks for the report.

akwala’s picture

Thanks. Yes, I realized later that the problem occurred only when I got to it from Admin Menu.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Dave Reid’s picture

Wouldn't it just be easier to use the following instead of having to redefine the page callback?

'file path' => drupal_get_path('module', 'system'),
Gábor Hojtsy’s picture

Status: Closed (fixed) » Needs work

Good idea. Did you verify that it works? :)

Dave Reid’s picture

I'll give it a whirl today.

Dave Reid’s picture

Status: Needs work » Needs review
FileSize
1.16 KB

Confirmed I got the error specified (didn't update to latest 6.x yet) by visiting admin/content/rss-publishing/default. Confirmed this is fixed by just using:

  $items['admin/content/rss-publishing/default'] = array(
    'title' => 'General settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file path' => drupal_get_path('module', 'system'),
  );
Dave Reid’s picture

Status: Needs review » Fixed

#8 has been committed to 6.x-2.x after testing.

Status: Fixed » Closed (fixed)

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

alexharries’s picture

If the error still occurs, it's worth ensuring that any implementations of hook_menu use 'page callback' => '...' and NOT 'page_callback' - the underscore is wrong - this one's had two of us flummoxed for the last 30 minutes now!