Zen Cart Logo
Forums / General Questions / Can't get Template Selection to display in admin

Can't get Template Selection to display in admin

Views: 1,487

Results 1 to 12 of 12
31 May 2014, 2:31 PM
#1
jspector106 avatar

jspector106

New Zenner

Join Date:
May 2013
Location:
Black Forest, CO
Posts:
12
Plugin Contributions:
0

Can't get Template Selection to display in admin

Help! I am opening up my store for the summer and I had to reload all the PHP scripts due to malware insertion. However, now the Template Selection tab in Admin-Tools does not work. It comes up a blank screen. Which probably means I am missing something. It appears everything is there, but......

Can anyone give me any clues as to what might be the issue. All other admin functions appear to work just fine. But of course the site does not yet work because of this issue.

Any suggestions. I am not smart enough to look at the template-select Files or template-Info file to see what might be missing.

Thanks,

Jeff

31 May 2014, 4:04 PM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Can't get Template Selection to display in admin

jspector106:

Help! I am opening up my store for the summer and I had to reload all the PHP scripts due to malware insertion. However, now the Template Selection tab in Admin-Tools does not work. It comes up a blank screen. Which probably means I am missing something. It appears everything is there, but......

Can anyone give me any clues as to what might be the issue. All other admin functions appear to work just fine. But of course the site does not yet work because of this issue.

Any suggestions. I am not smart enough to look at the template-select Files or template-Info file to see what might be missing.

Thanks,

Jeff

You don't mention your ZC version, but you should have an error log file depending on your version will depend where you'll find it.
More importantly, do you know how to were hacked AND have to confirmed you have removed the point of entry?

31 May 2014, 5:20 PM
#3
jspector106 avatar

jspector106

New Zenner

Join Date:
May 2013
Location:
Black Forest, CO
Posts:
12
Plugin Contributions:
0

Re: Can't get Template Selection to display in admin

picandnix:

You don't mention your ZC version, but you should have an error log file depending on your version will depend where you'll find it.
More importantly, do you know how to were hacked AND have to confirmed you have removed the point of entry?

Version is 1.5.0, which i was plannning on updating 1.5.1 until this problem came up. The malware wasa Base64 injection in the header of every PHP script. I think I got every file replaced or cleaned at this point, but then then this problem came up. So I missed something somewhere.

Thanks for your help.

31 May 2014, 5:25 PM
#4
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Can't get Template Selection to display in admin

jspector106:

Version is 1.5.0, which i was plannning on updating 1.5.1 until this problem came up. The malware wasa Base64 injection in the header of every PHP script. I think I got every file replaced or cleaned at this point, but then then this problem came up. So I missed something somewhere.

Thanks for your help.

So you should have a folder named logs in the same location as your includes folder and yourrenamedadmin folder etc. Have a look in there and post up the error file being generated by your blank page. Don't forget to ### out your admin directory name if it's mentioned in the file.

31 May 2014, 5:29 PM
#5
jspector106 avatar

jspector106

New Zenner

Join Date:
May 2013
Location:
Black Forest, CO
Posts:
12
Plugin Contributions:
0

Re: Can't get Template Selection to display in admin

OK, so here are the errors

PHP Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in ***/zencart_new/index.php on line 43

PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/local/php5_3/lib/php') in ***/zencart_new/index.php on line 43

The html_header file is there in that directory.

31 May 2014, 5:54 PM
#6
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Can't get Template Selection to display in admin

What happens when you revert back to the default (green) template?

31 May 2014, 7:38 PM
#7
jspector106 avatar

jspector106

New Zenner

Join Date:
May 2013
Location:
Black Forest, CO
Posts:
12
Plugin Contributions:
0

Re: Can't get Template Selection to display in admin

picandnix:

What happens when you revert back to the default (green) template?
It never gets that far. It goes to run the template_select.php script and stops.

31 May 2014, 8:01 PM
#8
jspector106 avatar

jspector106

New Zenner

Join Date:
May 2013
Location:
Black Forest, CO
Posts:
12
Plugin Contributions:
0

Re: Can't get Template Selection to display in admin

UPDATE:

I was able to restore a few files thanks to the error logs and now I seem to have full access to the template. The next trick is to be able to bring up the pages of the store. I'm sure the same type of issue exists. Thanks for pointing me in the right direction

31 May 2014, 8:54 PM
#9
jspector106 avatar

jspector106

New Zenner

Join Date:
May 2013
Location:
Black Forest, CO
Posts:
12
Plugin Contributions:
0

Re: Can't get Template Selection to display in admin

BTW, I am still getting those same error message when i try to access the actual zencart shopping site and the main page does not come up.

31 May 2014, 9:24 PM
#10
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Can't get Template Selection to display in admin

jspector106:

BTW, I am still getting those same error message when i try to access the actual zencart shopping site and the main page does not come up.

Exactly the same?

1 Jun 2014, 4:12 AM
#11
jspector106 avatar

jspector106

New Zenner

Join Date:
May 2013
Location:
Black Forest, CO
Posts:
12
Plugin Contributions:
0

Re: Can't get Template Selection to display in admin

picandnix:

Exactly the same?

Yes, exactly.

1 Jun 2014, 6:05 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Can't get Template Selection to display in admin

It would seem that the constant DIR_WS_TEMPLATES is not defined as normally having a constant that is spelled out like that means it is not defined... So check both of your configure.php files (includes and admin/includes) to verify that you have a statement something like:

define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');