Closed (fixed)
Project:
Path redirect
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2009 at 20:39 UTC
Updated:
9 Nov 2009 at 18:00 UTC
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
Comment #1
EvanDonovan commentedMessed up the formatting on that - my apologies. Too bad you can't edit the original post :(
Comment #2
dave reidTry using the latest 6.x-1.x-dev. This code has changed and is probably fixed already.
Comment #3
dave reid