Forums / Addon Templates / Problems Setting Up a Template.

Problems Setting Up a Template.

Views: 2,869

Results 1 to 14 of 14
15 Jul 2015, 4:01 PM
#1
chome4 avatar

chome4

New Zenner

Join Date:
Jul 2015
Posts:
14
Plugin Contributions:
0

Problems Setting Up a Template.

**This has already been posted in the Hope Free Template section but I thought this part of the forum is the proper place for templates. Hope admin won't get too irritated!

This is the template I eventually want: http://zen4me.com/demo/hope/

Following the instructions in the README file, the new template doesn't show up alongside the default one in the admin drop-down list.

I'm running things locally, using WAMP server. I've installed other templates and they do show up. The missing item is an issue I've had before but I moved on to other templates. Now I've found this template, I want it but it's a no-show.

My file structure is C:\wamp\www\zencart\includes\templates

Before I copied over the zipped folder, the default in that folder was two directories: 'classic' and 'template_default'.

As per the instructions, I copied over 'zen4me.com-hope-free-template' and went to admin/tools/template selection and observed only 'Classic Contemporary Green', the default template.

I'm using Zen Cart v1.5.4 and everything else seems OK with this local setup.

Any ideas on how I can get this template working? I'll keep trying to fix this, but in the meantime I hope someone can help.

Template download: http://www.zen4me.com/files/zen4me.com-hope-free-template.zip

Thanks...

15 Jul 2015, 4:56 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Problems Setting Up a Template.

The dropdown in Template Selection is populated from the template_info.php files Zencart finds in the respective template folders, so I would guess you might have the files in the wrong path. Check to see that includes/templates/hope/template_info.php exists.

15 Jul 2015, 6:29 PM
#3
chome4 avatar

chome4

New Zenner

Join Date:
Jul 2015
Posts:
14
Plugin Contributions:
0

Re: Problems Setting Up a Template.

stevesh:

The dropdown in Template Selection is populated from the template_info.php files Zencart finds in the respective template folders, so I would guess you might have the files in the wrong path. Check to see that includes/templates/hope/template_info.php exists.

Inside the unzipped template folder, many directories in, there's:

C:\wamp\www\zencart\includes\templates\zen4me.com-hope-free-template\TEMPLATE-FILES\includes\templates\template333

The folder 'template333' contains the file 'template_info.php'. I copy this folder into the root folder containing the default folders and the drop-down now includes the 'Hope' template. I select/update. When I refresh the demo page, all I get is the top couple of inches of the page.

Image attached...

Attachment #15431

15 Jul 2015, 10:28 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Problems Setting Up a Template.

this path C:\wamp\www\zencart\includes\templates\zen4me.com-hope-free-template\TEMPLATE-FILES\includes\templates\template333

should be:

C:\wamp\www\zencart\includes\templates\template333

this is also explained in the readme.txt inside the zip file

INSTALLATION - PHASE 1

Note: There are no core files override, no files will be overwritten.

  1. Unpack the template package 'zen4me.com-hope-free-template.zip', the template files are inside folder 'TEMPLATE-FILES'

  2. Upload all the files and folders inside 'TEMPLATE-FILES' to your store root directory, i.e ../public_html/ or if you use subdirectory ../public_html/store/

16 Jul 2015, 6:07 AM
#5
chome4 avatar

chome4

New Zenner

Join Date:
Jul 2015
Posts:
14
Plugin Contributions:
0

Re: Problems Setting Up a Template.

That's what I now have

C:\wamp\www\zencart\includes\templates\template333

But I still only get that partial page.

16 Jul 2015, 7:56 AM
#6
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Problems Setting Up a Template.

A (partial) white page means there should be a debug log file. Check C:\wamp\www\zencart\logs to see if there are any. an post the complete contents of the newest file. Remember to cross out any secret amdin names.

16 Jul 2015, 8:14 AM
#7
chome4 avatar

chome4

New Zenner

Join Date:
Jul 2015
Posts:
14
Plugin Contributions:
0

Re: Problems Setting Up a Template.

Here are the contents of the log file....

[16-Jul-2015 10:12:43 Europe/Paris] PHP Warning: require_once(includes/classes/categories_ul_generator.php): failed to open stream: No such file or directory in C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php on line 59

[16-Jul-2015 10:12:43 Europe/Paris] PHP Stack trace:

[16-Jul-2015 10:12:43 Europe/Paris] PHP 1. {main}() C:\wamp\www\zencart\index.php:0

[16-Jul-2015 10:12:43 Europe/Paris] PHP 2. require() C:\wamp\www\zencart\index.php:97

[16-Jul-2015 10:12:43 Europe/Paris] PHP 3. require() C:\wamp\www\zencart\includes\templates\template_default\common\tpl_main_page.php:73

[16-Jul-2015 10:12:43 Europe/Paris] PHP 4. require() C:\wamp\www\zencart\includes\templates\template333\common\tpl_header.php:131

[16-Jul-2015 10:12:43 Europe/Paris] PHP Fatal error: require_once(): Failed opening required 'includes/classes/categories_ul_generator.php' (include_path='.;C:\php\pear') in C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php on line 59

[16-Jul-2015 10:12:43 Europe/Paris] PHP Stack trace:

[16-Jul-2015 10:12:43 Europe/Paris] PHP 1. {main}() C:\wamp\www\zencart\index.php:0

