Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Mar 2008
    Posts
    6
    Plugin Contributions
    0

    Default 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/


    TIA.
    Donna
    [FONT="Arial Narrow"]Donna[/FONT]

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: modifying english.php breaks SOME things

    Quote Originally Posted by PelicanArt View Post
    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.
    20 years a Zencart User

  3. #3
    Join Date
    Mar 2008
    Posts
    6
    Plugin Contributions
    0

    Default 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
    [FONT="Arial Narrow"]Donna[/FONT]

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default 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.
    20 years a Zencart User

  6. #6
    Join Date
    Mar 2008
    Posts
    6
    Plugin Contributions
    0

    Default 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
    [FONT="Arial Narrow"]Donna[/FONT]

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: modifying english.php breaks SOME things

    Quote Originally Posted by PelicanArt View Post
    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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Mar 2008
    Posts
    6
    Plugin Contributions
    0

    Default 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
    [FONT="Arial Narrow"]Donna[/FONT]

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: modifying english.php breaks SOME things

    What version of Zen Cart?
    What version of PHP?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Mar 2008
    Posts
    6
    Plugin Contributions
    0

    Default 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.
    [FONT="Arial Narrow"]Donna[/FONT]

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 5 Jan 2010, 02:58 PM
  2. Modifying english.php
    By ctc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Aug 2006, 11:46 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