Download & Extend

Taxonomy module - Warning: Missing argument

Project:Drupal core
Version:7.x-dev
Component:taxonomy.module
Category:bug report
Priority:major
Assigned:kitkat13
Status:closed (duplicate)

Issue Summary

hello,
same http://drupal.org/node/1559172 but in taxonomy module.

Warning: Missing argument 2 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 3 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx/www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 4 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 2 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 3 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 4 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 2 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 3 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 4 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 2 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 3 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).
Warning: Missing argument 4 for taxonomy_options_list() in taxonomy_options_list() (line 1375 of xxx//www/modules/taxonomy/taxonomy.module).

Comments

#1

Status:active» postponed (maintainer needs more info)

Please provide information of how to recreate this bug on a clean install of drupal core

#2

Assigned to:Anonymous» kitkat13
Status:postponed (maintainer needs more info)» active

A little patch ?

AttachmentSizeStatusTest resultOperations
drupal-core-taxonomy-list-warning-1559410-1.patch656 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 39,072 pass(es).View details | Re-test

#3

I have a lot of feature with taxonomy_vocabulary in .install and / or in .taxonomy.inc.

I will be back with provide information of how to recreate this bug on a clean install of drupal core soon.

#4

As posted by tecjam here http://drupal.org/node/1559258#comment-5950820 too.

Edit: There are other modules calling these hooks. For one, Entity Reference: function entityreference_options_list()
The change in api function hook_options_list($field, $instance = NULL) to function hook_options_list($field, $instance, $entity_type, $entity) needs to be implemented in modules calling this hook, or set default values.

#5

So in effect the API has changed between 7.12 and 7.14 is what you are saying.

#6

Priority:normal» major
Status:active» needs review

This is going to need to be fixed in d8 first and back ported if indeed it is an API issue - rasing priority to get some more eyes on this.

#7

Status:needs review» closed (duplicate)

This was caused by #1541792: Enable dynamic allowed list values function with additional context, and we're going to fix it over there. Closing this as a duplicate.

#8

Version:7.14» 8.x-dev
Status:closed (duplicate)» needs review

We have to check if this is first an issue in D8 to begin with - from the other issue, I was able to resolve the issue by resaving the field. So if that is the case here as well, then it shouldn't be an issue in D8. So I'm changing the version to 8.x so one of us can see if this issue is coming up or not.

#9

Status:needs review» closed (duplicate)

Sorry, didn't see the response from @webchick

#10

Version:8.x-dev» 7.x-dev
Status:closed (duplicate)» postponed

Nope, we need to know what calls taxonomy_options_list directly. That's a hook implementation not a public API.

#11

I've managed to trace the call on my installation back to entity_metadata_field_options_list on line 445 in entity/modules/callbacks.inc (part of the entity module).

It seems to be getting fixed in #1556192: Incorrect invocation of hook_options_list().

#12

Status:postponed» closed (duplicate)

So, the problem in entity API is already fixed. Core's doing nothing wrong here. I'm not sure what having this separate issue open is good for. Closing as duplicate of the other two (linked from #7 and #11).

Thanks,
-Derek