Hello friends,

I just tried to move my side from localhost to my live server. These are the steps I took:

1. Uploaded all files to server
2. Changed sites/default/settings.php file (although, in the db_url, I had to change from mysqli to mysql...i'll explain more in a bit)
3. Exported DB from localhost
4. Imported into live host

as far as I understood, I'm now supposed to be able to just navigate to the root dir and my site should be up and running. Here's what I got. The first time, I was told that mysqli wasn't enabled, so I changed it to mysql. As soon as I did this, I got this:

Fatal error: Call to undefined function: date_format() in /nfs/c03/h03/mnt/54902/domains/sevateams.com/html/testing/modules/acquia/date/includes/date_api_argument_handler.inc on line 128

Is this a permissions problem?
Is this because I changed to mysql from mysqli?

Thanks for taking look.



lexpresso’s picture

It had everything to do with PHP version, which apparently needs to be 5 for Drupal 6.8.

wesku’s picture

I had the same problem. It seems CentOS 5.2 default PHP is 5.1.6. Function date_format is PHP 5 >= 5.2.0.

videographics’s picture

My site was just moved to a new server and it absolutely will not work with the date module installed. The new server is running PHP 5.2.8 and MySQL version 5.0.67. I'm totally stuck. As anyone can tell from the usage statistics, the date module is pretty important. Any ideas about where to start finding a solution for this?


UNarmed’s picture

I had the exact same problem with the ImageAPI module and i had to end up removing the module =/ now im siting the with problem that when every i want to edit or create new content i end up at a blank page and then i have to click refresh to get back to my site.

arpieb’s picture

According to the admin panel I'm running "CentOS 5 with Plesk 9 (64-bit)" and PHP version is 5.1.6. According to my PHP docs, date_format() should be available as of 5.1. The error I'm getting is:

PHP Fatal error: Call to undefined function date_format() in /var/www/vhosts/isettasrus.com/httpdocs/isettasrus/sites/all/modules/date/date_api.module on line 2436

I'm *trying* to run D6.14 against a MySQL database dist 5.0.45.

Oddly enough, this actually ran fine under my Dev Hosting account with 1&1, I just needed more bandwidth and memory to implement some of the image handling features which is the only reason I bumped my client to the VPS account.

Do I need to upgrade my PHP to a newer version to get it to work?



"Nothing is impossible - it just hasn't been done yet."
Phase2 Technology

meatron’s picture

Same message... Did you manage to solve it?



mafet’s picture

Yes upgrade had the same problem... best to to a php upgrade

selvakumar’s picture

Actually PHP Version is 5.1.4. Function date_format() does not exist in this version.
The function is available as of PHP 5.2.0

Steps to Resolve:

Check Status report
Should enable Date PHP 4 module option in admin/build/modules section

elvis2’s picture

Once you upgrade PHP to 5.2 make sure to restart apache...