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
Comment #1
jerdiggity commentedUnable to replicate this issue, however PHP version is 5.3.0 & MySQL is 5.1.36.
Leave issue open?
Comment #2
Webappz commentedI'll test the URL alias on the latest drupal 7.x-dev snapshot (oct. 6) and if it is OK you can close it.
Comment #3
Webappz commentedI tested the URL alias on the latest drupal-7.x-dev snapshot (oct. 8) version and the result was OK.
Thanks.
Comment #4
princeanil commentedI 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).
Comment #5
mcarbone commentedI am unable to reproduce. Are you still able to with the latest HEAD, princeanil?
Comment #6
dave reidCannot reproduce. Please re-open if tested with latest code and can re-confirm the bug.
Comment #8
jalneal commentedComment #9
jalneal commentedSorry 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.
Comment #10
jalneal commentedJust updated, opened today - been a while, but appears that the problem no longer exists with the current version.