Errors during install illegal operation

jaks1970 - January 27, 2008 - 21:40
Project:Yet Another Gallery Module
Version:5.x-1.0-alpha2
Component:Installation
Category:bug report
Priority:critical
Assigned:Omar
Status:closed
Description

I received the following errors during install. Not sure what the problem is. This was a fresh install of Drupal 5.6. All required modules were installed including image api which missed from the list of required modules.

Here is everything that happened during install:

* Created field Image.
* There are no fields configured for this content type.
* The content fields table content_type_gallery has been created.
* The configuration options have been saved.
* An illegal choice has been detected. Please contact the site administrator.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/mysite/public_html/community/sites/all/modules/cck/content_admin.inc on line 890.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/mysite/public_html/community/sites/all/modules/cck/content_admin.inc on line 891.

#1

Omar - January 28, 2008 - 08:23
Component:Miscellaneous» Installation
Assigned to:Anonymous» Omar

Apparently, the creation of content_type_image failed, thus I suggest you make sure you do not have image module installed.

#2

tonino66 - January 28, 2008 - 08:41

I received also this error on a fresh Drupal installation. The content_type_image was created but the Display options (Label:Above/Teaser:Default/Full:Default) was not created.

#3

jaks1970 - January 28, 2008 - 17:49

The image module was not installed. I tried uninstalling and reinstalling but now I get the following errors.

user warning: Unknown column 'node_data_field_image.field_image_fid' in 'field list' query: SELECT node.nid, node.sticky AS node_sticky, node.created AS node_created_created, node.title AS node_title, node.changed AS node_changed, users.name AS users_name, users.uid AS users_uid, node_data_field_image.field_image_fid AS node_data_field_image_field_image_fid, yagm.nid AS yagm_children_count, node.type AS yagm_type FROM node node LEFT JOIN relativity relativity ON node.nid = relativity.nid INNER JOIN users users ON node.uid = users.uid LEFT JOIN relativity yagm ON relativity.parent_nid = yagm.nid WHERE (node.status = '1') AND (node.type IN ('gallery','image')) AND (relativity.parent_nid = 7) ORDER BY node_sticky DESC, node_created_created DESC LIMIT 0, 5 in /home/mysite/public_html/community/includes/database.mysql.inc on line 172.

#4

Kripsy - February 9, 2008 - 07:51

I get the exact same problem. I have never had Image module installed on my site.

#5

Sara Adams - February 11, 2008 - 21:23

Re #3

I had a similar error. I found out why it occurred, and how to fix it. Maybe your problems are related.

I have imagefield installed, and created a field called "image". I used this field in a view.
Later I deleted the field "image". In the view the field wasn't visible anymore, but it seems it was still stored in the view somewhat. But because it wasn't visible in the GUI, you couldn't delete it there. Probably you could mess with the mysql database. I chose a "safer" option:
Instead, I created a new view, which had all the same properties as the previous one. The new view doesn't have a reference to the deleted field "image" anymore, though. So the warning doesn't show up anymore. After deleting the old view, you can rename the new view appropriately.

Hope this helps,

-- Sara

#6

Kripsy - February 13, 2008 - 08:52

I just tried this on a fresh Drupal install and it failed with the same error message. I have no idea what the problem could be.

#7

vitvik - February 28, 2008 - 07:41

I have the same problem....

To: Sara Adams, could you please be more detailed in your instructions?

#8

Sara Adams - February 28, 2008 - 09:49

Hm, thought I had given a quite detailed description before. Here we go again:

1. Disclaimer: I wasn't working on a fresh install, so I only had a similar situation as in that the error message was the same as #3 pasted. I tracked down what caused the error in my case, and this might help you with your error. I'm not claiming my solution will help you.

2. This is what caused the problem:
a) I installed imagefield and created a field called image.
b) I installed views and created a view that used the field image.
c) I deleted the field called image.
d) The error message occurred.

3. This is how I solved the problem:
a) I deleted the view that still used the (now deleted) field called image.
b) I created a new view with the same settings as before, but there was no "shadow" of the deleted field image in that view anymore.

In essence, I think the problem might be caused by creating a field, using it somewhere else, then deleting the field. References to that field don't seem to be removed in every case. What made it more confusing in my case is that the field wasn't visible anymore, although there was a reference to the field. I'm thinking you might be having similar problems.
But if you're working on a fresh install and haven't really done anything with the module yet, that seems improbable.

Hope this helps,

-- Sara

#9

vitvik - February 29, 2008 - 02:01

Thank you.. will try...

#10

vitvik - February 29, 2008 - 03:22

I've added image field named "image" to the content type "Image" from YAGM... it started to work for me...

Vit

#11

Omar - March 12, 2008 - 01:26
Version:5.x-1.x-dev» 5.x-1.0-alpha1
Status:active» fixed

Fixed in Alpha1.

#12

Omar - March 12, 2008 - 01:45
Version:5.x-1.0-alpha1» 5.x-1.0-alpha2

#13

Anonymous (not verified) - March 26, 2008 - 01:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.