Forums / Installing on a Mac Server / Missing code in Home page

Missing code in Home page

Locked
Results 1 to 5 of 5
This thread is locked. New replies are disabled.
08 Feb 2007, 16:14
#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


08 Feb 2007, 16:20
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
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
08 Feb 2007, 16:46
#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
08 Feb 2007, 17:34
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
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.
09 Feb 2007, 16:14
#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