Results 1 to 8 of 8

AARGH! Fatal error: Cannot redeclare tep_encrypt_password

This is a discussion on AARGH! Fatal error: Cannot redeclare tep_encrypt_password within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Fatal error: Cannot redeclare tep_encrypt_password() (previously declared in /home/mshang33/public_html/catalog/admin/customers.php:18) in /home/mshang33/public_html/catalog/admin/includes/functions/password_funcs.php on line 33 I get no customer list in ...

      
  1. #1
    Anonymous
    Guest


    Default AARGH! Fatal error: Cannot redeclare tep_encrypt_password

    Fatal error: Cannot redeclare tep_encrypt_password() (previously declared in /home/mshang33/public_html/catalog/admin/customers.php:18) in /home/mshang33/public_html/catalog/admin/includes/functions/password_funcs.php on line 33

    I get no customer list in admin now..what can I do
    I restored the php files and a backup..still get this error

  2. #2
    Lurker
    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0


    Default Customer Info in admin fatal error

    getting thiswas listed as "Arrgh", but realized that title helped no one...sorry)
    Fatal error: Cannot redeclare tep_encrypt_password() (previously declared in /home/mshang33/public_html/catalog/admin/customers.php:1 in /home/mshang33/public_html/catalog/admin/includes/functions/password_funcs.php on line 33

    I get no customer list in admin now..what can I do
    I restored the php files and a backup..still get this error

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    DevildogMP, I feel your pain, but, please be more descriptive with your titles. For future reference, a better title would be :

    AARGH! Fatal error: Cannot redeclare tep_encrypt_password

    I have taken the liberty of changing the title for you. I am only doing this to keep search results relevant for other visitors.

    Now, on to your problem:
    Have you changed anything that we should know about? This is not an error that just appears out of the blue. Please give more info.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Hehe, I just recommended a title change, and changed it in your other post. Didnt see this one!

    I am merging both posts into one thread.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Lurker
    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0


    Default

    yep..changed both customer php files to add customers under admin...made my own "fatal mistake by not backing up...( i know, shoot me..I had a brain fart) now I'm paying for it.
    This is the readme of the file I was using:
    ##############
    # 09-11-2003
    ##############
    # Account create in admin
    #
    # Nuno Chaveiro
    # Portugal
    #
    # chaveiro@catus.net
    # http://www.gtronica.com
    ##############
    #
    # This addon let you insert clients from the admin.
    # An email with the automated generated pass is sent to them.
    # 100% friendly to osc source, this is an update to customers.php for osCommerce2.2MS2
    # Should certainly be included in next official release
    # Tested in osCommerce 2.2MS2
    #
    ##############

    INSTALATION

    Replace this files with the inclued ones:

    admin/costumers.php
    admin/includes/languages/english/costumer.php

    or

    Search for code between this lines in the zipped files and do the apropriate changes to your files.

    //#CHAVEIRO6# Step order/customer begin
    //#CHAVEIRO6# Step order/customer end

    Any hope? or is all lost?

  6. #6
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    Default

    That error means you're defining the function twice. Once on customers on line 18, and once where it should be, in the includes/functions file on line 33.

    Whatever is on line 18 of customers.php is causing your problem, whether it's an extra link to the include file (I doubt it or the tep_validate_password function would cause an error first) or maybe you redeclared the function in customers.php

    if you're not sure what to do post the customers.php file up here.


    jon

  7. #7
    Lurker
    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0


    Default

    that got my brain in gear! Found it! Thx jon very much!

  8. #8
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    Default

    if the mod you're installing uses a new version of that function make sure you keep the correct version


    jw

Similar Threads

  1. Cannot redeclare tep_show_category()
    By crystina in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 11-21-2006, 12:51 AM
  2. fatal error plz help
    By uglyrain in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 11-30-2005, 03:28 PM
  3. Fatal error:
    By kiokouk in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-24-2004, 03:38 AM
  4. Fatal error......
    By depayva in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 12-05-2003, 11:39 AM
  5. Cannot redeclare tep_set_banner_status()
    By EPierre in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-20-2002, 04:00 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
  •