Hi

I am getting an fatal error when i try and provide an taxonomy argument.

To duplicate the error:

1. Use Taxonomy: Term ID as argument.
2. Provide default argument -> Taxonomy Term ID from URL
3. Validator options -> "Any Vocabularies" : Argument type: Term ID.

This provides a critical error:

An error occurred at /admin/build/views/ajax/preview/taxonomy_visa_terms.

Error Description: 
( ! ) Fatal error: Class 'views_plugin_argument_default' not found in \sites\all\modules\views\modules\taxonomy\views_plugin_argument_default_taxonomy_tid.inc on line 8
Call Stack
#TimeMemoryFunctionLocation
10.000474544{main}(  )..\index.php:0
20.296818305792menu_execute_active_handler(  )..\index.php:25
30.317619988656call_user_func_array
(  )..\menu.inc:348
40.317619988784views_ui_preview(  )..\menu.inc:0
50.538225652704view->preview(  )..\admin.inc:384
60.538725653328views_plugin_display->preview(  )..\view.inc:945
70.538725653328view->render(  )..\views_plugin_display.inc:1880
80.538725655880view->execute(  )..\view.inc:806
90.538825660136view->build(  )..\view.inc:686
100.804126691976view->_build_arguments(  )..\view.inc:605
110.804226694816views_handler_argument->get_default_argument(  )..\view.inc:465
120.804326694816views_get_plugin(  )..\views_handler_argument.inc:445
130.804326694816_views_create_handler(  )..\views.module:705
140.804326695184views_include_handler(  )..\handlers.inc:17
150.807726724776require_once( '\sites\all\modules\views\modules\taxonomy\views_plugin_argument_default_taxonomy_tid.inc' )..\handlers.inc:77

Hope this helps.

CommentFileSizeAuthor
#5 770006.patch425 bytesmacdee
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Does views_plugin_argument_default.inc exist in your plugins directory?

grey_’s picture

Yes it does.

Version:
$Id: views_plugin_argument_default.inc,v 1.2 2009/06/01 23:34:55 merlinofchaos Exp $

macdee’s picture

Please see my comment #1 in #754294: foreach warning produced in views_plugin_argument_default_taxonomy_tid.inc for what I did to correct the views_plugin_argument_default not found error.

dawehner’s picture

Can you make a patch out of it?

Why the hack did it worked then here on 3.x?

macdee’s picture

FileSize
425 bytes

This is a patch for the Apr. 10, 2010 6.x-2.x-dev version of taxonomy.views.inc.

dagmar’s picture

Status: Active » Needs review

Mmm, I don't know if this patch is the way to fix this. Anyway, changing status.

elbym’s picture

Came across the same error in 6.x-2.10 and the patch from #5 did it for me.
I used the same view setup:

  1. Use Taxonomy: Term ID as argument.
  2. Provide default argument -> Taxonomy Term ID from URL
  3. Validator options -> "Any Vocabularies" : Argument type: Term ID.
FiNeX’s picture

I've the same error on the view preview and in the home page with views 6.x-2.10 using the following settings:

  • Views type: term
  • Arguments: Taxonomy: Term ID
  • Provide default argument: Taxonomy Term ID from URL
  • Validator: Basic validation

The configuration it's like http://drupal.org/node/770006#comment-2855010 but with a different validator option. I've no filter and only one field (term description).

I've applied the patch http://drupal.org/files/issues/770006.patch and now the error message has disappeared.

mattiasj’s picture

I had exactly the same issue as #8, the patch sorted it out.

pheraph’s picture

Version: 6.x-2.9 » 6.x-2.10

Bug appeared here with 6.x-2.10, but could be fixed with patch in #5.

FiNeX’s picture

I hope the patch will be applied soon :-)

uzmankodra’s picture

i take this bellow error messages when i use the taxonomy Term ID (with depth)
Please help me. What should i do for this?

Fatal error: Class 'views_plugin_argument_default' not found in /home/homedir/public_html/sites/all/modules/views/modules/taxonomy/views_plugin_argument_default_taxonomy_tid.inc on line 8

macdee’s picture

@uzmankodra: Please try applying the patch in #5 above to the file taxonomy.views.inc and then report back here if it worked or not.

kostajh’s picture

Patch in #5 worked for me as well.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to all branches. Thanks!

uzmankodra’s picture

i dont know make a patch. i use views 6.x-2.10 Can i take the "taxonomy.views.inc" file with pacth from someone ?

uzmankodra’s picture

can you upload your taxonomy.views.inc file with patch?

dawehner’s picture

http://drupal.org/patch/apply

Otherwise, take the file from the dev release.

uzmankodra’s picture

dereine, my english is not very good. In this respect i want to only that file with patch. Can you write here that code in taxonomy.views.inc

merlinofchaos’s picture

No, we are not a service to provide patches for you. If you cannot follow the procedures outlined, then you will simply have to wait for the next release.

Status: Fixed » Closed (fixed)

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

garbo’s picture

Patch at #5 worked for me too!

nguyenbn’s picture

Patch #5 worked for me as well.

It took me awhile to figure out where the file was...so, hopefully, this helps someone out..

1. Go to "/sites/all/modules/views/modules/taxonomy.views.inc"
2. Follow instructions on http://drupal.org/node/534548 to apply patches manually

essbee’s picture

Yep #5 saved me after WSOD for whole site including admin. Occurred after saving view with similar settings to previous responses

MichaelP’s picture

Patch at #5, (applied from modules/views/modules directory) sorted me. Tks.

dharmendra singh’s picture

I find file and going to apply patch #5 but it is already applied, still it gives error,,,Fatal error: Class 'views_plugin_argument_default' not found in /home/chepde/public_html/sites/all/modules/global_filter/views/global_filter_plugin_argument_default_global_filter_view.inc on line 12