I installed Drupal 7.0-dev successfully.
I created the first node (node/1) which is a page content type with admin user (uid=1).
After I set URL alias (it's called 'impresszum') and saved the node I gave the following warnings on the front page and the node/1 or on the ('impresszum') URL:

    *  Warning: array_diff_key(): Argument #1 is not an array in drupal_lookup_path() (line 91 of /srv/www/drupal7dev/includes/path.inc).
    * Warning: array_flip(): The argument should be an array in drupal_lookup_path() (line 91 of /srv/www/drupal7dev/includes/path.inc).

If I delete the URL alias the problem will solve.

OS: Fedora 10
PHP: 5.2.9
Apache: 2.2.11
MySQL: 5.0.84

Comments

jerdiggity’s picture

Status: Active » Needs review

Unable to replicate this issue, however PHP version is 5.3.0 & MySQL is 5.1.36.

Leave issue open?

Webappz’s picture

I'll test the URL alias on the latest drupal 7.x-dev snapshot (oct. 6) and if it is OK you can close it.

Webappz’s picture

Status: Needs review » Closed (fixed)

I tested the URL alias on the latest drupal-7.x-dev snapshot (oct. 8) version and the result was OK.
Thanks.

princeanil’s picture

Status: Closed (fixed) » Active

I found this happening after a fresh download on D7 today. On adding an Alias and saving the page, there is no warning but if the page is refreshed , this warning shows :

* Warning: array_diff_key(): Argument #1 is not an array in drupal_lookup_path() (line 98 of /home/website/public_html/drupal/includes/path.inc).
* Warning: array_flip(): The argument should be an array in drupal_lookup_path() (line 98 of /home/website/public_html/drupal/includes/path.inc).

mcarbone’s picture

I am unable to reproduce. Are you still able to with the latest HEAD, princeanil?

dave reid’s picture

Status: Active » Fixed

Cannot reproduce. Please re-open if tested with latest code and can re-confirm the bug.

Status: Fixed » Closed (fixed)

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

jalneal’s picture

Priority: Normal » Critical
Status: Active » Closed (fixed)
jalneal’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Active

Sorry to open this one back up, but I think I am duplicating this problem on a site I've been testing with. Just downloaded today, so it's the latest build.

site is http://hcp.jalanneal.net

Screenshot of URL Aliases is here: http://screencast.com/t/ODUyZTY3

I never added any manual URL aliases, but they were enabled, and I also loaded and enabled PathAuto. I didn't see the error messages come up until after I added 4 new fields - two were taxonomy terms under a vocabulary, which I typed a path for under the taxonomy dialog. These paths work. They are:
http://hcp.jalanneal.net/grading
http://hcp.jalanneal.net/runoff

I then added two user fields for first and last name. It was after adding the user fields that I noticed this started happening, and I noticed that URL's had one wacky looking field that looked associated with a user name. I disabled Pathauto and still get the message, so I'm guessing that one of these url paths that it created may be the culprit.

A screenshot of the error is here:
http://screencast.com/t/ZWUxYmZjMmIt

Guessing it's an easy fit (delete the aliases) but thought I'd leave it up for a few days till someone can take a look at it.

jalneal’s picture

Version: 7.x-dev » 7.0-alpha6
Priority: Critical » Normal
Status: Closed (fixed) » Fixed

Just updated, opened today - been a while, but appears that the problem no longer exists with the current version.

Status: Fixed » Closed (fixed)

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