Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    18
    Plugin Contributions
    0

    Default Session Start errors, no CSS

    I recently downloaded my complete site so that I could work locally, after many headaches I can now access my front page, with errors.
    I have two session start errors, plus a 'cannot modify header information'. The page looks as if the CSS is missing as the page is huge, no colours. So I suspect the link to the CSS has failed.
    Finally there is no 'Admin' access.
    The info on products etc is all showing, so the data is flowing from the database.
    I have looked over the pages suggested in the error and cannot see a problem.
    I have searched the 'Troubleshoot Tuts' but the information on these errors is vague.
    Where would I start to correct these, or should I try another download? Are these errors linked in some way?
    Would appreciate some guidance.

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

    Default Re: Session Start errors, no CSS

    What are the exact errors?
    .

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

    Default Re: Session Start errors, no CSS

    Quote Originally Posted by DrByte View Post
    What are the exact errors?
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\catalog\includes\classes\class.smtp.php:2010) in C:\xampp\htdocs\catalog\includes\functions\sessions.php on line 214

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\catalog\includes\classes\class.smtp.php:2010) in C:\xampp\htdocs\catalog\includes\functions\sessions.php on line 214

    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\catalog\includes\classes\class.smtp.php:2010) in C:\xampp\htdocs\catalog\includes\init_includes\init_templates.php on line 149

    Well, you did ask!

    As I said, I have looked over the files mentioned and as I can't write .php can't 'see' a problem?
    Can't understand why these errors show, the site is clean when remote.

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

    Default Re: Session Start errors, no CSS

    It seems there may be an error in your class.smtp.php file on line 2010.
    Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=87
    .

    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.

  5. #5
    Join Date
    Jul 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Session Start errors, no CSS

    Quote Originally Posted by DrByte View Post
    It seems there may be an error in your class.smtp.php file on line 2010.
    Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=87
    I am not in a position to argue, but what has smtp to do with my problem?
    Here are the lines of code around line 2010 in the file mentioned.

    2009 if($code != 250 && $code != 251) {
    2010
    2011 $this->error =
    2012
    2013 array("error" => "VRFY failed on name '$name'",
    2014
    2015 "smtp_code" => $code,
    2016
    2017 "smtp_msg" => substr($rply,4));
    2018
    2019 if($this->do_debug >= 1) {
    2020
    2021 echo "SMTP -> ERROR: " . $this->error["error"] .
    2022
    2023 ": " . $rply . $this->CRLF;

    As you can see no empty lines as mentioned in the Tut?
    This is even more strange, when I first encountered the error it referred to these lines
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\catalog\admin\includes\classes\logger.php:106) in C:\xampp\htdocs\catalog\includes\functions\sessions.php on line 214
    Then after fiddling around, as you can see I have a totally different error listed?
    Comments appreciated.

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

    Default Re: Session Start errors, no CSS

    It's odd that your file appears to be double-spaced. It seems maybe your FTP program didn't handle line-endings properly when downloading. That can often cause confusion especially if the conversion ends up adding a blank line after the closing ?> in a php file (which is one reason why you'll see that many Zen Cart files, especially in the upcoming 1.3.9 and 2.0 and newer versions, don't include a closing ?> tag at the end of php files.)

    If you have many files that are undesirably double-spaced it might be worth unzipping the original versions of those files for use on your local computer.

    I always find it better to make all my customizations locally and then upload them to the server when ready to go live ... rather than working in the opposite direction (granted, I realize you're trying to set up a local install for the first time ... and hopefully you'll use that as a base from which you will upload changes to the live server).
    Unzipping a clean set of files is often a good starting point. Then merge your customizations into those files so you have a full working set. Then you have a test site for doing development/testing on before going to the live store.
    .

    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. Session Start Error
    By dawndalto in forum General Questions
    Replies: 2
    Last Post: 25 Nov 2007, 03:24 AM
  2. function session start ERROR
    By yellowdaises in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Feb 2007, 11:16 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