Thread: Strange Error

Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Posts
    3
    Plugin Contributions
    0

    Default Strange Error

    I saw this error posted in another thread, but the person cleared it up by running a backup. Since this is my first install I have no such luxury.

    I have reinstalled the DB several times. I have set caching to "File", but I still get these errors from the Debugging Tool.

    This is from one log file
    [15-Oct-2009 12:52:14] PHP Fatal error: Call to a member function Execute() on a non-object in /home/content/a/a/r/aaronfrankel6/html/demo7/includes/counter.php on line 23

    This is from another
    [15-Oct-2009 14:57:53] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/functions/extra_functions/product_music_functions.php.LCK:1) in /home/content/a/a/r/aaronfrankel6/html/demo7/includes/functions/sessions.php on line 108
    [15-Oct-2009 14:57:53] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/functions/extra_functions/product_music_functions.php.LCK:1) in /home/content/a/a/r/aaronfrankel6/html/demo7/includes/functions/sessions.php on line 108
    [15-Oct-2009 14:57:54] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/functions/extra_functions/product_music_functions.php.LCK:1) in /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/init_includes/init_templates.php on line 36
    [15-Oct-2009 14:57:54] PHP Warning: require(/home/content/a/a/r/aaronfrankel6/html/demo7/includes/functions/specials.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/init_includes/init_special_funcs.php on line 21
    [15-Oct-2009 14:57:54] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/content/a/a/r/aaronfrankel6/html/demo7/includes/functions/specials.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/init_includes/init_special_funcs.php on line 21

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Strange Error

    Quote Originally Posted by aaronfrankel View Post
    [15-Oct-2009 12:52:14] PHP Fatal error: Call to a member function Execute() on a non-object in /home/content/a/a/r/aaronfrankel6/html/demo7/includes/counter.php on line 23
    Sounds like something's not starting your database connection properly. In your situation, it's likely because you're missing required files from the server, possibly from a failed FTP upload.

    Quote Originally Posted by aaronfrankel View Post
    [15-Oct-2009 14:57:53] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/functions/extra_functions/product_music_functions.php.LCK:1) in ...

    [15-Oct-2009 14:57:53] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/functions/extra_functions/product_music_functions.php.LCK:1) in ...

    [15-Oct-2009 14:57:54] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/a/r/aaronfrankel6/html/demo7/admin/includes/functions/extra_functions/product_music_functions.php.LCK:1) in ...
    You get the .LCK files when you the check-in/check-out features in Dreamweaver, and maybe when you use their FTP program.
    It's NEVER recommended to use that when working with PHP files.
    You'll need to delete those .LCK files from your server, either manually, or by clearing your checkin/checkout status on them.

    Quote Originally Posted by aaronfrankel View Post
    [15-Oct-2009 14:57:54] PHP Warning: require(/home/content/a/a/r/aaronfrankel6/html/demo7/includes/functions/specials.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in ...
    As the error message says, a file is apparently missing from the server.
    .

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

    Default Re: Strange Error

    I went back, turned off the check-in/check-out features in Dreamweaver, deleted all files in the site, deleted the DB, did a fresh upload of all the files, set the permissions, and finally reinstalled. Seems to have done the trick.

    I am curious about this issue with the check-in/check-out features in Dreamweaver. I have used EcommerceTemplates PHP cart for several years now and always used the check-in/check-out features in Dreamweaver to colaborate with my clients and never had an issue because of it. I have never heard of this issue between check-in/check-out and PHP. What is the story?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Strange Error

    Some folders in Zen Cart are automatic-load folders, which load all files ending in ".php".
    There's a small quirk in a couple spots where it just looks for the ".php" pattern and doesn't enforce that it must be the "end" of the filename. So some files such as ".php.LCK" get processed too. All of them are fixed in the next version currently in development.
    .

    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. Strange error
    By thewolf01 in forum General Questions
    Replies: 2
    Last Post: 26 Mar 2008, 04:06 PM
  2. Strange Error
    By samskillern in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Mar 2008, 06:36 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