Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | 770006.patch | 425 bytes | macdee |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedDoes views_plugin_argument_default.inc exist in your plugins directory?
Comment #2
grey_ CreditAttribution: grey_ commentedYes it does.
Version:
$Id: views_plugin_argument_default.inc,v 1.2 2009/06/01 23:34:55 merlinofchaos Exp $
Comment #3
macdee CreditAttribution: macdee commentedPlease 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.
Comment #4
dawehnerCan you make a patch out of it?
Why the hack did it worked then here on 3.x?
Comment #5
macdee CreditAttribution: macdee commentedThis is a patch for the Apr. 10, 2010 6.x-2.x-dev version of taxonomy.views.inc.
Comment #6
dagmarMmm, I don't know if this patch is the way to fix this. Anyway, changing status.
Comment #7
elbym CreditAttribution: elbym commentedCame across the same error in 6.x-2.10 and the patch from #5 did it for me.
I used the same view setup:
Comment #8
FiNeX CreditAttribution: FiNeX commentedI've the same error on the view preview and in the home page with views 6.x-2.10 using the following settings:
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.
Comment #9
mattiasj CreditAttribution: mattiasj commentedI had exactly the same issue as #8, the patch sorted it out.
Comment #10
pheraph CreditAttribution: pheraph commentedBug appeared here with 6.x-2.10, but could be fixed with patch in #5.
Comment #11
FiNeX CreditAttribution: FiNeX commentedI hope the patch will be applied soon :-)
Comment #12
uzmankodra CreditAttribution: uzmankodra commentedi 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
Comment #13
macdee CreditAttribution: macdee commented@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.
Comment #14
kostajh CreditAttribution: kostajh commentedPatch in #5 worked for me as well.
Comment #15
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to all branches. Thanks!
Comment #16
uzmankodra CreditAttribution: uzmankodra commentedi dont know make a patch. i use views 6.x-2.10 Can i take the "taxonomy.views.inc" file with pacth from someone ?
Comment #17
uzmankodra CreditAttribution: uzmankodra commentedcan you upload your taxonomy.views.inc file with patch?
Comment #18
dawehnerhttp://drupal.org/patch/apply
Otherwise, take the file from the dev release.
Comment #19
uzmankodra CreditAttribution: uzmankodra commenteddereine, 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
Comment #20
merlinofchaos CreditAttribution: merlinofchaos commentedNo, 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.
Comment #22
garbo CreditAttribution: garbo commentedPatch at #5 worked for me too!
Comment #23
nguyenbn CreditAttribution: nguyenbn commentedPatch #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
Comment #24
essbee CreditAttribution: essbee commentedYep #5 saved me after WSOD for whole site including admin. Occurred after saving view with similar settings to previous responses
Comment #25
MichaelP CreditAttribution: MichaelP commentedPatch at #5, (applied from modules/views/modules directory) sorted me. Tks.
Comment #26
dharmendra singh CreditAttribution: dharmendra singh commentedI 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