If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Mac Server / Missing code in Home page

Missing code in Home page

Locked

Started by vgp on 8 Feb 2007, 4:14 PM · Views: 4,119

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
8 Feb 2007, 4:14 PM
#1
vgp avatar

vgp

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Missing code in Home page

**It worked fine the first few times but today the Home page opens without the right side tables, and with this warning across:

Warning**: main(includes/languages/english/html_includes/define_main_page.php) [function.main]: failed to open stream: No such file or directory in /Library/WebServer/WebSites/vgp/public_html/zen-cart/includes/templates/ template_default/templates/tpl_index_default.php on line 39

Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/html_includes/define_main_page.php' (include_path='.:/usr/local/lib/php') in /Library/WebServer/WebSites/vgp/public_html/zen-cart/includes/templates/ template_default/templates/tpl_index_default.php on line **39

Before trying to mess up with the code here is how line 39 looks like:

<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>

I would be grateful for advice.

I am also puzzled by the sudden appearance of this problem, and what might have caused it.

Thank you,

VGP

**

8 Feb 2007, 4:20 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Missing code in Home page

Assuming that you are and have been using the override system the quick fix is to reload the Zen Cart fileset to your server space.

This appears to be due to corrupt file in the set or a mis-edit of a file read mis-edit=corrupt also.

Then insure that you only edit files using a "Plain Text editor" as others tend to insert unwanted stuff

Zen-Venom Get Bitten

8 Feb 2007, 4:46 PM
#3
vgp avatar

vgp

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Re: Missing code in Home page

<reload the Zen Cart fileset to your server space>

Does this mean: reinstallation?

Thank you for reply, Cobra

VGP

8 Feb 2007, 5:34 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Missing code in Home page

Not exactly - just overwrite all the files (sans the zc_install folder) and this should get the possible corrupt file corrected...no need to perform the installation.

Zen-Venom Get Bitten

9 Feb 2007, 4:14 PM
#5
vgp avatar

vgp

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Re: Missing code in Home page

Yes, that did it, thank you.

I overwrote just the includes folder.

Viorel