Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Errors after moving ZenCart

Errors after moving ZenCart

Locked

Views: 2,269

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
9 Jul 2007, 11:04 AM
#1
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

9 Jul 2007, 11:25 AM
#2
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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.

9 Jul 2007, 12:59 PM
#3
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

9 Jul 2007, 1:52 PM
#4
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

9 Jul 2007, 2:09 PM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Errors after moving ZenCart

delete the fix cache key file

9 Jul 2007, 2:18 PM
#6
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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.

9 Jul 2007, 2:29 PM
#7
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Errors after moving ZenCart

try using a text editor like
https://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?

9 Jul 2007, 3:11 PM
#8
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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 Jul 2007, 3:41 PM
#9
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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.

9 Jul 2007, 3:56 PM
#10
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

10 Jul 2007, 3:29 PM
#11
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: Errors after moving ZenCart

The "white space error" seems pretty pervasive. It keep rearing it's ugly head now and then.
Is this a common problem and is there a utility/search tool I can use to fix this?

10 Jul 2007, 4:09 PM
#12
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Errors after moving ZenCart

I see it frequently when moving files from one server to another,

looks like you got most of em in the catlog side, there are a few in the admin side,