Download & Extend

iteration over empty objects throws errors in pathauto settings screen

Project:Pathauto
Version:5.x-2.0-beta4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Just needs a check before these two foreach() as attached. May be others missing.

Probably doesn't appear except on new installs?

AttachmentSizeStatusTest resultOperations
pathauto_18.patch1.76 KBIgnored: Check issue status.NoneNone

Comments

#1

Version:5.x-2.0-beta3» 5.x-2.0-beta4

upgraded to b4 and verified that bug still exists. original patch fixes same issue there too.

without this patch, you'll see warnings when updating the pathauto settings

#2

Do you have token installed? I believe this only happens when token module is not installed or is not getting the placeholders which is usually an include/path problem.

#3

Status:active» needs work

Or the other thing that I'm saying is, if people have this problem we should warn them instead of just silently continuing on.

#4

Status:needs work» closed (duplicate)

I believe this is duplicate of the "token not installed" bug.

As of the current development release if that happens you get a nice warning message:

    drupal_set_message(t('It appears that the <a href="@token_link">Token module</a> is not installed.  Please ensure that you have it installed so that Pathauto can work properly.  You may need to disable Pathauto and re-enable it to get Token enabled.', array('@token_link' => 'http://drupal.org/project/token')), 'error');