Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,948
    Plugin Contributions
    96

    Default Help! Errors from fix_cache_key after moving store to root

    My store was configured as /store/ and I'm in the process of moving it to the root. I edited the store/includes/configure.php and store/admin/includes/configure.php to remove "/store" in all locations and recopied.

    Moved all the directories down, copied fix_cache_key.php to the root and when I ran it got these errors:

    Code:
    [02-Dec-2009 12:04:05] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /.../fix_cache_key.php:43) in /.../includes/functions/sessions.php on line 108
    [02-Dec-2009 12:04:05] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /.../fix_cache_key.php:43) in /.../includes/functions/sessions.php on line 108
    [02-Dec-2009 12:04:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /.../fix_cache_key.php:43) in /homepages/16/d297247521/htdocs/includes/init_includes/init_templates.php on line 78
    [02-Dec-2009 12:04:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /.../fix_cache_key.php:43) in /homepages/16/d297247521/htdocs/includes/functions/functions_general.php on line 44
    Eeek!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,948
    Plugin Contributions
    96

    Default Re: Help! Errors from fix_cache_key after moving store to root

    So, I gave up on fix_cache_key and went into phpMyAdmin and removed all references to /store. My store's up (kind of...)

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Help! Errors from fix_cache_key after moving store to root

    I trust you have a backup...

    The errors seem to relate to php files that have become corrupted (or missed out) when you did the transfer. Nothing to do with the database and nothing to do with fix_cache_key.

    Or perhaps you did not make the proper edits to your configure.php file...


    Fix Cache Key is simply a PHP way of changing the path to the cache folder that can otherwise be done under ADMIN >>> CONFIGURATION >>> SESSIONS
    20 years a Zencart User

  4. #4
    Join Date
    Apr 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Help! Errors from fix_cache_key after moving store to root

    My site was hacked and I'm trying to get it back up I have been able to re-populate the database and get the files back up but now I upgraded from the backup version 1.3.7 to 1.3.8a and am getting errors

    [
    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/eartcar/public_html/shop/cache) is not within the allowed path(s): (/home/eartcard/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/eartcard/public_html/shop/includes/functions/sessions.php on line 301

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/eartcard/public_html/shop/includes/extra_datafiles/music_type_database_names.php:61) in /home/eartcard/public_html/shop/includes/functions/sessions.php on line 215

    Warning: Cannot modify header information - headers already sent by (output started at /home/eartcard/public_html/shop/includes/extra_datafiles/music_type_database_names.php:61) in /home/eartcard/public_html/shop/includes/init_includes/init_templates.php on line 155]

    ANY HELP WITH THIS WOULD BE GREATLY APPRECIATED

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

    Default Re: Help! Errors from fix_cache_key after moving store to root

    Quote Originally Posted by dfludd View Post
    [
    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/eartcar/public_html/shop/cache) is not within the allowed path(s): (/home/eartcard/:/usr/lib/php:/usr/local/lib/php:/tmp)
    The error message is telling you what's wrong:
    You've configured Zen Cart to look in the /home/eartcar/ folder, but it's *actually* in the /home/eartcard/ folder.

    This suggests that you've put the wrong path in one or more entries in your configure.php files, and then fix_cache_key has sucked that wrong entry in to the database.

    You'll need to fix your typo and then re-run fix_cache_key.php to update the database.
    .

    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.

  6. #6
    Join Date
    Apr 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Help! Errors from fix_cache_key after moving store to root

    Hi thanks very much for that I will take a look. When you said re-run fix_cache_key.php I'm not sure what you mean here do I need to fix the physical path in this file as well?
    Thank you

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

    Default Re: Help! Errors from fix_cache_key after moving store to root

    Oh ...

    You posted this as a reply to an existing discussion that's talking about errors after running a fix_cache_key utility script ... And thus you had me thinking that you'd also run that script. In the future, if your post isn't the same as the existing discussion, start a new one instead of hijacking someone else's.

    YOU need to:
    1. Fix your 2 configure.php files to make sure you've spelled all the paths correctly.
    and
    2. Login to your admin and go to Admin->Configuration->Sessions->Session Directory, and make sure you've spelled it properly there too.
    .

    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 question about moving my store from /Shop/ to root
    By devyani in forum General Questions
    Replies: 4
    Last Post: 26 Jun 2012, 06:12 PM
  2. 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
  3. Blank pages after Moving store to root
    By sobebabies in forum Basic Configuration
    Replies: 10
    Last Post: 26 Feb 2010, 04:19 AM
  4. Replies: 0
    Last Post: 4 Feb 2010, 09:51 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