Totally Zenned
- Join Date:
- Jul 2005
- Location:
- Hoedspruit
- Posts:
- 470
- Plugin Contributions:
- 1
Stylesheets in /classic/
Do these files get copied to your overide folder
Views: 3,861
Totally Zenned
Do these files get copied to your overide folder
Sensei
only if you're building your new template based on "classic"
This article explains creating your new template step by step:
http://www.zen-cart.com/wiki/index.php/Customisation_-_Templates_-_Create
Totally Zenned
I've just attempted my first upgrade, and things didn't turn out the way they're meant to. I have a home backup.
It's still a test site, so I'm not phased, but you can view here
I know it's a big screw up, but how else do I learn?
Totally Zenned
Sensei
The "s" will be somewhere in one of your language or header files ... well, in one of the various PHP files you touched while upgrading..... it's most likely a stray character accidentally left in one of the files you edited.
The alignment problems are likely related to the "s" being on the page.
The database-upgrade alert is resolved by upgrading the database .... which is done by the zc_install/index.php (documented in the upgrade instructions).
Totally Zenned
The "s" also appears im my admin - on the login page next to the login box, and when ur in, at top left as in the site screenshot
Looking for an "s" through everyfile is probably worse than needle in a ........
Totally Zenned
Thank you DrByte
I have, or rather, reading, understanding and applying the correct procedures, has resolved most of the issues. Now to get rid of that pesky little "s"
parafanaylya
Totally Zenned
This issue is beyond me - the "s" is on all pages of my site, and it's displaying in admin as well. Any ideas anybody. What file shares both admin and site?
It can only be in one of the changes files, but has any body looked for a stray "s" b4, I wish it had been a Q or a whole word!
Please:huh:
Inactive
try common/html_header.php
Just wondering why are you using 2 stylesheets?
Only stylesheet2.css is required for that template, stylesheet.css
not required, as coded from template_default, not Classic
Template also tested using Internet Explorer and Firefox, works fine
:dontgetit
Totally Zenned
Hello Misty
Just wondering why are you using 2 stylesheets?
cos I'm a mechanic and don't know what I'm doing. Do I delete the unwanted then
Inactive
Do I delete the unwanted then
Entirely your decision, as now almost one month since
you installed template, and have no way of knowing
what alterations/additions you may have made in that
time. The "s" seems to have appeared since your upgrade.
Totally Zenned
Yes - it came with the updates to 1.3.0.2, but all I did was check and merge.
Something just crossed my mind. An overide where I metricated the unit of measure - where lbs becomes kg - I'll go look there
I enjoy the challenge - and have always taken on things that are (a challenge)
Totally Zenned
Couldn't find anything there, so I've decided to try the following:
download the new patch (in case I corrupted the file in the merge process) - merge my custom files into the new
restore from backup, and do new upload
Totally Zenned
The restore fixed the problem. Other priorities to sort right now.
Next time I do the upgrade, I'll do an even more thorough merge, and then upload the patch :thumbsup:
Totally Zenned
I found the li'l "s", and I know how he got there.
I don't like using my mouse, and rather use keyboard shortcuts. The cursor was lurking - see below - and I obviously missed the CTRL key the first time:
s<?php
/**
- functions/sessions.php
- Session functions
- @package functions
- @copyright Copyright 2003-2005 Zen Cart Development Team
- @copyright Portions Copyright 2003 osCommerce
- @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
- @version $Id: sessions.php 3772 2006-06-13 18:51:58Z wilt $
Sensei
That's a very peculiar file to be editing .......
Totally Zenned
I didn't actually edit the file, I obviously placed the cursor in the file in that position. whilst in Winmerge, I had a sip of coffee, hit (missed CTRL) and "s" keys , closed - saw that it wasn't saved, saved the mistake and screwed my site up.
I now know, that one only needs to merge the files that you have customised for your site, but my lack of experience and understanding, doesn't allow me the the luxury yet, of merging customised files only. Hopefully one day I will start getting a better grip of what's going on around here. I have come a long way, but I 've a longer way to go yet. See you there one day. :thumbsup:
Sensei
Sounds like you're making good progress.
Here's a tip .... to find out which files you've customized, open another WinMerge session, and compare your "old" version files with the "original" files for that old version .... ie: old version was 1.2.6, compare your customized files against a fresh untouched 1.2.6 fileset.
Doing this lets you see exactly which files you need to be "careful" with.
So, if /includes/functions/functions_email.php are both the same in 1.2.6 and your customized 1.2.6, but you're upgrading to 1.2.7 and it shows as changed between your customized files and the new files, then it's safe to merge them.....
Totally Zenned
Thanks for the advice - now another issue.
I have just restored my DB from a home backup for the the new site and - 0 products. I don't understand this. Fortunately, I have everything on EP, and looking through my CPanel, all the image files and overides are there. Anyway - I'll wait for the home directory back up restore to finish, and then I'll restore the database back up again. Holding thumbs.
Sensei
are table-prefixes still correct?
What version of MySQL was on the server you did your backup on? What version are you restoring to?
Tell staff why this post should be reviewed.