Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    Hello, my reply to this yesterday seemed to have failed....
    No, no backups made so far, I am such a newby I'm still looking for the gearshift!, so I thought to load up a trial new template to replace the default one I seem to have lost. here's the result:

    When I am in Admin control panel>tools>template selection>templates installed>classic contemporary green>preview
    it opens a page properly
    control panel>tools>template selection>twist of nature>preview
    I get this:
    Forbidden
    You don't have permission to access /zencart/includes/images/scr_nature.jpg on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    In cPanel here's the directory where I placed the new template according to it’s instructions:
    public_html/zencart/includes/templates/Twist of Nature/twist_of_nature

    In cPanel I see also this:
    public_html/zencart/includes/templates/images/scr_nature.jpg (permission 0755)

    Is this enough to go on to help me get started again? thanks!
    Quote Originally Posted by stevesh View Post
    The preview function in Admin - Tools - Template Selection only displays an image of the template, not your site using it, so it's pretty much worthless and I wouldn't worry about it.

    Remove that Dreamweaver text and see if your pages come back.
    Isn't the template in the wrong directory? Shouldn't it be installed in:
    public_html/zencart/includes/templates/twist_of_nature?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Quote Originally Posted by mc12345678 View Post
    Isn't the template in the wrong directory? Shouldn't it be installed in:
    public_html/zencart/includes/templates/twist_of_nature?
    I wondered at that since there are 2 folders titled 'twist of nature' , one upper case, one lower case
    again, here is what exists presently

    public_html/zencart/includes/templates/Twist of Nature/twist_of_nature

    So do you mean the lower case folder should sit next to the upper case folder - both together under /templates/?

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

    Default Re: beginner text edit question

    Quote Originally Posted by stevesh View Post
    The preview function in Admin - Tools - Template Selection only displays an image of the template, not your site using it, so it's pretty much worthless and I wouldn't worry about it.

    Remove that Dreamweaver text and see if your pages come back.
    I referred to the preview button because the new template showed no where else, I took the advice, went back into Dreamweaver, removed the text I had added, and a different errror shows up now, of course I have no idea what it means by 'line 7' for:
    http://pinewoodforge.com/zencart/index.php?main_page=

    Warning: require(DIR_WS_INCLUDESapplication_bottom.php) [function.require]: failed to open stream: No such file or directory in /home/pinewood/public_html/zencart/index.php on line 7

    thanks

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

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    I wondered at that since there are 2 folders titled 'twist of nature' , one upper case, one lower case
    again, here is what exists presently

    public_html/zencart/includes/templates/Twist of Nature/twist_of_nature

    So do you mean the lower case folder should sit next to the upper case folder - both together under /templates/?
    I don't think the capitalized version is even necessary. Just the underlined version underneath the includes/templates directory.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: beginner text edit question

    Like most mods (and other zipped programs) the mod files are contained inside a preliminary folder, in this case Twist Of Nature. You want to upload the twist_of_nature folder into includes/templates.

  6. #16
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Thanks, so far so good, what was confusing was that also inside the Twist Of Nature folder was 'header.psd', so I moved it too. Anyway, I now show 'twist of nature' to be default template in tools>template selection page, however, when I open 'online catalog' where the other one was that I lost, i still get an error message......
    but progress is being made! thanks

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

    Default Re: beginner text edit question

    Quote Originally Posted by lat9 View Post
    You're looking at the admin (/YOUR_ADMIN/includes/languages/english/index.php) version of the file which, as you've noted, is totally different.

    You should look to /includes/languages/english/YOUR_TEMPLATE/index.php and, if that file's not yet present, copy /includes/languages/english/index.php and make your edits in the template-override directory.

    If you haven't chosen a template yet, I'd suggest that you do that first (it'll be a lot easier). Look in the Plugins area for "Templates"; there are a bunch of very nice ones that you can adapt to your needs.
    Now that I at last have a new template showing up in control panel>tools>template selection as default, I looked where in you said
    /includes/languages/english/YOUR_TEMPLATE/
    but it is not there, so then i looked for a long time in both cPanel and admin control panel for the 'template-override directory' you mentioned to fix this - but can't seem to find such, can you please give directions to it?
    thanks!

  8. #18
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    Now that I at last have a new template showing up in control panel>tools>template selection as default, I looked where in you said
    /includes/languages/english/YOUR_TEMPLATE/
    but it is not there, so then i looked for a long time in both cPanel and admin control panel for the 'template-override directory' you mentioned to fix this - but can't seem to find such, can you please give directions to it?
    thanks!
    You understand that /includes/languages/english/YOUR_TEMPLATE/index.php means that with twist_of_nature being your current template that you should be looking in or for: includes/languages/english/twist_of_nature/index.php correct?

    If that directory does not exist, then create a sub-directory of twist_of_nature under includes/languages/english and then copy the index.php from includes/languages/english to includes/languages/english/twist_of_nature.

    This is basically your first lesson in the template override system. The idea is that you always leave the default or original programming the way it was, and that you instead copy it over to your template and then make changes to it there. For files/directories that are recognized by Zen Cart as being overrideable will be loaded at least first before loading one of the default files, and in most cases will be loaded instead of the original/default files. (If not mistaken files in the languages directory work like first described, the override file is loaded and then the original file is loaded...)

    That help you through your situation?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #19
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Quote Originally Posted by mc12345678 View Post
    You understand that /includes/languages/english/YOUR_TEMPLATE/index.php means that with twist_of_nature being your current template that you should be looking in or for: includes/languages/english/twist_of_nature/index.php correct?

    If that directory does not exist, then create a sub-directory of twist_of_nature under includes/languages/english and then copy the index.php from includes/languages/english to includes/languages/english/twist_of_nature.

    This is basically your first lesson in the template override system. The idea is that you always leave the default or original programming the way it was, and that you instead copy it over to your template and then make changes to it there. For files/directories that are recognized by Zen Cart as being overrideable will be loaded at least first before loading one of the default files, and in most cases will be loaded instead of the original/default files. (If not mistaken files in the languages directory work like first described, the override file is loaded and then the original file is loaded...)

    That help you through your situation?
    There was no folder titled /twist_of_nature/ where you said it should be, you said to add a subdirectory, I saw no such word, but saw I can add a folder there so I did that and named it 'twist_of_nature', then managed, to copy the file /index.php into it.
    I have no idea if this is to fix my most basic problem of getting a front page back, but when I clicked on 'online catalog' in my admin panel it still shows only the errors as before:

    Warning: require(DIR_WS_INCLUDESapplication_bottom.php) [function.require]: failed to open stream: No such file or directory in /home/pinewood/public_html/zencart/index.php on line 7

    Warning: require(DIR_WS_INCLUDESapplication_bottom.php) [function.require]: failed to open stream: No such file or directory in /home/pinewood/public_html/zencart/index.php on line 7

    Fatal error: require() [function.require]: Failed opening required 'DIR_WS_INCLUDESapplication_bottom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pinewood/public_html/zencart/index.php on line 7

    thanks for sticking with me!

  10. #20
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    There was no folder titled /twist_of_nature/ where you said it should be, you said to add a subdirectory, I saw no such word, but saw I can add a folder there so I did that and named it 'twist_of_nature', then managed, to copy the file /index.php into it.
    I have no idea if this is to fix my most basic problem of getting a front page back, but when I clicked on 'online catalog' in my admin panel it still shows only the errors as before:

    Warning: require(DIR_WS_INCLUDESapplication_bottom.php) [function.require]: failed to open stream: No such file or directory in /home/pinewood/public_html/zencart/index.php on line 7

    Warning: require(DIR_WS_INCLUDESapplication_bottom.php) [function.require]: failed to open stream: No such file or directory in /home/pinewood/public_html/zencart/index.php on line 7

    Fatal error: require() [function.require]: Failed opening required 'DIR_WS_INCLUDESapplication_bottom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pinewood/public_html/zencart/index.php on line 7

    thanks for sticking with me!
    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/');
    ?
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 2 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