Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2009
    Posts
    4
    Plugin Contributions
    0

    help question Coding Changes not Taking Effect



    This always happens! It's where I will be uploading a new
    replacement image, or a snippet of code like in english/header.php
    for a different logo filename. Save, upload, refresh - no effect!
    Then I'll leave it for 12hrs, come back and -then- it changes.


  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Coding Changes not Taking Effect

    Sometimes you get this effect with cached files/info. Clearing your browser cache may help.

  3. #3
    Join Date
    Apr 2009
    Posts
    4
    Plugin Contributions
    0

    Have a Drink Re: Coding Changes not Taking Effect

    I thought the same thing, and tried clearing the
    Firefox/IE cache... still nothing.

    What has spurred me to post about this is the fact
    that I am changing the /languages/english/header.php
    file value for HEADER_LOGO_IMAGE, and it simply
    refuses to update my store with the new logo.

    Could this be some kind of database issue, or a
    server glitch?

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Coding Changes not Taking Effect

    I hope you are following the override/template systen and saving your changes to languages/english/YOUR_TEMPLATE/header.php.

    What folder did you upload your header image to?

    Can you post a link to your site?
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Apr 2009
    Posts
    4
    Plugin Contributions
    0

    application error Re: Coding Changes not Taking Effect

    Well I guess I solved my own problem... instead
    of editing the correct file, I was editing that
    other one.

    I'm using the 'classic' template as a base, which
    will eventually become my own custom template. It
    holds then that editing the default header.php in
    languages/english would have no effect. Changing
    the english/classic/header.php is what I wanted.

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Coding Changes not Taking Effect

    Please create your own custom folders before you go too far. Editing the files in the classic folders is unwise since those files will be overwritten with an upgrade/update.

    This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  7. #7
    Join Date
    Oct 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Coding Changes not Taking Effect

    Quote Originally Posted by afo View Post
    Please create your own custom folders before you go too far. Editing the files in the classic folders is unwise since those files will be overwritten with an upgrade/update.

    This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.
    Hi,

    Changes I made to:
    1. /includes/languages/mytemplate/english.php
    /include/languages/english/mytemplate/index.php
    /includes/languages/english/html_includes/mytemplate
    /define_main_page...
    2. /includes/templates/mytemplate

    work perfectly on my local XAMPP.


    But when I upload the changes to my webhost server (Linux/Unix) (latest ZC 1.3.8a) using Filezilla - only changes in 2. work. None in 1. has any effect.

    I've re-uploaded those .php files many times. Still nothing changed. Refreshed, Cleared cached many times. No use.
    I've been scanning ZC Tutorials/FAQ/forum for a couple of days now. Some answers are very good, but they don't apply to my problem.

    Please help.

    Len.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Coding Changes not Taking Effect

    Are you sure you have the right permissions on those folders/files? Are you sure you are uploading them to the correct locations? Does Filezilla say the upload was successful? When you go to replace one of those files, what is the revision date/time on the remote copy?

  9. #9
    Join Date
    Oct 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Coding Changes not Taking Effect

    Quote Originally Posted by afo View Post
    Please create your own custom folders before you go too far. Editing the files in the classic folders is unwise since those files will be overwritten with an upgrade/update.

    This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.
    Quote Originally Posted by gjh42 View Post
    Are you sure you have the right permissions on those folders/files? Are you sure you are uploading them to the correct locations? Does Filezilla say the upload was successful? When you go to replace one of those files, what is the revision date/time on the remote copy?
    --------
    Thanks for the reply.
    1. I CHMOD everything in /includes/ and its subdirs to 0777 (which is stupidly unnecessary)
    2. Upload english.php from my HD to store/includes/languages/mytemplate/english.php (overwrite the existing one). Filezilla says "Directory listing successful". Revision date/time is 16/10/09 2:52:37 AM which is few minutes ago at my location. Filesize becomes a bit smaller as happened to all files when uploaded (37,999 on my HD, 37,306 on the server). Permission becomes 0644.
    3. Similar thing done with /includes/languages/english/mytemplate/index.php, /includes/languages/english/html_includes/mytemplate/define_main_page.

    Checked my site. Refreshed. Still no effect

    Please keep helping.

    Len.

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Coding Changes not Taking Effect

    That's definitely odd. I'm afraid I can't think of anything else at the moment. Clearing your cache should not be necessary, as I see uploaded changes without doing that, but it couldn't hurt to try it.
    Hopefully someone else has some better ideas.

 

 

Similar Threads

  1. v153 My stylesheet.css changes arent immediately taking effect, standard steps taken.
    By evosmash in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Sep 2015, 02:23 AM
  2. v139h Meta tag changes not taking effect
    By jgold723 in forum General Questions
    Replies: 1
    Last Post: 8 Oct 2013, 07:45 PM
  3. Changes made to Stylesheet not taking effect
    By lani_ezara in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jun 2010, 02:10 PM
  4. custom stylesheet changes not taking effect
    By tlyczko in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 May 2008, 08:50 AM
  5. Product changes not taking effect
    By nickbulka in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 14 Nov 2006, 03:23 AM

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