Closed (duplicate)
Project:
Vocabulary Index
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
24 Jan 2010 at 02:48 UTC
Updated:
12 May 2026 at 14:00 UTC
Hi,
I don't know exactly the cause, but it seems to be someting wrong between vocabindex and i18ntaxonomy
It has something to do with this function
function vocabindex_menu_alter(&$items) {
$vis = vocabindex_vi_load(VOCABINDEX_VI_PAGE);
foreach ($vis as $vi) {
if ($vi->view == VOCABINDEX_VIEW_FLAT) {
$item = &$items['taxonomy/term/%'];
// Store the original configuration, so we can pass it on to our own
// callback.
$callback = $item['page callback'];
$arguments = $item['page arguments'];
$file = $item['file'];
$filepath = isset($item['file path']) ? $item['file path'] : drupal_get_path('module', $item['module']);
// Alter the original callback.
$item['page callback'] = 'vocabindex_term_page';
$item['page arguments'] = array_merge(array(2, $callback, $file, $filepath), $arguments);
$item['file'] = 'vocabindex.module';
$item['file path'] = drupal_get_path('module', 'vocabindex');
break;
}
}
}
specialy at this line :
$item['file path'] = drupal_get_path('module', 'vocabindex');
When both modules are activated, and I click on a term link, I get this error
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/vocabindex/i18ntaxonomy.pages.inc' (include_path='.:/usr/local/lib/php') in /home/web/www/drupal/includes/menu.inc on line 346
For the moment, as a workaround, I've just commented the entire vocabindex_menu_alter function.
Comments
Comment #1
xanoThis seems like a conflict and a bug. The conflict is that both module want to work with the same path, which is technically impossible. The bug is that i18n alters the settings for that particular path, but it doesn't do it properly. This is why Drupal wants to load an i18n include file from Vocabulary Index's module folder.
Comment #2
mtundu2 commentedAny resolution to this problem? I just installed the translation module and am getting the same error.
Comment #3
colanThe weight of this module (0) needs to be greater than i18ntaxonomy (5), but it isn't. Other modules that rely on i18ntaxonomy are having the same problem. It can be set manually in the DB, but let's roll a patch that does the update. In case I don't get a chance to throw one myself, here's an example from i18n itself:
Comment #4
colanActually, it could also be http://drupal.org/node/903142#comment-3462656.
Comment #5
jpmckinney commentedDuplicate #570310: Error required_once()