Looks like there's something incorrect when omega tools inserts itself into the menu chain. This is using SQLite, upon enabling the module

WD menu: PDOException: SQLSTATE[HY000]: General error: 25 bind or column index out of range: INSERT INTO {menu_router} (path, load_functions, to_arg_functions, access_callback, access_arguments, [error]
page_callback, page_arguments, delivery_callback, fit, number_parts, context, tab_parent, tab_root, title, title_callback, title_arguments, theme_callback, theme_arguments, type, description,
position, weight, include_file) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); Array
(
    [0] => admin/appearance/omega-tools/add
    [1] => 
    [2] => 
    [3] => user_access
    [4] => a:1:{i:0;s:17:"administer themes";}
    [6] => a:1:{i:0;s:24:"omega_tools_subtheme_add";}
    [7] => 
    [8] => 15
    [9] => 4
    [10] => 1
    [11] => admin/appearance
    [12] => admin/appearance
    [13] => Create new Omega subtheme
    [14] => t
    [15] => 
    [16] => 
    [17] => a:0:{}
    [18] => 388
    [19] => 
    [20] => 
    [21] => 100
    [22] => sites/all/modules/omega_tools/includes/omega_tools.admin.inc
    [5_0] => drupal_get_form
)
 in _menu_router_save() (line 3703 of /Users/rory/Sites/ppc_test/drupal/includes/menu.inc).

omega_tools enables successfully, but each enable or disable of a module gives that error.

CommentFileSizeAuthor
#1 fix_menu_router-1263664.patch2.47 KBrory_o

Comments

rory_o’s picture

StatusFileSize
new2.47 KB

I figured it out. According to hook_menu, 'page callback' should just be a string and not an array. MySQL probably doesn't care on saving since MySQL is generally pretty lax about such things, but SQLite doesn't like things being out of bounds.

This changes all the 'page callback' in omega_tools_menu() from array('callback') to just 'callback'.

web360’s picture

Thanks @rory_o for the patch!

Tested and it works great.

barraponto’s picture

Status: Active » Closed (duplicate)

This is the same issue as #1055774: Postgres and SQLite incompatibility, marking as duplicate.
There is a patch there, as well. It is precisely the same patch as shown here, but it doesn't change the newline at end of file.