Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default corrupt file question

    I keep getting this error in my cache. any idea how I can get to the source of the problem?

    Apparently some characters were inserted in the file title, but where can I go to fix it?


    PHP Warning: require(includes/templates/template_default/templates/tpl_specials0orderby9999999_default.php)

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

    Default Re: corrupt file question

    Apparently some characters were inserted in the file title, but where can I go to fix it?
    Get a fresh distribution of the ZenCart version you are using and expand it on your PC

    FTP the correct file to your server
    /includes/templates/template_default/templates/tpl_specials_default.php

  3. #3
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: corrupt file question

    I have a good copy of the file. The problem is that the call statement is inserting extra string. I need to know where the call statement is so I can see why it is calling a file that doesnt exist.

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: corrupt file question

    Quote Originally Posted by pixelpadre View Post
    I have a good copy of the file. The problem is that the call statement is inserting extra string. I need to know where the call statement is so I can see why it is calling a file that doesnt exist.
    Try using the developers toolkit to find which file "tpl_specials0orderby9999999_default.php" is called from, so you then edit it.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: corrupt file question

    index.php?main_page=specials0orderby9999999 would look for tpl_specials0orderby9999999_default.php

    Looks like either you've got something which is outputting bad links, or you've added extra URL parameters with custom code in conjunction with a broken URL-rewriting or other URL mangling tool and thus the normal value for main_page is being corrupted before it can be routed properly.
    .
    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.

  6. #6
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: corrupt file question

    Quote Originally Posted by gilby View Post
    Try using the developers toolkit to find which file "tpl_specials0orderby9999999_default.php" is called from, so you then edit it.
    Tried that and didnt get any results.

  7. #7
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: corrupt file question

    Quote Originally Posted by DrByte View Post
    index.php?main_page=specials0orderby9999999 would look for tpl_specials0orderby9999999_default.php

    Looks like either you've got something which is outputting bad links, or you've added extra URL parameters with custom code in conjunction with a broken URL-rewriting or other URL mangling tool and thus the normal value for main_page is being corrupted before it can be routed properly.
    It's a clean install but database does have some old seo url files. I'll look into that possibility.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: corrupt file question

    Might also play with the Admin->Configuration->My Store->Missing Page Check setting in order to bypass the generation of the error message, if it's truly not harming anything.
    .
    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.

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

    Default Re: corrupt file question

    It's a clean install but database does have some old seo url files.
    Not a clean install if you have imported an existing database - -

    See if you have at the root of your store a htaccess file - - if so, try renaming it to htaccess.txt and then see if the issue persists

 

 

Similar Threads

  1. Download corrupt
    By freya in forum Setting Up Categories, Products, Attributes
    Replies: 93
    Last Post: 1 Sep 2010, 04:45 PM
  2. Corrupt file?
    By OneGreyCell in forum Basic Configuration
    Replies: 4
    Last Post: 27 May 2010, 03:57 PM
  3. Corrupt welcome email (create_account.php) file
    By snakeboy1 in forum General Questions
    Replies: 0
    Last Post: 1 Jan 2010, 07:18 PM
  4. Corrupt PDFs
    By freya in forum General Questions
    Replies: 1
    Last Post: 31 Dec 2006, 08:21 AM

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