I was attempting to edit a page on a site running Drupal 6.16 and I got the following error message:
* warning: Illegal offset type in /home/msvehicl/public_html/includes/path.inc on line 75.
* warning: Illegal offset type in isset or empty in /home/msvehicl/public_html/includes/path.inc on line 78.
* warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /home/msvehicl/public_html/includes/database.mysqli.inc on line 323.
* warning: Illegal offset type in /home/msvehicl/public_html/includes/path.inc on line 87.
It looks like there is a problem with PathAuto but I am not sure. I tried updating to the dev release of PathAuto but that has not helped. The rest of the modules are up to date. Has any one seen this error message before? I have been googling for the last couple of hours and I figured I ought to just ask if anyone in the Florida group has run across this problem.
Here are lines 83 through 88 from the path.inc file mentioned in the error:
// Check $no_src for this $path in case we've already determined that there
// isn't a path that has this alias
elseif ($action == 'source' && !isset($no_src[$path_language][$path])) {
// Look for the value $path within the cached $map
$src = '';
if (!isset($map[$path_language]) || !($src = array_search($path, $map[$path_language]))) {
// Get the most fitting result falling back with alias without language
if ($src = db_result(db_query("SELECT src FROM {url_alias} WHERE dst = '%s' AND language IN('%s', '') ORDER BY language DESC, pid DESC", $path, $path_language))) {
$map[$path_language][$src] = $path;
}
else {
// We can't record anything into $map because we do not have a valid
// index and there is no need because we have not learned anything
// about any Drupal path. Thus cache to $no_src.
$no_src[$path_language][$path] = TRUE;
}
For the record, I am only using two taxonomy vocabularies and they only have five or six terms listed in each. The taxonomy was added after the content and then I went back and added the appropriate terms to the node. Not sure if that has anything to do with the problem but I figured I would mention it.
If there is any other bit of information that might help resolve the issue, let me know.

Comments
the includes/path.inc doesn't
the includes/path.inc doesn't necessarily mean pathauto.
If you're not sure, try disabling pathauto, and see if the errors still occur.
Premium Drupal Commercial themes
Well I took your advice and
Well I took your advice and it worked. The error messages disappeared. I turned it back on and the error popped up again. This leaves me with something of a dilemma though. What am I supposed to do if I want to use PathAuto? When I initially started adding the pages, I created a node alias using Path. Do I need to clear those out before I can use Pathauto?
I am going to read through the module description and see if I missed something.
Looks familiar
I had an error extremely similar to this one last week, I think the line numbers were the same, it was definitely right in that function.
Mine turned out to be related to Nodewords, and specifically Nodewords Tokens in my case. Turning pathauto off would fix it, but that's a dealbreaker for me.
Okay.. Let me see if the
Okay.. Let me see if the nodewords module is turned on. I know I had tried them at some point. The funny thing is I have had problems with nodewords before too.
Ah hah!
Well... isn't that interesting? I turned off all of the additional options for Nodewords but left Nodewords on and the problem disappeared. I am going to turn the options on until the error pops up again and see if I can isolate which one is tanking. My money is on the Tokens for Metatags..
UPDATE
We have a winner! Tokens for Metatags!
Tokens for meta tags - Implement tokens that can be used to set the content of meta tags. Depends on: Nodewords, Token
These worked without a problem:
Administration interface for Nodewords
Basic meta tags
Extra meta tags
Meta tags for custom pages
Site verification meta tags
User interface for Nodewords
So Nodewords + Tokens + PathAuto can equal errors if you use the Token for Metatags option. At least for me. If anyone else runs into that error, I would be interested in seeing how you dealt with it.
Nodewords = flakey
Nodewords is the manic-depressive bi-polar friend of Drupal modules - it works fine for ages, then it'll go through months of unstable and broken "stable" releases.. Great idea, unfortunately buggy as ####.
That explains a lot. Reminds
That explains a lot. Reminds me of a cousin my family refuses to talk about any more...
Aha
I went and checked back, that was the exact error I was getting.
If you don't need Nodewords Tokens, then turning that off should fix the issue. I don't have a fix for it yet, but I'll let you know if/when I get a patch together, should be sometime this weekend hopefully.
Thanks, I did that and it
Thanks, I did that and it seems to have settled down a bit. The funny thing is I am pretty sure I have had issues with the Tokens for Nodewords before... I just don't remember what caused it. I'll be looking forward to seeing what you came up with if you manage a patch.
Same error for me, same fix
Same error for me, same fix for me = disable nodewords_tokens
--
Tom
www.systemseed.com - drupal development. drupal training. drupal support.