Forums / Templates, Stylesheets, Page Layout / modifying english.php breaks SOME things

modifying english.php breaks SOME things

Locked
Results 1 to 14 of 14
This thread is locked. New replies are disabled.
29 Mar 2008, 17:40
#1
pelicanart avatar

pelicanart

New Zenner

Join Date:
Mar 2008
Posts:
6
Plugin Contributions:
0

modifying english.php breaks SOME things

Hi - I've tried changing the file english.php and storing it back into the proper place (includes/language/classic/english.php). But it breaks the cart and some displays, but not all of them. For example, if you click on the "manufacturer" Chris Clark, you get a blank page, but if you click on Stanley Mouse, the products are listed.

I have gotten down to just trying to change a sidebox title, from "Sponsors" to "Gallery Images" and then ftping it back to the proper site. Breaks again.

I'm using Dreamweaver CS3 as my development tool and ftp agent.

You can see the site at http://pelicanart.com/on-line-sales/

:dontgetit
TIA.
Donna
29 Mar 2008, 18:11
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

PelicanArt:

I'm using Dreamweaver CS3 as my development tool and ftp agent.


This is your problem. Keep away from Dreamweaver - use a vanilla FTP program like filezilla.

Zencart (and any other php-driven site) does not like WYSIWYG html editors.
29 Mar 2008, 18:51
#3
pelicanart avatar

pelicanart

New Zenner

Join Date:
Mar 2008
Posts:
6
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

Well, I created another set of pages which are php-based, connecting to a MySQL db backend on the same server (at the base site of http://www.PelicanArt.com) and haven't had these problems. So I respectfully ask for further details on what PART of php sites Dreamweaver corrupts.

donna
29 Mar 2008, 18:58
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: modifying english.php breaks SOME things

I disagree with Schoolboy on this one.

Dreamweaver itself is fine. I use it all the time.

I agree that using DW for mass file transfers is not advisable (FTP is not its strength), and that FileZilla for transferring more than a couple files is far more reliable.

But as to editing PHP files, DW is fine, but only in code view.


Your problems are likely related to syntax errors you're creating in the PHP, or related to blank lines/spaces at the end of the file.

You haven't posted what exact PHP error is occurring ... you only mentioned a blank page.
I suggest that finding the actual error could prove more useful than the guesswork you're doing at the moment:
https://www.zen-cart.com/tutorials/index.php?article=82
29 Mar 2008, 19:01
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

... A couple of years ago I was doing the same thing with dreamweaver, and assumed it would be a good fit with zencart work - but it kept breaking things. Just why it did this, I don't know - and I had no intention of wasting precious time delving into code issues (better to spend time to market the business and sell products).

So I followed advice on the forum, ditched Dreamweaver for zencart stuff, and have had few problems since.
29 Mar 2008, 19:37
#6
pelicanart avatar

pelicanart

New Zenner

Join Date:
Mar 2008
Posts:
6
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

I looked at my server error logs and they are not showing anything relative to Zen Cart.

I created the configure.php suggested in the tutorial referenced and looked at the Notices and Warnings on the two pages I keep comparing. (the ones loaded when you click on the "manufacturer" of Chris Clark or Stanley Mouse).

No fatal error messages. The two warning messages reference files which I did not touch at all :
includes/functions/functions_general.php
and
includes/init_includes/init_templates.php

The configure.php file is still active, in case you wish to see what I'm seeing.

Does the downloadable tool referenced in article 82 give different information than the configure.php ?

d
29 Mar 2008, 19:55
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: modifying english.php breaks SOME things

PelicanArt:


Does the downloadable tool referenced in article 82 give different information than the configure.php ?
To some degree, yes. It should tell you exactly where you have PHP errors occurring.
If you post the errors from the logs it generates, perhaps we can help you identify the exact cause of your problems.
29 Mar 2008, 20:18
#8
pelicanart avatar

pelicanart

New Zenner

Join Date:
Mar 2008
Posts:
6
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

Here are ALL the Notices and Warnings generated by the page which is blank:
(these are coming after using the configure.php file, not with the downloadable tool, which I'll install next)

Notice: Constant OFFICE_IP_TO_HOST_ADDRESS already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/email_extras.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /home/pelicana/public_html/on-line-sales/includes/languages/english/email_extras.php:52) in /home/pelicana/public_html/on-line-sales/includes/init_includes/init_templates.php on line 78

Notice: Constant TABLE_HEADING_PRODUCTS already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/classic/index.php on line 69

Notice: Constant TABLE_HEADING_QUANTITY already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/classic/index.php on line 73

Notice: Constant TEXT_MAIN already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 10

Notice: Constant TEXT_GREETING_GUEST already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 14

Notice: Constant TEXT_GREETING_PERSONAL already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 19

Notice: Constant TEXT_INFORMATION already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 21

Notice: Constant HEADING_TITLE already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 32

Notice: Constant TABLE_HEADING_IMAGE already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 33

Notice: Constant TABLE_HEADING_MODEL already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 34

Notice: Constant TABLE_HEADING_PRODUCTS already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 35

Notice: Constant TABLE_HEADING_MANUFACTURER already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 36

Notice: Constant TABLE_HEADING_QUANTITY already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 37

Notice: Constant TABLE_HEADING_PRICE already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 38

Notice: Constant TABLE_HEADING_WEIGHT already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 39

Notice: Constant TABLE_HEADING_BUY_NOW already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 40

Notice: Constant TEXT_NO_PRODUCTS already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 41

Notice: Constant TEXT_NO_PRODUCTS2 already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 42

Notice: Constant TEXT_NUMBER_OF_PRODUCTS already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 43

Notice: Constant TEXT_SHOW already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 44

Notice: Constant TEXT_BUY already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 45

Notice: Constant TEXT_NOW already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 46

Notice: Constant TEXT_ALL_CATEGORIES already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 47

Notice: Constant TEXT_ALL_MANUFACTURERS already defined in /home/pelicana/public_html/on-line-sales/includes/languages/english/index.php on line 48

Warning: Cannot modify header information - headers already sent by (output started at /home/pelicana/public_html/on-line-sales/includes/languages/english/email_extras.php:52) in /home/pelicana/public_html/on-line-sales/includes/functions/functions_general.php on line 44

Notice: Object of class queryFactoryResult could not be converted to int in /home/pelicana/public_html/on-line-sales/includes/functions/functions_general.php on line 19
29 Mar 2008, 20:28
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: modifying english.php breaks SOME things

What version of Zen Cart?
What version of PHP?
29 Mar 2008, 20:29
#10
pelicanart avatar

pelicanart

New Zenner

Join Date:
Mar 2008
Posts:
6
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

Here is what is in the FIRST of two debug files in the /cache/ dir:

[29-Mar-2008 14:24:17] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pelicana/public_html/on-line-sales/includes/languages/english.php:1401) in /home/pelicana/public_html/on-line-sales/includes/init_includes/init_templates.php on line 78

