osCmax v2.5 User Manual
Results 1 to 3 of 3

error when i registrate new customer.

This is a discussion on error when i registrate new customer. within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; i get this error code. Fatal error: Call to undefined function: tep_date_raw() in /catalog/create_account.php on line 80 and on line ...

      
  1. #1
    Anonymous
    Guest


    Default error when i registrate new customer.

    i get this error code.

    Fatal error: Call to undefined function: tep_date_raw() in /catalog/create_account.php on line 80

    and on line 80 the code is:

    if (ACCOUNT_DOB == 'true') {
    if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) {
    $error = true;

    $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);
    }
    }

    Someone have got any clues?

    Can there be any troubles with sessions or cookies?

    or doesnt my webhost support the mailtype that is used in OsCommerce

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    It has nothing to do with MAILTYPE...There is a problem with calling the fuction of tep_date_raw - which is normally setup in your main language file

    ie: english.php

    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);
    }
    }

    Ether this file is mission or fuction was removed/changed or the file was not included (using the php code of require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); in index.php) or the language is not setup properly.

    The best thing would be try re-uploading the files or FRESH files and try it again.

    If you still have this error - post more detail...What mods you did which language files you modified etc....


    Good Luck
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Anonymous
    Guest


    Default

    Thank you very much, this was exectly the problem i was experienceing. I had not that code in my swedish language pack....

    Thanks again!!!

    p.s Sorry about the bad english..

Similar Threads

  1. Error Customer Orders Admin Panel
    By donm1021 in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 08-08-2006, 04:50 PM
  2. customer get email error message on account set up
    By Christy in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 12-19-2005, 03:16 PM
  3. edit customer in admin error, heelllppp
    By battleaxe in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 10-07-2004, 02:38 AM
  4. Error when trying to edit customer info
    By Nugar in forum osCmax v1.7 Discussion
    Replies: 9
    Last Post: 11-13-2003, 11:01 AM
  5. error with new customer registration
    By danz in forum osCommerce 2.2 Installation Help
    Replies: 5
    Last Post: 10-19-2003, 04:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •