I am having difficulty uploading the Date module. Whenever I unpack and install the date file into my modules folder my site crashes and I receive this error:

Fatal error: Call to undefined function: date_default_timezone_name() in /home/digital9/public_html/drupal/modules/date/date_popup/date_popup.module on line 91

I also have the same error when I try to upload version 5.x.1.8

drupal 5.7
php 4.4.8

Thanks.

Comments

KarenS’s picture

Status: Active » Postponed (maintainer needs more info)

The first thing to do is to upgrade to the latest -dev version of the module. If you still have problems after that, please change the version on this issue to the -dev version and describe the exact steps you took to get the error (I don't get this error so I need more info). Also let me know if you're using the Calendar module, too, or just the Date module.

npawl’s picture

Thanks, I just tried to upload 5.x-2.x -dev and received this error.

Fatal error: Call to undefined function: date_default_timezone_name() in /home/digital9/public_html/drupal/modules/date/date_popup/date_popup.module on line 125

I had the calendar module installed at one point and thought there might be some problem there so I removed it completely and still have the same error.

npawl’s picture

Version: 5.x-2.0-rc » 5.x-2.x-dev

I just tried to upload 5.x-2.x -dev and received this error.

Fatal error: Call to undefined function: date_default_timezone_name() in /home/digital9/public_html/drupal/modules/date/date_popup/date_popup.module on line 125

I had the calendar module installed at one point and thought there might be some problem there so I removed it completely and still have the same error.

drupal 5.7
php 4.4.8

Thanks.

KarenS’s picture

Title: Cannot upload module » Cannot upgrade module

Is this a fresh install or an upgrade from an earlier version? It's not completely clear. The problem is not the upload but either the installation or the upgrade.

If this is an upgrade, what version were you upgrading from? It sounds like you've jumped back and forth between the 5.2 and 5.1 version on the same site. If so and this was an upgrade instead of a fresh install, many things could be messed up. I assume you have a backup of whatever you started with. If so, go back to that, get the very latest -dev code and try again.

KarenS’s picture

Status: Postponed (maintainer needs more info) » Fixed

I've reworked all the update and installation files to try to be sure all dependent files get included and modules get enabled. I'm pretty sure I've caught the install/upgrade problems reporting missing or non-existant functions.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.