Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
KarenS CreditAttribution: KarenS commentedThe 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.
Comment #2
npawl CreditAttribution: npawl commentedThanks, 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.
Comment #3
npawl CreditAttribution: npawl commentedI 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.
Comment #4
KarenS CreditAttribution: KarenS commentedIs 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.
Comment #5
KarenS CreditAttribution: KarenS commentedI'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.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.