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've read all the references regarding PHP fatal errors with these functions. I even attempted to apply the following suggestion to our .htaccess file: http://drupal.org/node/263730. Doing so crashes the Drupal Advertisement module.
Every time I try to use create_date() in code, I get a fatal error. For example:
PHP Fatal error: Call to undefined function create_date() in /htdocs/sites/all/themes/garland/template.php on line 179
We are running PHP 5.2.3 on our development servers and PHP 5.2.6 on our production server.
Comment | File | Size | Author |
---|---|---|---|
#4 | create_date.patch | 1.49 KB | asimmonds |
Comments
Comment #1
ron_s CreditAttribution: ron_s commentedAlso I will add we do not have the Date PHP4 module enabled, since we are running such new versions of PHP. Really saw no reason we needed to do this.
Comment #2
asimmonds CreditAttribution: asimmonds commentedShould this function be date_create()?
Comment #3
ron_s CreditAttribution: ron_s commentedAh hah! Thank you very much ... that's what I get for following the instructions. :) Please correct the first example in the date/README.txt file to read:
Instead of ...
Comment #4
asimmonds CreditAttribution: asimmonds commentedAnd the patch (also fixing another occurrence of create_date())
Comment #5
KarenS CreditAttribution: KarenS commentedI missed the fact that the documentation had that transposition. Fix committed to both 5.x and 6.x. Thanks!
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.