Closed (fixed)
Project:
E-Journal
Version:
4.6.x-1.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2006 at 18:33 UTC
Updated:
31 Mar 2006 at 12:30 UTC
This is an error that I got when I wanted to edit a page that it is already added to the "working" area (I wanted to move it to the current issue)
Type: php
Date: Friday, February 17, 2006 - 18:24
User: webmaster
Location: /newspaper/node/1/edit
Message in_array(): Wrong datatype for second argument in public_html/newspaper/modules/ejournal/ejournal.module on line 205.
Severity: error
Hostname 200.122.15.108
Thanks for yor help!
Rosamunda :-)
Comments
Comment #1
Rosamunda commentedPlus that I´ve got this comment:
"This content has been modified by another user, unable to save changes."
But there´s my very own page that I´m trying to change...
Thanks again!!
Rosamunda
Comment #2
Rosamunda commentedI´ve created a test account with all the capabilities of the editor, author, etc....
user: demo
Pass: demo
Just in case this could be of any help to find the problem/bug/misconfiguration...
Thanks again!!
Rosamunda
Comment #3
Rosamunda commentedWhen you click at "users" link, this error appears:
warning: Invalid argument supplied for foreach() in /home/consorci/public_html/newspaper/includes/common.inc on line 1260.
includes/common.inc:
function form_select($title, $name, $value, $options, $description = NULL, $extra = 0, $multiple = FALSE, $required = FALSE) {
$select = '';
foreach ($options as $key => $choice) { <<===== this is the 1260 LINE =======
if (is_array($choice)) {
$select .= '';
foreach ($choice as $key => $choice) {
$select .= ''. check_plain($choice) .'';
}
$select .= '';
}
else {
$select .= ''. check_plain($choice) .'';
}
}
return theme('form_element', $title, '
'. $select .'
', $description, 'edit-'. $name, $required, _form_get_error($name));
}
Comment #4
romca commentedHello,
there were a bug ignoring all operations inside admin/ejournal/working path - fixed now (in CVS)
the described bug is because ejournal.expects taxonomy in the place, I fixed also this, but had better make some sanity checking
the other errors :
"This content has been modified by another user, unable to save
changes." -- this is normal behaviour of Drupal when something goes wrong and you try to edit the same page, reload works
When you click at "users" link, this error appears
warning: Invalid argument supplied for foreach() in
/home/consorci/public_html/newspaper/includes/common.inc on line 1260.
-- don't know, probably other module, there is no link "users" in ejournal.module
thanks for the bug report
romca
Comment #5
romca commentedComment #6
(not verified) commented