When I run drush, I'm getting an error in pathrules...

Notice: Undefined index: q in pathrules_checkpath() (line 54 of /var/www/sites/all/modules/contrib/pathrules/pathrules.module).

It seems to be because the module is looking at $_REQUEST['q'] which doesn't exist in command line execution. Replacing with request_uri() fixes this.

I patched the module to get rid of the error. I notice that it has been fixed in the dev branch, but I thought I should post anyway in case someone else wants to use it.

CommentFileSizeAuthor
pathrules_drush.patch416 bytescleaver

Comments

joshuajabbour’s picture

Status: Active » Reviewed & tested by the community

This doesn't appear to have been applied actually. It's on the master branch, but not 6.x-1.x.

A new release would be wonderful, this bug is hugely annoying...

jemond’s picture

I can confirm this works.

cleaver’s picture

I forgot all about this one... I guess I haven't worked with D6 much since that time. It would be nice to get it on the 6.x-1.x branch though :)

paranojik’s picture

Status: Reviewed & tested by the community » Fixed

Commited to 6.x-1.x. Thanks!

Status: Fixed » Closed (fixed)

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