AbanteCart Community

Shopping Cart Operations => Support => Template Support => Topic started by: josmun on February 18, 2017, 10:52:20 AM

Title: Full clone with developer tool
Post by: josmun on February 18, 2017, 10:52:20 AM
I just full cloned the default template with developer tool 1.3beta. No errors during cloning or in logs. New template is made and enabled with all specific template/file present, but  "default" template file is still used. is there something else i have to do in order to get the full new template working?
Title: Re: Full clone with developer tool
Post by: Basara on February 20, 2017, 02:50:37 AM
Hello.
Why do you think 'default' template is used? I see you enable new in Design > Templates
Title: Re: Full clone with developer tool
Post by: josmun on February 20, 2017, 03:36:23 AM
If i want to change something in the enabled new template, nothing changes so in the page tpl on top i wrote some text on both pages like, this is the default template and this is the newtemplate and i keep seeing this is the default template. I assume that with a full template the pages of that new template are used too instead of those from the default store? i also change things i the stylesheet of the new template and nothing. if i change them in the default css it changes
Title: Re: Full clone with developer tool
Post by: josmun on February 20, 2017, 04:14:39 AM
if have tried to change the logo in the admin section but nothing changes
Title: Re: Full clone with developer tool
Post by: Basara on February 20, 2017, 04:16:56 AM
The background on the settings page mean something is disabled. Please make sure your new template Extension is ON, your store is ON and new template assigned to store you use
Title: Re: Full clone with developer tool
Post by: josmun on February 20, 2017, 04:28:27 AM
It is not a extension therefore nothing to enable there,  but the new template is enabled as shown in picture above.
Permissions 777
And what do you mean with the background on the settings page is disabled? what more do i have to enable?
Title: Re: Full clone with developer tool
Post by: Basara on February 20, 2017, 04:35:42 AM
How many stores you have?
And in your screenshot you edit Default template (left top corner)
Title: Re: Full clone with developer tool
Post by: josmun on February 20, 2017, 04:49:36 AM
i have just 1 store. and what you see in the left top corner is the text i added in the page.tpl to see if the store is ussing my fully cloned new template  ;)
Title: Re: Full clone with developer tool
Post by: Basara on February 20, 2017, 05:32:09 AM
Hi.
When you clone what option do you select, clone to Extension or Core Template?
Title: Re: Full clone with developer tool
Post by: Basara on February 20, 2017, 05:43:54 AM
Please run clone wizard again and select Clone template to Extension.  ;)
Title: Re: Full clone with developer tool
Post by: josmun on February 20, 2017, 05:47:08 AM
I selected core template because i want a full clone and not an extension.
Title: Re: Full clone with developer tool
Post by: Basara on February 20, 2017, 05:50:03 AM
I selected core template because i want a full clone and not an extension.

I suggest you to choose Extension option. New template will be separated into full template extension
Title: Re: Full clone with developer tool
Post by: josmun on February 20, 2017, 06:35:36 AM
ok i did that. throw away earlier made template(s) and now i've got a full template as a extension indeed. but i still have the same problems. default template is used and modifing the stylesheet changes nothing. only if i make changes in the default stylesheet. permissions on the test template 777. i cleared caches in browser and in the admin section. What is it? what am i doing wrong?????
Title: Re: Full clone with developer tool
Post by: josmun on February 21, 2017, 02:18:00 AM
I got this errors in de log file

2017-02-20 11:00:50 - warning: AbanteCart core v.1.2.9 chmod(): Operation not permitted in <b>/var/www/abantecart/extensions/developer_tools/admin/model/tool/developer_tools.php</b> on line <b>1609</b>

2017-02-21 6:54:58 - warning: AbanteCart core v.1.2.9 Invalid argument supplied for foreach() in <b>/var/www/abantecart/core/lib/layout_manager.php</b> on line <b>1749</b>

and below the webpage I found these errors (debug error i think?)

Name    Info
9101::App Warning
   Warning! Variable "button_back" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_reload" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_restore_defaults" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_save" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_reset" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_back" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_reload" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_restore_defaults" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_save" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_reset" in template "" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_back" in template "pages/extension/extensions/edit.tpl" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_reload" in template "pages/extension/extensions/edit.tpl" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_restore_defaults" in template "pages/extension/extensions/edit.tpl" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_save" in template "pages/extension/extensions/edit.tpl" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
9101::App Warning
   Warning! Variable "button_reset" in template "pages/extension/extensions/edit.tpl" overriding value and data type "string" Forcing new data type object. Possibly need to review your code! in /var/www/abantecart/core/engine/view.php on line 228
Title: Re: Full clone with developer tool
Post by: Basara on February 21, 2017, 03:35:41 AM
Hello.
Looks like permissions problem. Your server not allow script to write/remove some files. You can change them via FTP or cPanel file manager
Title: Re: Full clone with developer tool
Post by: josmun on February 21, 2017, 04:08:58 AM
Oke just to be sure I reinstalled abantecart 1.2.9 (permissions 777 recurse into subdirs). no errors. than I installed dev tool 1.3
errors in attachments.

And after cloning ext full
2017-02-21 8:45:18 - warning: AbanteCart core v.1.2.9 Invalid argument supplied for foreach() in <b>/var/www/abantecart/core/lib/layout_manager.php</b> on line <b>1749</b>
Title: Re: Full clone with developer tool
Post by: Basara on February 21, 2017, 04:11:30 AM
Thank you.
Do you have this warning only once or few? Warnings are not critical did you notice anything not cloned in new template layouts?
Title: Re: Full clone with developer tool
Post by: josmun on February 21, 2017, 05:08:41 AM
Just once. I comparted the files in the VIEW/template (of course, not the content of the files themselves  ;) ) and nothing seems missing there.  both 5.92 Mb

and thanks for helping me, lot of trouble  :)
Title: Re: Full clone with developer tool
Post by: josmun on February 21, 2017, 05:44:15 AM
Basara, don't know what happened but after 3 times making a new template it WORKS!!!
I now able to change stylsheet and pages!!

Very glad  :D :D thanks for your help
Title: Re: Full clone with developer tool
Post by: DCS on April 30, 2017, 04:40:11 PM
Developer_tools extension clone process still has a problem.

I edited this post because the original content was not helpful. 

josmun's issue was never resolved.  He just repeated a process multiple times until something changed. 

I am having a very similar problem.  I call it the Look-Back problem. 

I wrote more here:  http://forum.abantecart.com/index.php/topic,1340.45.html   (a lot more  ::) )

ETA - Look-Back problem did not occur on completely fresh install of AC without DemoData.  Install procedure was identical except for unticking Demodata. 

Good luck!