Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Help! Errors from fix_cache_key after moving store to root

Help! Errors from fix_cache_key after moving store to root

Locked

Views: 1,957

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
2 Dec 2009, 12:15 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

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:

[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 Dec 2009, 1:10 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

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...)

2 Dec 2009, 2:10 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

7 Dec 2009, 3:05 AM
#4
dfludd avatar

dfludd

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

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
**

7 Dec 2009, 3:10 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

dfludd:

[
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.

7 Dec 2009, 4:29 AM
#6
dfludd avatar

dfludd

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

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 Dec 2009, 5:24 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.