Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.16
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2012 at 18:59 UTC
Updated:
4 Dec 2012 at 11:05 UTC
As the title says, I began receiving that warning very recently for a site I manage. I'm not an expert with drupal by any means, but I am a programmer so I understand what it's saying, however I don't believe anything was changed to start this.
I'm also receiving "strict warning: Declaration of views_handler_field_user::init()" and as well for other methods withing the handler and plugin.
Any help would be appreciated. Thanks!
Comments
Comment #1
dawehnerYou will find issues for all of your messages on if you use the issue search mechanism.
http://drupal.org/project/issues/views?text=strict+warning%3A+Non-static...
Comment #2
Pocket324 commentedI did a search before posting, and read both of those threads, but had some difficulty understanding where to go/what is exactly going on.
So basically the only fix is just hide the messages? And why would this have just started now instead of happening the entire time?
I'm a student running the website for a lab on campus and have no prior experience with Drupal so I'm not quite sure of the formatting of the patches in the other posts, which is what made me hesitant about using them. Also I see "failed testing" a lot, and not quite sure what that means.
Comment #3
dianacastillo commentedI am getting the same message when I set up a copy of a live site where it does not have those messages. These are the messages I get. if I set error_reporting(0) in settings.php they go away, but then the view module does not work. any help?
strict warning: Non-static method view::load() should not be called statically in C:\xampp\htdocs\sites\all\modules\views\views.module on line 879.
strict warning: Declaration of views_handler_field_user::init() should be compatible with views_handler::init(&$view, $options) in C:\xampp\htdocs\sites\all\modules\views\modules\user\views_handler_field_user.inc on line 48.
strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in C:\xampp\htdocs\sites\all\modules\views\handlers\views_handler_filter.inc on line 589.
strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in C:\xampp\htdocs\sites\all\modules\views\handlers\views_handler_filter.inc on line 589.
strict warning: Declaration of views_handler_filter_boolean_operator::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in C:\xampp\htdocs\sites\all\modules\views\handlers\views_handler_filter_boolean_operator.inc on line 149.
strict warning: Non-static method view::load() should not be called statically in C:\xampp\htdocs\sites\all\modules\views\views.module on line 879.
strict warning: Declaration of views_content_plugin_display_panel_pane::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in C:\xampp\htdocs\sites\all\modules\ctools\views_content\plugins\views\views_content_plugin_display_panel_pane.inc on line 403.
Comment #4
dianacastillo commentedi have read that there is a patch to fix this http://drupal.org/files/views-465332-11-d6-2x.patch but I cant pathc it when I try to it just hangs there. Can I uninstall views and install it again, or what should i do . how do i upgrade views to the latest version?
Comment #5
camil.bancioiu commentedIf possible, replace the file you modified with the original one, just so you can bring your site back. The patch seems simple, it might be better if you simply do it by hand (were you using the "patch" command?). Here's how to understand the contents of the patch: http://en.wikipedia.org/wiki/Diff#Unified_format . Basically, you only have to add the "public static" keywords to those lines.
How to update any module: http://drupal.org/node/672472