ggrant3 Posted March 23, 2011 Share Posted March 23, 2011 Okay I have had an issue in the past copying a site to another domain and it turned out that (with GoDaddy) you need to have "Shared" hosting not "Grid" hosting. So today I attempted to transform another on of my websites from the older files to a OSC style setup. So I backed up a copy of one of my currently running OSC sites (files & database) and went through the steps of uploading the files and database to the newer domain. I then went in and updated the info in the catalog/includes/configure.php file and admin/includes/configure.php files as well as the site specific info in my .htaccess file. Now when I went to the new site to check things I get the following: Fatal error: Call to undefined function: date_default_timezone_set() in /home/content/mysiteinfo/html/includes/application_top.php on line 2 I thought this was weird, but shrugged it off and just went to the includes/application_top.php file and looked at line 2 and it is just the timezone setting script. So I figured as a temporary fix I would just delete that line and saved the file and checked the site again. Then I got an error related to my Ultimate SEO URLs, saying one of the files (I know for a fact I have never been) in was causing a fatal error. It turned into a "chasing my tail" type of situation in which every time I fixed something, something else was causing a problem. Again thinking this was odd, I started thinking it must be something on the hosting side of things. Now I have two other stores on GoDaddy running practically the same OSC setup (just different items) and those two are fine, but when I go into this new domain hosting account I can't get the site to work. As one final test I took a copy of the exact files I was uploading to the new site and installed them into a new directory on one of the other stores and it works fine. But yet GoDaddy is saying its a problem with the files (a scripting error), but I told them the exact files are working on a separate hosting account. All sites have the same type of hosting and the same version of php. Any ideas what could be causing the problem? Link to comment Share on other sites More sharing options...
npn2531 Posted March 24, 2011 Share Posted March 24, 2011 You are having conflicts with different versions of PHP. It's not an OSCommerce issue, as it's happening at the top of application_top.php before the OSCommerce programming kicks in. Google 'date_default_timezone_set()' and verify the PHP versions that function is compatible with and then check PHP version used on your GOdaddy account. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
ggrant3 Posted March 24, 2011 Author Share Posted March 24, 2011 You are having conflicts with different versions of PHP. It's not an OSCommerce issue, as it's happening at the top of application_top.php before the OSCommerce programming kicks in. Google 'date_default_timezone_set()' and verify the PHP versions that function is compatible with and then check PHP version used on your GOdaddy account. I knew it was something with the hosting setup, but GoDaddy wasn't listening. Thank you for your help, it gave me the information I needed to have them look a little deeper into the issue. It turns out that there is a "File Extensions" section in GoDaddy and they had me go and change that so the site recognized php 5. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.