Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default blank page after switching language

    Working on v2.1.0 on local (php 8.2) I installed bootstrap template, and cloned it, they would work fine with the default language set to English, when I changed default to Italian the page went blank, it stayed blank even when changing back to English.
    It works fine with the responsive classic, but not bootstrap or its clone; no changes to either of them.

    Peculiar fact is that I did the same on a live server, and it does not go blank, and works fine with both bootstrap, and its clone.

    The log file reports:
    PHP Fatal error: Uncaught Error: Undefined constant "TEXT_HEADER_ARIA_LABEL_NAVBAR" in C:\path-to\zencart\includes\templates\bootstrap\common\tpl_header.php:25

    Not a big problem, as I can work on the live server, just curious to understand why in local behaves like this.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,939
    Plugin Contributions
    96

    Default Re: blank page after switching language

    On your local site, check to see if any files named header.php (not lang.header.php) exist in any of these directories, where bootstrap-clone is the name of your cloned bootstrap template:

    /includes/languages/english
    /includes/languages/italian
    /includes/languages/english/bootstrap-clone
    /includes/languages/italian/bootstrap-clone

  3. #3
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: blank page after switching language

    Thanks.
    No header.php or lang.header.php in the directories you suggested, however it put me on the right track, perhaps I was tired when adding the Italian package, and missed to copy it into the extra_definitions directory, did so, and all is fine.

 

 

Similar Threads

  1. v158 blank page when switching to php 8.x
    By HeathenMagic in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 21 Jan 2025, 04:58 PM
  2. blank admin page after installing dutch language pack
    By LadyoftheCave in forum General Questions
    Replies: 4
    Last Post: 2 Feb 2021, 06:01 PM
  3. v150 Blank Sidebox Blank Page after adding code for livechat software
    By whatisthat456 in forum Basic Configuration
    Replies: 8
    Last Post: 3 May 2012, 10:40 AM
  4. Blank Confirmation page when switching from PHP4 to PHP5
    By gump47371 in forum General Questions
    Replies: 4
    Last Post: 28 Sep 2011, 11:26 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