Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Plugin Contributions
    0

    Default Sudden, odd PHP error

    My site (hxxp://www.t r e a d r i t eshoes.com/shop/, built with ZC 1.3.8a) has suffered a spontaneous massive existence failure. The Admin area still works as it always has, but I can no longer access the front end, either by typing in the URL directly into my browser or by clicking the "Online Catalog" link in the Admin area.

    My debug results:

    [27-Apr-2009 13:57:30] PHP Fatal error: Cannot redeclare draw_optiontype_pulldown() (previously declared in public_html/shop/includes/extra_configures/attributes_controller.php:552) in public_html/shop/includes/extra_configures/attributes_controller.php on line 559
    The only change from a clean install which I've actually installed on the live server is my addition of Improved Attributes Controller v. 1.1b2. The shop worked perfectly until 20 April, when it suddenly began returning a blank page.

    I hope some coder more brilliant than I has some idea what's wrong. Thanks in advance!

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

    Default Re: Sudden, odd PHP error

    Why do you have a copy of "attributes_controller.php" in your "extra_configures" folder?
    .

    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 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Sudden, odd PHP error

    :::sigh::: because that's where the site's original programmer put it, i suppose. I'll take my noob foolishness out of here with sincere thanks for your help, DrBryte

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

    Default Re: Sudden, odd PHP error

    Something worth noting ... in Zen Cart there are often files which share the same name located in multiple folders. But, just because they have a certain name does not mean one can just put a file by that name in a certain place.
    It's possible that the addon contains multiple files named "attributes_controller.php", but the different versions of that file belong in certain varying folders. Normally the zip file contains the folders too, so one simply reproduces the folder structure on the server, putting the prescribed files in the prescribed folders.

    I'm guessing whoever installed the addon simply put the wrong file in the wrong folder. At least, that's what's causing the error message you reported.
    .

    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. v139h Help sudden loss of order's comments and odd behavior
    By freedude in forum General Questions
    Replies: 10
    Last Post: 4 Oct 2014, 12:07 AM
  2. sudden php error problems on server
    By delia in forum General Questions
    Replies: 6
    Last Post: 8 Jul 2011, 12:31 PM
  3. Whos_online.php throwing a fatal error all of sudden
    By sassayone in forum General Questions
    Replies: 8
    Last Post: 2 Mar 2011, 11:12 PM
  4. sudden headers error in flat.php and func_general.php
    By glennnphp in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 28 Jul 2009, 03:22 PM
  5. Replies: 4
    Last Post: 18 Jul 2007, 11:53 PM

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