anticrash Posted September 3, 2008 Posted September 3, 2008 Hey, I need help with an issue that just recently popped up out of nowhere. The site I am working on no longer allows user registration. I don't know how it occurred, as I haven't made any significant edits as of late, so it must have happened a while ago, which makes the cause of the problem pretty much impossible to trace. We get the following error: Fatal error: Call to undefined function: tep_date_raw() in /home/**omitted**/html/create_account.php on line 80 From what I can tell, the create_account.php file is using tep_date_raw($dob) for the Date of Birth field, but for some reason, the tep_date_raw() function is missing so the process fails. I've been browsing the forums all day and have found similar fatal errors, but nothing relevant to the issue I am experiencing. Can anyone tell me where I can find the source date_raw function, or if this is a known issue and if so, how can I fix it? Thank you in advance for any help.
satish Posted September 3, 2008 Posted September 3, 2008 the date functions are in includes/functions/general.php function tep_date_long($raw_date) is there that should have been called. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
germ Posted September 3, 2008 Posted September 3, 2008 In my shop it's defined at the top of /includes/languages/english.php thusly: //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
anticrash Posted September 3, 2008 Author Posted September 3, 2008 Hey guys! Thanks a ton for the quick responses! Your suggestions got me digging and I managed to figure out what was going on and made the appropriate edits to solve the problem. Thanks again!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.