Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    3
    Plugin Contributions
    0

    Default 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


    Last edited by Kim; 8 Feb 2007 at 07:06 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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

  3. #3
    Join Date
    Feb 2007
    Posts
    3
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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

  5. #5
    Join Date
    Feb 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Missing code in Home page

    Yes, that did it, thank you.

    I overwrote just the includes folder.

    Viorel

 

 

Similar Threads

  1. Wanted: Missing Home page content
    By completespray in forum General Questions
    Replies: 5
    Last Post: 30 May 2016, 11:43 PM
  2. Home page text missing
    By marknew in forum General Questions
    Replies: 16
    Last Post: 15 Mar 2011, 11:24 PM
  3. Sideboxes Missing on Home Page
    By games4gamers in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Apr 2010, 10:19 PM
  4. Missing Home and Login page in IE
    By ethanolic in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Aug 2008, 08:28 AM
  5. Products Missing from Home Page
    By Mr_B in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jan 2008, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR