Forums / Addon Admin Tools / Clone a Template [Support Thread]

Clone a Template [Support Thread]

Views: 46,080

Results 61 to 80 of 108
13 Aug 2019, 3:29 PM
#61
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Clone a Template [Support Thread]

Seems this is having issues in 1.5.6c

#1 file_put_contents() called at [/home/##########/public_html/156c_bootstrap/##########/clone_template.php:213]
--> PHP Warning: file_put_contents(/home/##########/public_html/156c_bootstrap/includes/templates/zca_bootstrap_theme_1/template_info.php): failed to open stream: No such file or directory in /home/##########/public_html/156c_bootstrap/##########/clone_template.php on line 213.

Seems its not copying template_info.php

This is a vanilla install zen cart 1.5.6c and ZCA Bootstrap Template only.

13 Aug 2019, 5:24 PM
#62
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

rbarbour:

Seems this is having issues in 1.5.6c

#1 file_put_contents() called at [/home/##########/public_html/156c_bootstrap/##########/clone_template.php:213]
--> PHP Warning: file_put_contents(/home/##########/public_html/156c_bootstrap/includes/templates/zca_bootstrap_theme_1/template_info.php): failed to open stream: No such file or directory in /home/##########/public_html/156c_bootstrap/##########/clone_template.php on line 213.

> 
> Seems its not copying template_info.php
> 
> This is a vanilla install zen cart 1.5.6c and ZCA Bootstrap Template only.
That's weird; were all the other template files copied?
13 Aug 2019, 7:35 PM
#63
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Clone a Template [Support Thread]

lat9:

That's weird; were all the other template files copied?

No Cindy,

Nothing was actually copied.

I just did this on the responsive_classic and all worked as intended. :shocking:

13 Aug 2019, 7:42 PM
#64
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

Was there a /logs/clone_template*.log file generated?

13 Aug 2019, 7:57 PM
#65
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Clone a Template [Support Thread]

lat9:

Was there a /logs/clone_template*.log file generated?

Yes

Okay, this is weird.

I just found the clones in the root directory.

13 Aug 2019, 9:40 PM
#66
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

What's your /admin/includes/configure.php have its DIR_FS_CATALOG set to?

14 Aug 2019, 4:12 PM
#67
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Clone a Template [Support Thread]

define('DIR_FS_CATALOG', '/home/**********/public_html/zca-bootstrap/');

I just did a new vanilla install 1.5.6c, installed the ZCA Bootstrap Template, same outcome

[14-Aug-2019 12:06:02 America/New_York] Request URI: /zca-bootstrap/**********/clone_template.php, IP address: 71.115.191.42
#1 file_put_contents() called at [/home/**********/public_html/zca-bootstrap/**********/clone_template.php:213]
--> PHP Warning: file_put_contents(/home/**********/public_html/zca-bootstrap/includes/templates/bootstrap_theme1/template_info.php): failed to open stream: No such file or directory in /home/**********/public_html/zca-bootstrap/**********/clone_template.php on line 213.

clone successful on the responsive_classic

14 Aug 2019, 4:55 PM
#68
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

Is the default bootstrap template's template_info.php, for some reason, marked as read-only?

14 Aug 2019, 7:56 PM
#69
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Clone a Template [Support Thread]

lat9:

Is the default bootstrap template's template_info.php, for some reason, marked as read-only?

Nope,

permission is correct and same as the responsive_classic

14 Aug 2019, 8:08 PM
#70
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Clone a Template [Support Thread]

So this is where it seems to be getting mis-configured.

Copying from folder /home//public_html/zca-bootstrap/includes/modules/bootstrap/
Creating directory /home/
/public_html/zca-bootstrap_themeOne/includes/modules/bootstrap_themeOne
Copying /home//public_html/zca-bootstrap/includes/modules/bootstrap/attributes.php to /home//public_html/zca-bootstrap_themeOne/includes/modules/bootstrap_themeOne/attributes.php

it seems to be renaming the directory /home//public_html/zca-bootstrap to /home//public_html/zca-bootstrap_themeOne

15 Aug 2019, 11:22 AM
#71
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

Thanks, Ray, that give me something to "chew on". I should have a correction later today.

15 Aug 2019, 11:59 AM
#72
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

Ray, see your direct email.

15 Aug 2019, 3:42 PM
#73
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

I've just submitted v1.2.1 of "Clone a Template" to the Zen Cart moderators for review; I'll post back here when it's available for download.

 This version contains changes associated with the following GitHub issues:

#4: Cloning fails when file-system root-directory ends with the source-template's name.

18 Aug 2019, 7:01 PM
#74
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

lat9:

I've just submitted v1.2.1 of "Clone a Template" to the Zen Cart moderators for review; I'll post back here when it's available for download.

 This version contains changes associated with the following GitHub issues:

#4: Cloning fails when file-system root-directory ends with the source-template's name.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2087

15 Dec 2020, 9:20 PM
#75
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

zc 1.5.7b php7.3
I installed the mod and then installed the ZCAbootstrap template.
The clone mod doesnt' see it in the drop down, but I was able to select the template from the template manager and can edit the colors and it displays wonderfully.

No error logs were created. Any thoughts? I did confirm, twice, all files in proper folders.

I even manually recreated the template and template structure with a new template name which I can see in the template manager, but again, it doesn't show in the clone drop down list.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

15 Dec 2020, 11:57 PM
#76
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

Couldn't track it down. Removed both and re-installed, still didnt work. Re-uploaded the 1.5.7b files, still didn't work.

Reinstalled a fresh install with fresh database, installed ZCA, then installed Clone... only 2 mods installed, the clone mod won't read the ZCA template in order to clone it.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

16 Dec 2020, 12:11 AM
#77
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

oh... freakin....A

After I did the fresh install, I forgot to goto to the layout controller and allow it to find the new sideboxes ... all is well.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

16 Dec 2020, 1:48 AM
#78
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: Clone a Template [Support Thread]

Used to have a sign above my desk...

Pobody's Nerfect!

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

20 Feb 2021, 9:14 PM
#79
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

Zean:

Problem fixed. Not sure how since I tried several things. However, it seems that clicking on admin>Tools>Layout Boxes Controller somehow did the trick.
lat9, Thanks so much for this handy tool!

clicking on admin>Tools>Layout Boxes Controller worked for me too!

Thank you Zean for the heads up :lookaroun
and
THANK YOU Lat9! :hug:

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

5 Jul 2021, 6:30 PM
#80
tropical avatar

tropical

New Zenner

Join Date:
Aug 2018
Location:
melbourne
Posts:
21
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

I 'll try thank you.