backdrop-contrib / footnotes

Add automatically numbered footnotes to your content.
GNU General Public License v2.0
2 stars 2 forks source link

footnotes_views: Fix PHP notices #13

Open olafgrabienski opened 5 years ago

olafgrabienski commented 5 years ago

Testing the submodule, I've noticed a lot of PHP notices in DBlog:

olafgrabienski commented 5 years ago

I'll repeat the test in a clean installation and will then also provide the PHP version.

olafgrabienski commented 5 years ago

I've tested the Footnotes Views submodule again in a quite fresh Backdrop site (PHP version 7.1.12), adding the fields Node: Body content and Node: Body footnotes to a view.

The view works, but I found some messages in the DBlog:

Warning: Declaration of footnotes_views_handler_field_body_content::init(&$view, $options) should be compatible with views_handler_field_entity::init(&$view, &$options) in require_once() (line 8 of (...)/modules/footnotes-1.x-1.x/footnotes_views/views/footnotes_views_handler_field_body_content.inc).

Warning: Declaration of footnotes_views_handler_field_body_footnotes::init(&$view, $options) should be compatible with views_handler_field_entity::init(&$view, &$options) in require_once() (line 3960 of (...)/core/includes/bootstrap.inc).

Warning: Parameter 3 to views_ui_build_form_state() expected to be a reference, value given in views_ui_ajax_form() (line 2871 of (...)/core/modules/views_ui/views_ui.admin.inc).

There are however less messages than originally reported in the issue description. I guess partly because I didn't test the teaser field - there's a separate issue about it. Hope this helps to isolate the reason for the messages.

olafgrabienski commented 5 years ago

Removing the "release blocker" tag because the basics of the Views integration work, even with the warnings, hoping that people who need Views integration will help to fix the issue.