[16-Jul-2015 10:12:43 Europe/Paris] PHP 2. require() C:\wamp\www\zencart\index.php:97

[16-Jul-2015 10:12:43 Europe/Paris] PHP 3. require() C:\wamp\www\zencart\includes\templates\template_default\common\tpl_main_page.php:73

[16-Jul-2015 10:12:43 Europe/Paris] PHP 4. require() C:\wamp\www\zencart\includes\templates\template333\common\tpl_header.php:131

16 Jul 2015, 8:33 AM
#8
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Problems Setting Up a Template.

chome4:

Here are the contents of the log file....

[16-Jul-2015 10:12:43 Europe/Paris] PHP Warning: require_once(includes/classes/categories_ul_generator.php): failed to open stream: No such file or directory in C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php on line 59

[16-Jul-2015 10:12:43 Europe/Paris] PHP Stack trace:

[16-Jul-2015 10:12:43 Europe/Paris] PHP 1. {main}() C:\wamp\www\zencart\index.php:0

[16-Jul-2015 10:12:43 Europe/Paris] PHP 2. require() C:\wamp\www\zencart\index.php:97

[16-Jul-2015 10:12:43 Europe/Paris] PHP 3. require() C:\wamp\www\zencart\includes\templates\template_default\common\tpl_main_page.php:73

[16-Jul-2015 10:12:43 Europe/Paris] PHP 4. require() C:\wamp\www\zencart\includes\templates\template333\common\tpl_header.php:131

[16-Jul-2015 10:12:43 Europe/Paris] PHP Fatal error: require_once(): Failed opening required 'includes/classes/categories_ul_generator.php' (include_path='.;C:\php\pear') in C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php on line 59

[16-Jul-2015 10:12:43 Europe/Paris] PHP Stack trace:

[16-Jul-2015 10:12:43 Europe/Paris] PHP 1. {main}() C:\wamp\www\zencart\index.php:0

[16-Jul-2015 10:12:43 Europe/Paris] PHP 2. require() C:\wamp\www\zencart\index.php:97

[16-Jul-2015 10:12:43 Europe/Paris] PHP 3. require() C:\wamp\www\zencart\includes\templates\template_default\common\tpl_main_page.php:73

[16-Jul-2015 10:12:43 Europe/Paris] PHP 4. require() C:\wamp\www\zencart\includes\templates\template333\common\tpl_header.php:131

The ul_generator.php is looking for C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php, but it is not there. You probably are still not having all the files in their right places.

16 Jul 2015, 9:20 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Problems Setting Up a Template.

Design75:

The ul_generator.php is looking for C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php, but it is not there. You probably are still not having all the files in their right places.

Actually it's the other way around. The file C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php is looking for the class file includes/classes/categories_ul_generator.php. This class is not a part of the ZC default install, so is either the request is accidentally in the drop menu file or as said there is at least one (maybe more) file missing.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

16 Jul 2015, 9:34 AM
#10
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Problems Setting Up a Template.

mc12345678:

Actually it's the other way around. The file C:\wamp\www\zencart\includes\templates\template333\common\tpl_drop_menu.php is looking for the class file includes/classes/categories_ul_generator.php. This class is not a part of the ZC default install, so is either the request is accidentally in the drop menu file or as said there is at least one (maybe more) file missing.

:oops: You are absolutely right, blame it on the lack of coffee in the morning :laugh:.

16 Jul 2015, 10:05 AM
#11
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Problems Setting Up a Template.

Design75:

:oops: You are absolutely right, blame it on the lack of coffee in the morning :laugh:.

Same here as I look back over the grammar... Oye. :P

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

16 Jul 2015, 11:37 AM
#12
chome4 avatar

chome4

New Zenner

Join Date:
Jul 2015
Posts:
14
Plugin Contributions:
0

Re: Problems Setting Up a Template.

Shopping cart/php/classes etc are way above my head! I've written to zen4me.com asking them to clarify the installation process and hopefully I'll get a reply.

Using WinHTTrack Website Copier, I downloaded the [working] demo site and it runs as a regular html site. Not what is should be but the structure of the site works. It's just the packaging of the files that's the issue.

17 Jul 2015, 2:43 AM
#13
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Problems Setting Up a Template.

Not sure what you mean by works like a regular html site, as all sites are presented through html or some variation of it. ZC generated html using php files and other additional code.

All of that other "confusing" stuff is pretty much an indication of how complicated the installation was made by the packagers to prep it for ZC.

Most well put together plugins provide a folder structure that is basically copy the main folder(s) to the equivalent directory and go. Already, just for the tpl files had to remove a portion of the path to get it to the right place to begin with.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jul 2015, 10:35 PM
#14
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Problems Setting Up a Template.

Using WinHTTrack Website Copier, I downloaded the [working] demo site and it runs as a regular html site.

mc12345678:

Not sure what you mean by works like a regular html site, as all sites are presented through html or some variation of it. ZC generated html using php files and other additional code.

The website copier downloads the html rendered code of a site and creates static links to make it function correctly - Well as 'correct' as it can without any dynamic elements. - This is often used to make an 'offline' copy of a website (generally intended to be burned onto and distributed on a CD/DVD)

Admittedly,I've not followed or read this thread, so I've no idea what the OP is actually trying to achieve here, but if the thread title is anything to go by then what the OP is trying to do simply can't/won't work with the 'static' copy of the website.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.