Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2006
    Posts
    326
    Plugin Contributions
    0

    Default init_templates.php error

    My error logs (1.3.02) are FILLED with the following error:

    main(): Failed opening 'includes/languages/english.php' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/photoimprints.com/httpdocs/includes/init_includes/init_templates.php on line 72

    In viewing that file, I see:
    // THE FOLLOWING MIGHT NEED TO BE DISABLED DUE TO THE EXISTENCE OF function() DECLARATIONS IN MASTER ENGLISH.PHP FILE
    // THE FOLLOWING MAY ALSO SEND NUMEROUS ERRORS IF YOU HAVE ERROR_REPORTING ENABLED, DUE TO REPETITION OF SEVERAL DEFINE STATEMENTS
    include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');

    Should it be disabled? Can anyone tell me what this is?
    Thanks in advance,
    Give us your best shot!
    http://www.photoimprints.com

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

    Default Re: init_templates.php error

    Quote Originally Posted by styledata View Post
    main(): Failed opening 'includes/languages/english.php' for inclusion (include_path='.:/usr/share/pear')
    This suggests that the file cannot be located.

    The code you quoted is merely what's attempting to load the file. But if it doesn't exist, or is corrupt, or has permissions set too low for access, then it will fail to load for execution.

    I recommend re-uploading the file from your master working fileset.
    .

    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.

  3. #3
    Join Date
    Feb 2006
    Posts
    326
    Plugin Contributions
    0

    Default Re: init_templates.php error

    I use a custom english.php file which is located in my custom template directory. Why would it be trying to pull an english.php file from the main language directory? Is that english.php file different from the one in the template directory, and what permissions should be set?
    thank you!
    Give us your best shot!
    http://www.photoimprints.com

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

    Default Re: init_templates.php error

    Zen Cart loads both. First your custom one, and then the master. If you deleted the master, you'll end up with this error.

    It does it this way so that if you miss adding a setting to your custom language file, then the master will pick it up instead.
    .

    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
    Feb 2006
    Posts
    326
    Plugin Contributions
    0

    Default Re: init_templates.php error

    Ah! So it is not REALLY an error, in terms of function? I copied the english.php file from my custom template to the main language directory. Will that suffice?
    Give us your best shot!
    http://www.photoimprints.com

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

    Default Re: init_templates.php error

    That'll work. Your best solution is to upload the original master version of english.php to the /includes/languages folder
    .

    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.

 

 

Similar Threads

  1. v153 blank screen being caused by something in init_templates.php
    By kcb410 in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 28 Nov 2014, 07:06 PM
  2. PHP error in /plugins/riCjLoader/config/jquery.form.php on line 11
    By ronswayoflife in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 7 Oct 2011, 10:03 AM
  3. Replies: 3
    Last Post: 13 Mar 2009, 05:20 PM
  4. Replies: 2
    Last Post: 14 Feb 2007, 04:04 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