Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Filename cannot be empty error in error log

    Hi, I'm getting an error in my error log:

    [15-Nov-2012 08:46:20 UTC] PHP Warning: require() [<a href='function.require'>function.require</a>]: Filename cannot be empty in /ZencartDirectory/includes/templates/template_default/templates/tpl_page_not_found_default.php on line 23
    [15-Nov-2012 08:46:20 UTC] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /ZencartDirectory/includes/templates/template_default/templates/tpl_page_not_found_default.php on line 23

    No changes have been made to this file (tpl_page_not_found_default.php) - I have also not customized this file (I have no equivalent file in my personalized template directory). Is having a tpl_page_not_found_default equivalent in my custom template folder required?
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Filename cannot be empty error in error log

    Is having a tpl_page_not_found_default equivalent in my custom template folder required?
    NO

    But use FTP and check the file size of the one at
    /includes/templates/template_default/templates/tpl_page_not_found_default.php

    Also FTP it to your PC and check line 23

    Then look at /includes/languages/english/html_includes/define_page_not_found.php
    And check that it exists and is not corrupt (0 byte size)
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Filename cannot be empty error in error log

    /includes/templates/template_default/templates/tpl_page_not_found_default.php File size according to FTP is: 3033

    I FTP'd it back to my computer and checked it against the original install files and WinMerge tells me they are equivalent.
    file size on my computer is 3088 - I have noticed that file size is different on my server vs on my computer - this is the same with a number of files.

    I checked line 23 but I can't tell if anything is odd or off:
    the line reads:
    Code:
      require($define_page); ?>
    As for:
    /includes/languages/english/html_includes/define_page_not_found.php

    I have confirmed that it exists.
    It is not blank, it has the default text in there:

    Code:
    <p><strong>Custom 404 Error Page with Site Map Sample Text ...</strong></p>
    <p>Put your custom "page not found" message here.  You can change this text in the Define Pages Editor located under Tools in the Admin.</p>
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

 

 

Similar Threads

  1. v151 "Filename cannot be empty in" error.. site not working
    By abcisme in forum General Questions
    Replies: 6
    Last Post: 6 Jan 2015, 08:02 PM
  2. PHP Warning: Empty delimiter. in Server Error Log
    By skipwater in forum General Questions
    Replies: 6
    Last Post: 30 Nov 2009, 10:18 PM
  3. Error log : Cannot modify header information
    By gingabox in forum General Questions
    Replies: 6
    Last Post: 24 Apr 2009, 08:42 AM
  4. SGS-020005: Error (Merchant config file is missing, empty or cannot be read).
    By kevinw in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Aug 2008, 04:13 PM
  5. Replies: 6
    Last Post: 7 Dec 2007, 03:42 AM

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