Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / help needed with editing files

help needed with editing files

Locked

Started by ben_harry on 16 Dec 2008, 9:08 AM · Views: 1,037

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Dec 2008, 9:08 AM
#1
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

help needed with editing files

Hi all, ive been designing zencart sites now for a couple of years and im quite familiar with how things work however for some reason my main files appear to have changed as an example here is my includes/languages/english/custom/header.php file

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 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: header.php 2940 2006-02-02 04:29:05Z drbyte $ */ // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Home'); define('HEADER_TITLE_LOGOFF', 'Log Out'); define('HEADER_TITLE_LOGIN', 'Log In'); // added defines for header alt and text define('HEADER_ALT_TEXT', ''); define('HEADER_SALES_TEXT', ''); define('HEADER_LOGO_WIDTH', '192px'); define('HEADER_LOGO_HEIGHT', '64px'); define('HEADER_LOGO_IMAGE', 'corbeau banner1.jpg'); // header Search Button/Box Search Button define('HEADER_SEARCH_BUTTON','Search'); define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here'); ?>

NOtice how at the end of each line it ends with &apos, im not sure why this is happening now, and if i make a change and save it it causes my site not to load giving the blank page.
Can anybody point me in the write direction.
Thanks

16 Dec 2008, 9:31 AM
#3
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: help needed with editing files

Hi thanks for your reply, i edit them via cpanel

16 Dec 2008, 9:57 AM
#4
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: help needed with editing files

I have the answere now, its down to a problem with the latest cpanel update which is causing it to comflict with IE it works as normal with firefox cpanels developers are working on a fix for the IE problem.

16 Dec 2008, 2:37 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: help needed with editing files

The editor in CPanel is not a good one to use to edit php files. It tends to put extra white space after the closing ?> which causes all sorts of problems. You are better off using a good text editor like Notepad++ or Crimson Editor, editing locally and FTPing the result to the website.

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