Zen Cart Logo
Forums / General Questions / corrupt file question

corrupt file question

Views: 671

Results 1 to 9 of 9
25 Apr 2013, 12:09 AM
#1
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

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)

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

25 Apr 2013, 1:20 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Zen-Venom Get Bitten

25 Apr 2013, 2:35 AM
#3
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

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.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

25 Apr 2013, 3:27 AM
#4
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: corrupt file question

pixelpadre:

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.

25 Apr 2013, 5:47 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

26 Apr 2013, 2:03 AM
#6
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: corrupt file question

gilby:

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.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

26 Apr 2013, 2:06 AM
#7
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: corrupt file question

DrByte:

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.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

26 Apr 2013, 3:26 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

26 Apr 2013, 4:28 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Zen-Venom Get Bitten