plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
Editing a Template with Other Template Engines Enabled Does Not Work  (#11407)
Issue

I much prefer Template::Alloy (or Template::Toolkit). However, if I enable either of those in my site configuration file, editing or viewing a Template::HTMLTemplate does not work. Adding a new template also fails in that it gives me similar results to the attached screen-shot. I can view/edit other assets such as CSS without any issues.

If I return to only having Template::HTMLTempalte enabled, everything works fine.

I was going off of the documentation here: http://www.webgui.org/community-wiki/how-to-enable-other-template-engines

This is on RHEL 5 with a webgui install. Using WRE is prohibitive as I need to keep my standard Apache/MySQL/etc. installed on this server.

Thank you for the wonderful product and help in getting this resolved.

Solution Summary
Comments
preaction
0
2/13/2010 6:23 pm
What does the webgui error log say? (probably /var/log/webgui.log, but look in WebGUI/etc/log.conf to find it).

How did you try enabling the driver? There is no template driver (that I know of) for Template::Alloy. The Template Toolkit driver is called WebGUI::Asset::Template::TemplateToolkit.
perlDreamer
0
2/15/2010 10:30 am
Using 7.8.12, I was able to enable the TemplateToolkit plugin and it did not interfere with editing a HTML::Template template.
perlDreamer
0
3/9/2010 12:41 pm
It's been almost a month with no reply to the questions posted so I'm closing the bug.  Please feel free to reopen the bug with more details.
EvilBill
4
3/9/2010 12:45 pm
Thanks. I have not had the opportunity to try 7.8.x. Go ahead and close the bug and I'll re-open a new one if I still experience problems after an upgrade -- although knowing it works for you means I'll try much harder to figure out if there is a specific config issue on my end before doing as much.
perlDreamer
0
3/9/2010 1:03 pm
If it's a config issue on your end, it could be any of the following:

1) Syntax error in the config file (JSON)
2) Bad custom code (WebGUI doesn't ship with a Template::Alloy plugin).

The thing to do is check the WebGUI log file.  If it's empty, then edit log.conf to choose a different log level (I suggest DEBUG), restart apache, and then go through the same attempt to edit again.
perlDreamer
0
3/9/2010 1:24 pm
I also just tried this with 7.7.33.

I edited my config file and added "WebGUI::Asset::Template::TemplateToolkit" to the templateParsers entry.

Restarted WebGUI.
Logged in as Admin.
Turned Admin on.
Edited a Page Layout
Selected the Display tab.
Clicked on the Edit button next to the Page Layout template.
Details
Ticket Status Resolved  
Rating4.0 
Submitted ByEvilBill 
Date Submitted2010-02-13 
Assigned To unassigned  
Date Assigned2012-02-11 
Assigned By 
Severity Critical (mostly not working)  
What's the bug in? WebGUI Stable  
WebGUI / WRE Version webgui-7.7.31-stable  
URLuse/bugs/tracker/11407
Keywords
Related Files
Ticket History
3/16/2010
12:59 PM
Resolved perlDreamer
3/9/2010
12:45 PM
Pending EvilBill
3/9/2010
12:41 PM
Resolved perlDreamer
2/15/2010
10:30 AM
Pending perlDreamer
2/13/2010
6:23 PM
Feedback Requested DBell
2/13/2010
4:49 PM
Ticket created EvilBill
© 2012 Plain Black Corporation | All Rights Reserved