Closed (fixed)
Project:
Pathauto
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
13 Jul 2010 at 09:54 UTC
Updated:
11 Oct 2010 at 19:00 UTC
Hi guys,
You generate a pattern depending on the language. However, when we do not have any language feature installed (other than the base locale) then, in some circumstances, the system generates an E_NOTICE on node creation.
See attached patch.
Thank you.
Alexis
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto-1.x-language_notice-6.x.patch | 1.01 KB | AlexisWilke |
Comments
Comment #2
dave reidI can't duplicate any E_NOTICE with the current code. In what case is $form['language'] defined but neither $form['language']['#value'] nor $form['language']['#default_value']? Is some other module altering this form element before pathauto?
Comment #3
AlexisWilke commentedIt specifically happens when I use drupal_execute(). I'm not too sure why drupal_execute() would not work the same way as the other calls. The same code should be hit...
node_form() executes this loop that adds language every time and with a #value (no default...)
Thus I do not have any good explanation why that would be happening! (other than, it must not be going through that function at all when just calling drupal_execute().)
Thank you.
Alexis Wilke
Comment #4
dave reidCan you post the code you're using? Still marking as needs info since we don't really know what the problem is or how to fix it.
Comment #5
dave reidMarking as fixed due to lack of feedback.
Comment #6
AlexisWilke commentedNo problem, I think that's my specialized use of the module that generates the problem. Thank you. Alexis
Comment #7
dave reidCool. Well thanks for the initial bug report Alexis. Let us know if you encounter anything else.