Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34
  1. #21
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Quote Originally Posted by mc12345678 View Post
    Huh, guess I didn't realize that was the real issue. If you look in the file:
    Includes/configure.php
    Is there a line that reads something like:
    Define('DIR_WS_INCLUDES','includes/');

    yes, here it is about 1/3 down, it doesn't shown line #s, but line 7 looks nothing like described

    application/x-httpd-php configure.php
    PHP script text

    <?php
    /**
    * @package Configuration Settings circa 1.5.1
    * @copyright Copyright 2003-2012 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2012-09-20 05:38:29
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://pinewoodforge.com');
    define('HTTPS_SERVER', 'https://pinewoodforge.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/zencart/');
    define('DIR_WS_HTTPS_CATALOG', '/zencart/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

    I may have some of the content wrong, but it looks like there is either a missing define, or in the file /home/pinewood/public_html/zencart/index.php on line 7 something is typed wrong.

    One place to look at what is expected to be in the configure.php file is a few of the FAQ's on configure.php:
    http://www.zen-cart.com/content.php?...ents-explained
    http://www.zen-cart.com/content.php?...figurephp-file

    For a few.
    I tried reading the above instruction pages each three times, but it is like a freshman in high school entering a college chemistry course, it's so far over my head I naturally just dont have context to understand this by, or what actions to even start to take.
    here's the address to the broken-linked front page http://pinewoodforge.com/zencart/
    thanks....

  2. #22
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: beginner text edit question

    It looks like you're missing one or more files. Check includes/templates/template_default/common for a file named html_header.php.

    BTW, 'folder' is just another word for 'directory' or 'subdirectory'.

  3. #23
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    I'm happy to report that html_header.php was/is there in place.
    Thanks for the clarification too.

  4. #24
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    I tried reading the above instruction pages each three times, but it is like a freshman in high school entering a college chemistry course, it's so far over my head I naturally just dont have context to understand this by, or what actions to even start to take.
    here's the address to the broken-linked front page http://pinewoodforge.com/zencart/
    thanks....
    So at or around line 7 of /home/pinewood/public_html/zencart/index.php, what is listed? It should include DIR_WS_INCLUDES based on what the error message says.

    The configure.php file section that you provided looks correct. So I am thinking that something has been modified in the index.php file that prevents the substitution of the correct information for DIR_WS_INCLUDES.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #25
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Here's everything I get when I open home/pinewood/public_html/zencart/index.php and click 'view' in cPanel
    thanks.

    application/x-httpd-php index.php
    ASCII text

    </html>
    <?php
    /**
    * Load general code run before page closes
    */
    ?>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  6. #26
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    Here's everything I get when I open home/pinewood/public_html/zencart/index.php and click 'view' in cPanel
    thanks.

    application/x-httpd-php index.php
    ASCII text

    </html>
    <?php
    /**
    * Load general code run before page closes
    */
    ?>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
    I haven't looked at the contents of my store's root index.php in a while, but seems to me there is a LOT missing from yours. There's no beginning, no middle and well, the end is not understood because the rest of ZC is not being loaded at the beginning. Suggest comparing that index.php file with a default install version of one. Something has happened to yours if that is what is in your zencart subdirectory.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #27
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Yes, it seemed quite empty to me.
    For a bit of review: index.php seems to have gotten mostly erased when I did my first tiny attempts at editing a few words when i found it deep inside my dreamweaver cs4. As soon as I clicked upload and it was over in a flash. I am far too new at this to even have sorted out backup. And it was all loaded through softaculous in my cPanel.
    So....any idea where one can find a "that index.php file with a default install version of one"....or why I can't seem to get the new template I loaded to just replace the injured index.php?

  8. #28
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: beginner text edit question

    Just download the Zencart installation zip file, unzip it and upload includes/index.php to your server, overwriting the one that's there.

    I'm also going to suggest you use a proper FTP program like Filezilla to move files rather than Dreamweaver and/or the CPanel File Manager.

    You would never edit that file in any normal circumstance, anyway. You may have been looking for includes/languages/ENGLISH/index.php.
    Last edited by stevesh; 2 Mar 2014 at 09:21 PM.

  9. #29
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    Yes, it seemed quite empty to me.
    For a bit of review: index.php seems to have gotten mostly erased when I did my first tiny attempts at editing a few words when i found it deep inside my dreamweaver cs4. As soon as I clicked upload and it was over in a flash. I am far too new at this to even have sorted out backup. And it was all loaded through softaculous in my cPanel.
    So....any idea where one can find a "that index.php file with a default install version of one"....or why I can't seem to get the new template I loaded to just replace the injured index.php?
    The other part (less important than getting your site back up and running), the template affects how things appear, the index.php file that got modified somewhat makes the whole site work. The template gets referenced by the index.php file rather than replace it. Possibly a number of ways to explain, but basically your templat and the standard operation of ZC are two completely different things. Hopefully through stevesh' assistance you have found the file(s) needed to get your site to appear again. And maybe you'll get to see what your template looks like. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #30
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    OK, I downloaded & unzipped Zencart, uploaded (through Cyberduck) the index.php to replace home/pinewood/public_html/zencart/index.php
    and when I look at index.php now in cPanel it is full of code. However, when I go to control panel and open 'online catalog'
    http://pinewoodforge.com/zencart/index.php?main_page=
    It now has no content & no code. The plot thickens!
    thanks too for the education about different files with the same name, it do be confusing to a newby.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v139b Text box for Edit Category & Edit Product greyed out
    By irishshoppercom in forum Basic Configuration
    Replies: 0
    Last Post: 23 Oct 2013, 10:03 AM
  2. v150 How to edit header text/images, also edit pages?
    By Gary Compton in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Feb 2012, 10:01 PM
  3. Beginner question...
    By MaDd0g in forum Addon Payment Modules
    Replies: 1
    Last Post: 20 Jun 2010, 11:58 AM
  4. A couple of Question from a beginner
    By nomadrw in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Sep 2007, 05:51 PM

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