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.
| Comment | File | Size | Author |
|---|---|---|---|
| pathrules_drush.patch | 416 bytes | cleaver |
Comments
Comment #1
joshuajabbour commentedThis 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...
Comment #2
jemond commentedI can confirm this works.
Comment #3
cleaver commentedI 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 :)
Comment #4
paranojik commentedCommited to 6.x-1.x. Thanks!