Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    red flag Errors after moving ZenCart

    I've followed the instructions in

    I want to move my Zen Cart installation to another host or a different server

    The new installation when find and ZenCart tested OK.
    Everything seemed fine until I ran the fix_cache_key.php.

    While the browser reported errors:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/alifina/public_html/boutique/includes/classes/class.smtp.php:2114) in /home/alifina/public_html/boutique/includes/functions/sessions.php on line 215

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/alifina/public_html/boutique/includes/classes/class.smtp.php:2114) in /home/alifina/public_html/boutique/includes/functions/sessions.php on line 215

    Warning: Cannot modify header information - headers already sent by (output started at /home/alifina/public_html/boutique/includes/classes/class.smtp.php:2114) in /home/alifina/public_html/boutique/admin/includes/init_includes/init_templates.php on line 36

    Warning: Cannot modify header information - headers already sent by (output started at /home/alifina/public_html/boutique/includes/classes/class.smtp.php:2114) in /home/alifina/public_html/boutique/admin/includes/functions/general.php on line 34
    The program reported a success.
    But now similar error appear when opening my page:
    See www.nahidfashions.com/boutique

    I was cruising along until this...

  2. #2
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    application error Re: Errors after moving ZenCart

    This is the actual page displayed by the fix_cache_key.php

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/alifina/public_html/boutique/fix_cache_key.php:43) in /home/alifina/public_html/boutique/includes/functions/sessions.php on line 215

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/alifina/public_html/boutique/fix_cache_key.php:43) in /home/alifina/public_html/boutique/includes/functions/sessions.php on line 215

    Warning: Cannot modify header information - headers already sent by (output started at /home/alifina/public_html/boutique/fix_cache_key.php:43) in /home/alifina/public_html/boutique/includes/init_includes/init_templates.php on line 155
    Cache Settings Synchronization Tool

    Recommendations

    Possible appropriate cache directory for your site is: /home/alifina/public_html/boutique/cache

    Actual Information

    Read DIR_FS_SQL_CACHE from configure.php: /home/alifina/public_html/boutique/cache
    Found SESSION_WRITE_DIRECTORY in database: /home/alifina/public_html/boutique/cache

    No changes required.
    Exiting.
    Security

    PLEASE DELETE THIS FILE FROM YOUR SERVER NOW!!
    Removing this file (fix_cache_key.php) from your server protects you from would-be hackers/predators who might seek to compromise your server.

  3. #3
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Errors after moving ZenCart

    open this page in your text editor

    /home/alifina/public_html/boutique/includes/classes/class.smtp.php

    put cursor at end of file right behind the last ?> hit delete 10 times
    save and re-upload


    you may notice this error coming up in other files, you can tell which one from the error do the same fix to all
    Zen cart PCI compliant Hosting

  4. #4
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Errors after moving ZenCart

    WHAT?!
    but ok, I tried it on the following files: class.smtp.php, sessions.php & ini_templates.php

    no dice. I'm getting the same thing.

    Should I run fix_cache_key.php again?


    s.ali

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Errors after moving ZenCart

    delete the fix cache key file
    Zen cart PCI compliant Hosting

  6. #6
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Errors after moving ZenCart

    I deleted the file (fix_cache_keh.php) immediately after running it per its warning at the end of the page.

    Did do something wrong. Everything seem to work fine until I copied my old files and ran the fix cache.

    darn. I was doing so well.

  7. #7
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Errors after moving ZenCart

    try using a text editor like
    www.textpad.com

    you can view line numbers
    if there is a line number after ?> then you need to depete it,

    this is a white space error

    what are you using to edit files with?
    Zen cart PCI compliant Hosting

  8. #8
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Errors after moving ZenCart

    Normally I use Dreamweaver, but I just did the same in notepad but still the same errors.

    there are not lines (or line numbers) after ?>

    any ideas?

  9. #9
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Errors after moving ZenCart

    Actually, hold.
    Like you said this may occur on a number of files. I see that the error is not exactly the same files.

  10. #10
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Have a Drink Re: Errors after moving ZenCart

    Ok, it looks like I'm in the clear or now.

    I removed the extra line feeds at the end of the files.

    I had to change/fix about six files. I'll list them here just in case someone comes across the same problem:

    <ZENCART INSTALLATION>\includes\functions\functions_prices.php
    <ZENCART INSTALLATION>\includes\classes\db\mysql\query_factory.php
    <ZENCART INSTALLATION>\includes\extra_datafiles\music_type_database_names.php
    <ZENCART INSTALLATION>\includes\functions\sessions.php
    <ZENCART INSTALLATION>\includes\classes\class.smtp.php

    I don't think I had to change the following file, but i did before I knew why I was doing what I was doing.

    <ZENCART INSTALLATION>\includes\init_includes\init_templates.php


    Thanks Merlinpa1969

    s.ali

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. help - lot of errors after moving my store to other folder
    By corditreasures in forum General Questions
    Replies: 7
    Last Post: 3 Mar 2011, 03:11 AM
  2. Help! Errors from fix_cache_key after moving store to root
    By lat9 in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 7 Dec 2009, 06:24 AM
  3. Errors after moving
    By motor in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 9 Apr 2008, 03:31 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