warning: in_array() [function.in-array]: Wrong datatype for second argument in xmlsitemap.admin.inc on line 822.
warning: array_unshift() [function.array-unshift]: The first argument should be an array in xmlsitemap.admin.inc on line 823.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | menu.patch | 632 bytes | altavis |
| #1 | xmlsitemap.admin_.inc-D6.diff | 545 bytes | aexchecker |
| xmlsitemap.admin_.inc-D6.diff | 527 bytes | aexchecker |
Comments
Comment #1
aexchecker commentedIt better
Comment #2
dave reidIs something altering this form to
unset($form['#submit'])? Because that is wrong. If anything a module should be setting $form['#submit'] = array();Comment #3
aexchecker commentedIf I'm not mistaken because I`m not a native speaker.
My fix mean to set
$form['#submit'] = array();if in$formarray absent key#submit, and if$form['#submit']isn`t array.And.
This line
!empty($form['#submit']) && is_array($form['#submit']) or $form['#submit'] = array();we can rewrite in a different way likebut I use the first variant because it is shorter.
Comment #4
Anonymous (not verified) commentedBut why isn't it set as an array already? It should be set before xmlsitemap see's it. In other words, there is another module that you have enabled that is doing the wrong thing.
Comment #5
dave reidThis is a bug in some other module causing $form['#submit'] to be unset instead of setting it to an empty array. That logic is very flawed and needs to be fixed in the offending module, not xmlsitemap.
Comment #6
dave reidMarking as fixed since it's not a problem with XML sitemap.
Comment #8
altavis commentedI can reproduce this bug on D6.19 (almost) clean install by turning off Menu module.
Comment #9
dave reidCan be reproduced by submitting what form at what URL? More details please.
Comment #10
altavis commentedHi Dave!
Clean multisite D6.19.
Steps:
- disable Menu module
- enable XML sitemap 6.x-2.0-beta1, XML sitemap custom, XML sitemap engines, XML sitemap node
Now any node adding/editing brings warnings (paths node/add/* node/*/edit).
Comment #11
jibbajabba commentedI get the same warning and can confirm that turning the menu module on (I had it off previously) removes the error message.
Comment #12
esllou commentedI confirm this problem exists...I also have menu module disabled. Will this fix be committed?
Comment #13
dave reidThis has been already fixed in the most recent code, 6.x-2.x-dev, sorry I didn't come post back an update here sooner.