Life in the php5.4 lane...

So I went to my hosting company, spun up a new server so I could clone an existing site and started getting things situated. Then boom bash boom. Errors coming up all over the place.  As it turns out the new servers have php5.4 rather than php5.3.something-er-other.  When the announcement came out that 5.3.6 would be facing end of life cycle I figured there may be some new problems as a result. Sure 'nuff, there they are. Here are some notes about what I've run into and solutions I've found (hopefully).

 

This was pretty easily solved with the patch in the link.

ERRORS/WARNINGS:

    Strict warning: Declaration of views_handler_filter_user_relationships_type::value_submit() should be compatible with views_handler_filter_in_operator::value_submit($form, &$form_state) in _registry_check_code() (line 3160 of /home/mydomain/public_html/includes/bootstrap.inc).
    Strict warning: Declaration of userpoints_views_handler_field_category::init() should be compatible with views_handler_field::init(&$view, &$options) in _registry_check_code() (line 3160 of /home/mydomain/public_html/includes/bootstrap.inc).
    Strict warning: Declaration of userpoints_views_handler_field_category::pre_render() should be compatible with views_handler_field::pre_render(&$values) in _registry_check_code() (line 3160 of /home/mydomain/public_html/includes/bootstrap.inc).

SOLUTION:

https://drupal.org/node/1551792

The patch correctly resolves the strict warning by setting the signature to match that in the class being extended.


So glad I did not encounter this problem a year ago, when it first reared its ugly head. The fix had to be applied to D8 and THEN backported to D7 in order to fix it. To me that is just plain crazy. As someone pointed out in the comments thread there were more sites using views in D7 and D8 was a ways out.  The wait for 8 put a lot of people in a bad place with this problem. I don't think it was a good call.

ERRORS/WARNINGS:

Notice: Array to string conversion in views_plugin_cache->gather_headers() (line 206 of /home/fisheos/public_html/sites/all/modules/views/plugins/views_plugin_cache.inc).

SOLUTION:

https://drupal.org/node/1511396

Views - "php 5.4 and "Notice: Array to string conversion"