Closed (fixed)
Project:
Journal
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Feb 2008 at 01:36 UTC
Updated:
15 Oct 2008 at 13:42 UTC
Jump to comment: Most recent file
When performing .../update.php, during the stage of "select updates" (in .../update.php?op=selection), I get 2 warnings:
warning: in_array() [function.in-array]: Wrong datatype for second argument in .../sites/all/modules/journal/journal.module on line 72.
warning: array_unshift() [function.array-unshift]: The first argument should be an array in .../sites/all/modules/journal/journal.module on line 85.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | journal-DRUPAL-6--1.patch | 866 bytes | sun |
| #4 | journal-DRUPAL-6--1.submit-warning.patch | 1.61 KB | sun |
| #1 | journal.update.patch | 1.2 KB | sun |
Comments
Comment #1
sunThanks, committed attached patch to fix this bug.
Comment #2
drdrup commentedI've tried the patch. The problem is gone.
Thanks!!
Comment #3
drdrup commented(Sorry to open this issue again, but I thought it is better than opening a new one)
I just installed "CSS injector" module, and those same 2 warnings appear.
Does it mean that more entries have to be added to the journal_skip_form?
What special about the CSS injector form that cause this problem? It looks like any other module. So why shouldn't it be "worthy" of a journal entry?
or is there something else that "journal" should check, or adjust for?
Comment #4
sunI've reverted the previous fix and implemented a real one.
Comment #5
drdrup commentedI applied patch #4.
When going to update.php (the second step)
I got:
Comment #6
sunSorry, my fault.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #8
LindenLion commentedHi, just installed journal and logged some journal entries. No error message, till: I went to /admin/reports/journal to view my journal entries, but found:
warning: array_shift() [function.array-shift]: The argument should be an array in /home/.saul/them/them.lindenlion.net/sites/all/modules/journal/journal.module on line 258.
Hope you can fix it :-D
Comment #9
edward.peters commentedSame issue for me. Can someone help please?
Comment #10
sunI am unable to replicate this bug using the latest development snapshot. Could you please verify?
Comment #11
edward.peters commentedI have tested latest dev version and all works brilliantly. Thanks so much for fixing this!
Comment #12
sunComment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #14
okeedoak commentedOn a new D6 site no problems. On a D5 site upgraded to D6 even after disabling, uninstalling, and re-enabling the module on every page there is an error:
warning: array_shift() [function.array-shift]: The argument should be an array in .../journal/journal.module on line 244.On /admin/reports/journal there are two errors of the same array_shift problem: the original line 244 and line 258.
Comment #15
sunPlease update to the latest development snapshot and report back whether you still encounter the error messages. If not, I'll release a new stable afterwards.
Comment #16
okeedoak commentedYes, the latest dev version fixes both error messages. Thank you. Time for a new release?
Comment #17
okeedoak commentedComment #18
sunA new release is available now.