PHP 5.3 Issues


Issues related to transitioning to PHP 5.3, particularly module compatibility

Compatibility with Calendar and Date modules

After the upgrade to PHP 5.3 I got a bunch of errors similar to this:

warning: Attempt to modify property of non-object in E:\xampp\htdocs\amater\sites\all\modules\calendar\includes\calendar_plugin_display_page.inc on line 47.

Following instructions at http://drupal.org/node/613528 I patched the calendar module with calendar-6.x-2.2-613528-5.patch and upgraded the date module to the latest version.  I then got this error

warning: Parameter 1 to profile_load_profile() expected to be a reference, value given in /cms/includes/module.inc on line 462.


I Found this http://drupal.org/node/679404 saying it's related to the Google Analytics module. 


I disabled the module since I don't use that module and got this error once:

  • warning: unlink(sites/default/files/googleanalytics/ga.js) [function.unlink]: Permission denied in /cms/includes/file.inc on line 471.
  • warning: rmdir(sites/default/files/googleanalytics) [function.rmdir]: Directory not empty in /cms/sites/all/modules/google_analytics/googleanalytics.install on line 51.

I went to the homepage and no longer get any errors now.