After updating the module to the 7.x.1.10 the following error is appearing in my logs on every page load:

DOException: SQLSTATE[HY000]: General error: 25 column index out of range: INSERT INTO {menu_router} (path, load_functions, to_arg_functions,          [error]
access_callback, access_arguments, 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/config/media/image-styles/import
    [1] => 
    [2] => 
    [4] => a:0:{}
    [5] => drupal_get_form
    [6] => a:1:{i:0;s:30:"image_styles_admin_import_form";}
    [7] => 
    [8] => 31
    [9] => 5
    [10] => 1
    [11] => admin/config/media/image-styles
    [12] => admin/config/media/image-styles
    [13] => Import style
    [14] => t
    [15] => 
    [16] => 
    [17] => a:0:{}
    [18] => 388
    [19] => Import an image style.
    [20] => 
    [21] => 3
    [22] => sites/all/modules/contrib/imagecache_actions/image_styles_admin/image_styles_admin.inc
    [3_0] => image_styles_admin_access
)
 in _menu_router_save() (line 3901 of /web/includes/menu.inc).

The site cannot clear / update its menu cache because of this error.
Downgrading to the 1.9 version seems solve the problem.
I'm using the sqlite database backend.

Comments

felubra created an issue. See original summary.

fietserwin’s picture

I found a similar issue under #1055774: Postgres and SQLite incompatibility. Seems to err only on sqlite.

Can you test by changing line 51 of image_styles_admin.module to not be an array:

    'access callback' => 'image_styles_admin_access',

If that is indeed the problem I will release a new version.

felubra’s picture

Yes, I can confirm that this solved the issue.

Thanks!

  • fietserwin committed 52889f5 on 7.x-1.x
    [#3072639]: PDOException: SQLSTATE[HY000]: General error: 25 bind or...
fietserwin’s picture

Status: Active » Fixed

Committed and fixed. Thanks for reporting and testing.

Status: Fixed » Closed (fixed)

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