Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    6
    Plugin Contributions
    0

    Default Fatal error: Cannot redeclare class template_func

    My site www.shoppingkingdom.com.au was recently hacked. The hackers put spam type links into the checkout page and order confirmation data. I have applied the security patches, removed the hack links, and reinstalled some of the scripts.
    I keep getting this error on my when I retrieve my webpage
    Fatal error: Cannot redeclare class template_func in /home/sho14623/public_html/includes/classes/template_func.php on line 68
    I've tried 3 lots of back up scripts and I still get the same error. My webpage wont open and its driving me crazy. Does anyone have a simple fix for this?
    Here is my full script.
    Thanks

    <SNIP - file removed by moderator>

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Fatal error: Cannot redeclare class template_func

    When you did a full compare of all the PHP (and image and html and other) files on your server against your good backup from before June, what differences did you see both in contents of files as well as additional files?

    BTW - the problem has nothing to do with template_func.php ... it's merely reporting the problem.
    You most likely have a copy of template_func.php in another folder, or have something else added that's causing the whole set of startup scripts to repeat themselves.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2007
    Location
    Rustenburg, South Africa
    Posts
    85
    Plugin Contributions
    0

    Default Re: Fatal error: Cannot redeclare class template_func

    I have the same error:
    Warning: preg_match() [function.preg-match]: No ending delimiter '/' found in \includes\classes\template_func.php on line 27 after I installed the MOD Template changer.

    Where do I switch error reporting of or how can I re-edit the code:
    include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');

    to stop the error reporting

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Fatal error: Cannot redeclare class template_func

    Quote Originally Posted by cristaltech View Post
    ... after I installed the MOD Template changer
    Sounds like a bug in the addon
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 Fatal error Cannot redeclare class
    By sasha21 in forum General Questions
    Replies: 5
    Last Post: 21 Jul 2013, 03:21 AM
  2. Fatal error: Cannot redeclare class base
    By apovey in forum General Questions
    Replies: 3
    Last Post: 25 Jun 2009, 05:08 AM
  3. Fatal error: Cannot redeclare class paypal
    By ridelow in forum General Questions
    Replies: 3
    Last Post: 1 Nov 2008, 10:07 AM
  4. Fatal error: Cannot redeclare class template_func
    By jimh3768 in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2008, 05:17 AM

Posting Permissions

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