Here is what is in the SECOND:

[29-Mar-2008 14:24:23] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pelicana/public_html/on-line-sales/includes/languages/english.php:1401) in /home/pelicana/public_html/on-line-sales/includes/init_includes/init_templates.php on line 78
[29-Mar-2008 14:24:23] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pelicana/public_html/on-line-sales/includes/languages/english.php:1401) in /home/pelicana/public_html/on-line-sales/includes/functions/functions_general.php on line 44


This is still making no sense to me.
29 Mar 2008, 20:36
#11
pelicanart avatar

pelicanart

New Zenner

Join Date:
Mar 2008
Posts:
6
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

1.3.8 and 5.2.5
29 Mar 2008, 20:55
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: modifying english.php breaks SOME things

PelicanArt:

Here is what is in the FIRST of two debug files in the /cache/ dir:

[29-Mar-2008 14:24:17] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pelicana/public_html/on-line-sales/includes/languages/english.php:1401) in ...


Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=87
29 Mar 2008, 21:46
#13
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

DrByte:

I disagree with Schoolboy on this one.

Dreamweaver itself is fine. I use it all the time.

I agree that using DW for mass file transfers is not advisable (FTP is not its strength), and that FileZilla for transferring more than a couple files is far more reliable.

But as to editing PHP files, DW is fine, but only in code view.


Hmmmm... Perhaps I should give it another try then... If Doc says it interfaces well, then my problems a couple of years ago were probably ME and not DW. :blush:
21 Jun 2008, 06:38
#14
ariadne avatar

ariadne

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Re: modifying english.php breaks SOME things

I had the same problem. I found that for some reason, when I edited the file using Dreamweaver, I left some extra lines at the end. I got rid of these and everything worked fine.