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

Rosamunda’s picture

Plus 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

Rosamunda’s picture

I´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

Rosamunda’s picture

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.

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));
}

romca’s picture

Hello,

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

romca’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)