When I tried to refresh a FeedAPI node, I get a PHP error similar to "cannot use [] operator on string in line 316 of path_redirect.module".

I fixed this error by adding the following code to path_redirect_delete():

<?php
foreach ($where as $key => $value) {
if (is_string($value)) {
// BEGIN ADDITION
if(is_string($args)) {
$args = array();
}
// END ADDITION
$args[] = $value;
$where[$key] = $key .' = '. (is_numeric($value) ? '%d' : "'%s'");
}
}

Why path_redirect_delete() is being called on this page, however, is a mystery to me.

Comments

EvanDonovan’s picture

Messed up the formatting on that - my apologies. Too bad you can't edit the original post :(

dave reid’s picture

Status: Needs work » Postponed (maintainer needs more info)

Try using the latest 6.x-1.x-dev. This code has changed and is probably fixed already.

dave reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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