Forums / General Questions / Can't Get Store to Open after migrate to web

Can't Get Store to Open after migrate to web

Locked

Views: 2,362

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
1 Jul 2007, 12:49 AM
#1
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Can't Get Store to Open after migrate to web

Hi

I just migrated from my localhost to my web server. I can get into Admin, but not the store.

I am getting this message:
Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.require]: failed to open stream: No such file or directory in /home/.servername/acctname/magicfoxden.com/index.php on line 43

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/local/php5/lib/php') in /home/.servername/acctname/magicfoxden.com/index.php on line **43

**I do have the template_default/common/html_header.php in my store's include directory.

I've been working on and researching this for the past hour and am stuck. Where do I go now? Please point me in the right direction.

Thanks
John D

1 Jul 2007, 2:49 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: Can't Get Store to Open after migrate to web

try to re-upload the file it may be corrupt

Zen cart PCI compliant Hosting

1 Jul 2007, 12:13 PM
#3
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Can't Get Store to Open after migrate to web

Thanks for the reply Merlin, unfortunately this attempted fix was unsuccessful.

I uploaded from both my local site and also from the original install files. Neither worked.

Next step?

1 Jul 2007, 1:48 PM
#4
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Can't Get Store to Open after migrate to web

Perhaps this will help you help me?

Here is what I did to get me into this situation:

  • installed 1.3.7 on local machine
  • did my configurations and was satisfied with my local store
  • backed up my local db
  • installed 1.3.7 on remote
  • deleted the zc_install folder
  • uploaded all of my local files and overwrote what was on the remote
  • confirmed that my config files were ok
  • restored my db to remote
  • went to store URL -- got the messages in question
  • went to admin -- no problem getting inBased on Merlin's advice:
  • re-uploaded the html_header.php
  • re-upload from local store, then from local copy of installl files
  • no luck
2 Jul 2007, 11:45 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't Get Store to Open after migrate to web

Sorry, this is not my field of expertise.

However, I do notice that you have a call for

'DIR_WS_TEMPLATEStemplate_default/common/html_header.php'

which is messed up. DIR_WS_TEMPLATES should be replaced by the filepath leading to template_default. So it seems that your configure.php may not be entirely correct, or else the file looking for it is not looking correctly - probably the latter.

3 Jul 2007, 4:24 AM
#8
cjmarley avatar

cjmarley

Zen Follower

Join Date:
May 2004
Posts:
96
Plugin Contributions:
2

Re: Can't Get Store to Open after migrate to web

In your error it says

/home/.servername/acctname/magicfoxden.com/index.php

It looks to me like your paths are not done right. You need to ask your webhost what your server paths should be.

Another question...what did you use to put the files from your localhost to your webhost?

3 Jul 2007, 10:08 AM
#9
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Can't Get Store to Open after migrate to web

cjmarley:

In your error it says

/home/.servername/acctname/magicfoxden.com/index.php

It looks to me like your paths are not done right. You need to ask your webhost what your server paths should be.

I took the path that was in the error message and overwrote the actual server name and acct name with servername/acctname. Where I have servername -- that's really my filer. I verified that the path was correct with my provider.

Another question...what did you use to put the files from your localhost to your webhost?I used SmartFTP Client.

3 Jul 2007, 2:56 PM
#10
cjmarley avatar

cjmarley

Zen Follower

Join Date:
May 2004
Posts:
96
Plugin Contributions:
2

Re: Can't Get Store to Open after migrate to web

Okay. I just noticed:

DIR_WS_TEMPLATEStemplate_default/common/html_header.php

there is no / between DIR_WS_TEMPLATES and template_default. Again, that's an issue with your paths in the config file. You forgot a / somewhere.

3 Jul 2007, 3:46 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Can't Get Store to Open after migrate to web

No, it's not that exactly. The DIR_WS_TEMPLATES is the name of a constant which should be replaced by its value (the real filepath). That value should end in a /.

3 Jul 2007, 5:03 PM
#12
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: Can't Get Store to Open after migrate to web

this also happens if the server path is not correct,
such as httpdocs verses httpsdocs,

this is probably not the case here but is another cause for this error

Zen cart PCI compliant Hosting

3 Jul 2007, 8:50 PM
#13
cjmarley avatar

cjmarley

Zen Follower

Join Date:
May 2004
Posts:
96
Plugin Contributions:
2

Re: Can't Get Store to Open after migrate to web

I realize it's a constant that gets replaced. But the fact that it is showing up in the error message shows that there is still something wrong in the configs. It's not finding that constant to replace it.

3 Jul 2007, 10:47 PM
#14
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Can't Get Store to Open after migrate to web

Thanks for trying to help me out.

The last post from Merlin got me to thinking about the config files. So, I went in and took a look. Turns out that in my updating of the configs to get the paths correct, I wound up putting the admin config into both the admin and the store.

I put the correct config file in the store and I am up and running. Please take a look at https://www.magicfoxden.com.

Thanks again!

5 Jul 2007, 3:55 PM
#15
brd avatar

brd

New Zenner

Join Date:
Jul 2007
Posts:
1
Plugin Contributions:
0

Re: Can't Get Store to Open after migrate to web

I had exactly the same problem when I tried to upgrade from 1.3.6 to 1.3.7 yesterday. The problem is that the upgrade instructions encourage you to press the "Upgrade Database" button, but don't make any mention of the "Upgrade Configuration" one to its left. Do that, and it will add the missing lines of config that are causing the script to fail.

While I'm on the subject, "3 EASY STEPS TO UPGRADE ZEN CART" is not really true. Step 1 took me ages!