Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Upgrading from 1.55e to 1.57d - problems with language files

    I have upgraded my ZC from 1.55e to 1.57d. My shop is a bookshop for local history. Everything seems to be alright with the English and the German versions of the shop. Testing both versions I can place orders and orders are getting through to my email inbox. But when I try to install the Norwegian language files, I can only navigate around looking at different books. As soon as I click 'Add to cart' I get a blank page. Same when clicking 'Write a review' or 'Search'. The Norwegian language files I have been using from ver. 1. 39, at several upgrades I have just uploaded them to the server and everything has been working. But this time: no. I have no other plugins. I get a lot of log files, enclosing the log file showing up when clicking 'Add to cart'.
    [17-Apr-2022 14:40:41 UTC] Request URI: /butikk157d/index.php?main_page=product_info&cPath=1&products_id=22, IP address: .
    #1 header() called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/init_includes/init_templates.php:80]
    #2 require_once(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/init_includes/init_templates.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/autoload_func.php:37]
    #3 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/autoload_func.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/application_top.php:222]
    #4 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/application_top.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/index.php:25]
    --> PHP Warning: Cannot modify header information - headers already sent by (output started at /customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/languages/norwegian.php:1) in /customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/init_includes/init_templates.php on line 80.

    [17-Apr-2022 14:40:41 UTC] Request URI: /butikk157d/index.php?main_page=product_info&cPath=1&products_id=22, IP address: .
    #1 header() called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/html_header.php:20]
    #2 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/html_header.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/index.php:42]
    --> PHP Warning: Cannot modify header information - headers already sent by (output started at /customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/languages/norwegian.php:1) in /customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/html_header.php on line 20.

    [17-Apr-2022 14:40:41 UTC] Request URI: /butikk157d/index.php?main_page=product_info&cPath=1&products_id=22, IP address: .
    #1 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/templates/tpl_product_info_display.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/modules/pages/product_info/main_template_vars.php:153]
    #2 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/modules/pages/product_info/main_template_vars.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #3 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/index.php:94]
    --> PHP Warning: Use of undefined constant BUTTON_IMAGE_ASK_A_QUESTION - assumed 'BUTTON_IMAGE_ASK_A_QUESTION' (this will throw an Error in a future version of PHP) in /customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/templates/tpl_product_info_display.php on line 94.

    [17-Apr-2022 14:40:41 UTC] Request URI: /butikk157d/index.php?main_page=product_info&cPath=1&products_id=22, IP address: .
    #1 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/templates/tpl_product_info_display.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/modules/pages/product_info/main_template_vars.php:153]
    #2 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/modules/pages/product_info/main_template_vars.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #3 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/index.php:94]
    --> PHP Warning: Use of undefined constant BUTTON_ASK_A_QUESTION_ALT - assumed 'BUTTON_ASK_A_QUESTION_ALT' (this will throw an Error in a future version of PHP) in /customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/templates/tpl_product_info_display.php on line 94.

    [17-Apr-2022 14:40:41 UTC] Request URI: /butikk157d/index.php?main_page=product_info&cPath=1&products_id=22, IP address: .
    #1 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/templates/tpl_product_info_display.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/modules/pages/product_info/main_template_vars.php:153]
    #2 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/modules/pages/product_info/main_template_vars.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #3 require(/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/index.php:94]
    --> PHP Warning: Use of undefined constant ARIA_QTY_ADD_TO_CART - assumed 'ARIA_QTY_ADD_TO_CART' (this will throw an Error in a future version of PHP) in /customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/includes/templates/responsive_classic/templates/tpl_product_info_display.php on line 164.

    I'm not too experienced with php and mysql, I hope somebody will look into this as I'm stuck after searching all around for solutions.

    Geir

    https://osteroy-sogelag.org/butikk157d
    Zencart 1.5.7d
    PHP: 7.4.29

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    For that "headers already sent" issue, check that the /includes/languages/norwegian.php doesn't have an ending ?> with one or more blank lines following. If so, simply remove that ?>, leaving only a single blank line after all the definitions.

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

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    Thanks for the tip. Checked that, but it's OK, no ?> at the end of the file.
    But after posting, I found that the file should be saved without BOM. That seems to prevent a blank page, but still no normal shopping cart.
    1: PHP Warning: Use of undefined constant. How do I cope with this problem?
    2. Alle requires: How do I fix these issues?
    Geir

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    Quote Originally Posted by Ormhaugen View Post
    Thanks for the tip. Checked that, but it's OK, no ?> at the end of the file.
    But after posting, I found that the file should be saved without BOM. That seems to prevent a blank page, but still no normal shopping cart.
    1: PHP Warning: Use of undefined constant. How do I cope with this problem?
    2. Alle requires: How do I fix these issues?
    Geir
    Use a file/directory comparison tool (like Beyond Compare) and compare the norwegian language-directory's files to those distributed with zc157d. While the language-specific value will be different, that will let you know what definitions are missing from the norwegian files and also what definitions are no longer used.

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

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    Thanks for help.
    Found two files missing in my old language pack. Shopping cart working when copying the to the shop.
    But still have som requires, like this:
    #1 require(/customers/b/9/1/c8eok39a9/webroots/xxxxxxxx/butikk157d/braWn-LNR-cameL/includes/javascript_loader.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/braWn-LNR-cameL/includes/admin_html_head.php:66]

    How do I correct this? That is: how do I set up the right path to the referred file?
    Geir

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    Quote Originally Posted by Ormhaugen View Post
    Thanks for help.
    Found two files missing in my old language pack. Shopping cart working when copying the to the shop.
    But still have som requires, like this:
    #1 require(/customers/b/9/1/c8eok39a9/webroots/xxxxxxxx/butikk157d/braWn-LNR-cameL/includes/javascript_loader.php) called at [/customers/b/9/1/c8eok39a9/webroots/r510470/butikk157d/braWn-LNR-cameL/includes/admin_html_head.php:66]

    How do I correct this? That is: how do I set up the right path to the referred file?
    Geir
    You're missing that file from the zc157 distribution. Ensure that it's been included ... and change the name of your admin directory.

  7. #7
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    The file 'javascript_loader.php' is present in the admin/includes folder.
    It's referred to like this in 'admin_html_head.php': require(DIR_WS_INCLUDES . 'javascript_loader.php');
    I can't get this right. As far as I can see, it should be OK. But ZC reports it.
    Is there something wrong with the path in the 'admin_html_head.php' ?
    Publicly showing the admin directory wasn't too smart, - changed. Thanks.
    Geir

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    Could you post the full contents of that log ... after xxx-ing out the admin directory name?

  9. #9
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    I don't have that log anymore, but enclosing a similar log with a lot of requires from the shop catalog (not admin). I've chosen 4 examples showing different references. I have checked that the files required really are present on the server, no files missing.
    I still can't see why ZC is reporting those requires.

    [19-Apr-2022 15:38:54 UTC] Request URI: /xxxxxxxx/index.php?main_page=product_info&cPath=3&products_id=61, IP address: .

    #1 require(/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/includes/templates/responsive_classic/templates/tpl_products_next_previous.php) called at [/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/includes/templates/responsive_classic/templates/tpl_product_info_display.php:196]
    Referred like this in tpl_product_info_display.php:196:
    require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>

    #2 require(/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/includes/templates/responsive_classic/templates/tpl_product_info_display.php) called at [/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/includes/modules/pages/product_info/main_template_vars.php:153]
    Referred like this in main_template_vars.php:153:
    require($template->get_template_dir($tpl_page_body,DIR_WS_TEMPLATE, $current_page_base,'templates'). $tpl_page_body);

    #3 require(/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/includes/modules/pages/product_info/main_template_vars.php) called at [/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    Referred like this in tpl_main_page.php:178
    require($body_code);

    #4 require(/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/customers/b/9/1/zzzzzzzz/webroots/r510470/xxxxxxxx/index.php:94]
    Referred like this in index.php:94:
    require($template->get_template_dir('tpl_main_page.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_main_page.php');

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Upgrading from 1.55e to 1.57d - problems with language files

    That's not the full log; a log normally contains a backtrace of who-called-who as well as a PHP notice/warning/error code.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Can't create new items or categories since upgrading to v1.55e
    By britdart in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 19 Jan 2018, 10:27 PM
  2. v154 Chinese Language from Database Garbled after upgrading from v137
    By haostaff in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 21 May 2015, 04:01 AM
  3. Problems with importing from osCommerce, with language
    By blondu' in forum General Questions
    Replies: 0
    Last Post: 22 Oct 2011, 08:05 PM
  4. Problems with my SEO URLs after upgrading from v1.3.7
    By vladimir_vulic in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Jul 2010, 12:02 AM
  5. Problems with downloading files from my shop
    By catrine in forum General Questions
    Replies: 0
    Last Post: 11 Oct 2006, 02:12 PM

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