Community

PHP 5.4 broke site [never mind - views issue]

Hi all,

We are running a Drupal 6 installation (everything up-to-date, including modules) with 1&1 and they recently requested that customers upgrade from PHP 4 to PHP 5.4. When I did this, a ton of stuff broke and we now receive 'strict warnings' all the time - have a look at the front page:

www.

We use views and a couple of other custom modules - and while it appears that I get most of the errors from 'Views' I also seem to get errors from other modules, e.g. 'Subscriptions'.

Any ideas how we can solve this?

Thanks so much

Comments

the exact same problem here

Hi kga1978... I am experiencing the exact same problem. I have my hosting with 1&1 as well and switched to PHP 5.4.

Now, I am getting the following error.

strict warning: Non-static method view::load() should not be called statically in /mywebsite/sites/all/modules/views/views.module on line 906.
strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /mywebsite/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /mywebsite/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
warning: Creating default object from empty value in /mywebsite/sites/all/modules/date/date/date.module on line 662.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Non-static method view::load() should not be called statically in /mywebsite/sites/all/modules/views/views.module on line 906.
warning: Creating default object from empty value in /mywebsite/sites/all/modules/date/date/date.module on line 662.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.
strict warning: Only variables should be passed by reference in /mywebsite/sites/all/modules/date/date_api.module on line 866.

Any suggestions how to fix this would be greatly appreciated!

Thanks!

nobody click here