plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
strange asset manager bug  (#2812)
Issue

I'll explain this the best I can, but please let me know if there is something I can look at that may give more clues as to what is going on.

At first things worked great in asset manager, but as time went by, when I edit an asset (usually a template) I find myself in a weird looking manager (see attachment). I'd have  to click on edit several times, and I would eventually get to the edit page to modify the template.

Now, I can't get anywhere no matter how often I click on edit. I can copy, cut, delete, but can never edit a template asset.

 I can eventually modify navigation and snippets. either way, I always end up in a weird looking manager before I can edit them.

Please let me know if there is anything you'd like me to try, meanwhile, I'm unable to modify templates, and I need to implement our new site design.  Thanks! 

LN 

Solution Summary
Comments
Meatbop
0
1/5/2007 9:36 am
Could you please check your log and post any errors you might see?
elnino
0
1/5/2007 4:09 pm

Hi. I just modified a template for CS that I duplicated from Link List, and I got the stripped down look, but it hasn't prevented me from editing that specific template.

My log file is as such:

2007/01/05 16:05:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 16:05:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 16:05:11 - ERROR - www.comtrol.com.conf - main::[[undef]] - Couldn't get UI level of WebGUI::Asset::Wobject::WeatherData. Root cause: Can't locate object method "getUiLevel" via package "WebGUI::Asset::Wobject::WeatherData" at /data/WebGUI/lib/WebGUI/Asset.pm line 492.
 

 

I'm not using WeatherData, and I have no idea what it is... And I haven't quite figured out how to fix the http_not_found.html_var error either. 

LN

elnino
0
1/5/2007 5:10 pm

Hello. it happend again in a different scenario:

I went to assets, and wanted to edit the job list template for CS, and got the "stripped" down look instead of the edit form. My logfile says this:

2007/01/05 17:04:29 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:04:29 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:04:30 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
Web4:/var/log # date
Fri Jan  5 17:04:40 CST 2007

 

Then I tried to edit the same template again, and am not able to. Tried to be quicker with the tail of the log and got this:  see first entry:

 

2007/01/05 17:09:06 - WARN - www.comtrol.com.conf - main::[[undef]] - Couldn't call method edit on asset for url: job_listing Root cause: Can't locate object method "new" via package "HTMLTemplate" (perhaps you forgot to load "HTMLTemplate"?) at /data/WebGUI/lib/WebGUI/Asset/Template.pm line 251.
2007/01/05 17:09:06 - ERROR - www.comtrol.com.conf - main::[[undef]] - Couldn't get UI level of WebGUI::Asset::Wobject::WeatherData. Root cause: Can't locate object method "getUiLevel" via package "WebGUI::Asset::Wobject::WeatherData" at /data/WebGUI/lib/WebGUI/Asset.pm line 492.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.
2007/01/05 17:09:07 - WARN - www.comtrol.com.conf - main::[[undef]] - The URL error/http_not_found.html.var was requested, but does not exist in your asset tree.

Hope that helps. 

 

Woutje
0
1/21/2007 4:42 am

I can confirm this bug in WebGUI 7.2.3-stable. Restarting apache appeared to temporarily solve the problem, but it's getting worse and worse again. This makes it virtually impossible to do serious  work on a website after some time.

The hard thing about it is that there doesn't seem to be much logic in when it appears. And some templates work, other don't. And after some time the templates that were editable, stop becoming so.

"For every complex problem there is a solution that is clear, simple, and wrong." - Henry Louis Mencken

Vrby
0
1/30/2007 2:44 pm
This is still happening in 7.3.8 sporadically.

Go in to edit a template and you get the screen that was attached to the original post.  I'm unable to find any pattern to the templates this happens on.
JT
0
1/30/2007 3:07 pm
You do sometimes end up in a weird place, but this is not a bug. Instead, it is the "inline view" of the import node. Just as if you were browsing a page out on your site somewhere. THis is browsing the folders of data under the import node, and it's perfectly normal.
Woutje
0
1/30/2007 5:16 pm

Sorry, JT, but that is not true. It is a bug, because it prevents you from editing the template. It's not just that the layout looks "weird", but that you are not able to edit the templates. I surely hope that that is a bug, not a feature...

"For every complex problem there is a solution that is clear, simple, and wrong." - Henry Louis Mencken

elnino
0
1/30/2007 7:22 pm

Yeah, it's a weird bug, and I'm SO glad to know someone else is experiencing it.

I've gotten used to the "plain weird" look, and now understand why it looks like it does.  But it is only when it "looks like that" that it prevents me from editing an template.

Sometimes if I click on the "assets button" on the left, to make it look "normal", I am then able to edit the template. Sometimes, it's a matter of waiting. Either way, I don't get any errors in the log files indicating anything is going wrong. The URL indicates the correct "func=edit" - it just doesn't go into the edit screen.

If you're wondering if it's a locking issue, there is no indication that the template it's locked (with the little black lock icon) And in my case, I know others are not working on the same asset at the same time because I'm the only one that can modify templates.

Hopefully that helps.

LN 

 

preaction
0
2/1/2007 5:41 pm

What templates are they happening on? Give me something I can look at, and a database to look through.

JT
0
2/1/2007 9:38 pm

So the bug isn't that you end up in a wierd place, it's that you can't edit the template?

And why can't you edit it? Is there an error? Or do you not see an edit button? 

elnino
0
2/2/2007 9:23 am

Yes.The bug is that I can't edit the template. (It just so happens that it typically occurs when I'm in the "weirdplace"). The edit button is there, there are no lock icons anywhere. 

When I click on the edit button, the url changes as if I was directed to the edit screen, but instead, I still see the listing of assets. No visible errors on the screen, and no errors in the logs. 

Sometimes I would also try clicking on the "assets" button on the far left to get out of the "weirdplace" and clicking the edit button of the same template would bring me back to the weird place, and not the edit screen (as the url would indicate that I should be.)

(I believe my pdf I submitted shows the url of the edit screen, but still being in the weird place) 

I admit this is a head scratcher.

LN 

Woutje
0
2/2/2007 12:28 pm

Couldn't have explained it better. To add to that, this is the error message that shows up in the debug info (and hence presumably also in the errorlog that I don't have access to):

Couldn't call method edit on asset for url: templates/random_offer2
Root cause: Can't locate object method "new" via package
"HTMLTemplate" (perhaps you forgot to load "HTMLTemplate"?) at
/zut/domains/[edited domain]/WebGUI/lib/WebGUI/Asset/Template.pm
line 251.

 "For every complex problem there is a solution that is clear, simple, and wrong." - Henry Louis Mencken

preaction
0
2/2/2007 1:36 pm

That error message you're getting seems like a template is corrupt.

It should be trying to use "WebGUI::Asset::Template::HTMLTemplate", not "HTMLTemplate".

Run this SQL query on your site's database and tell me the results:

select distinct(parser) from template;

 

elnino
0
2/2/2007 1:42 pm

I get:

+---------------------------------------+

| parser |

+---------------------------------------+

| WebGUI::Asset::Template::HTMLTemplate | +---------------------------------------+

1 row in set (0.01 sec)

preaction
0
2/2/2007 1:54 pm

Okay, that's not it.

What's the "defaultTemplateParser" value in your configuration file (WebGUI/etc/<yoursite>.conf)? 

elnino
0
2/2/2007 2:00 pm

"templateParsers" : ["WebGUI::Asset::Template::HTMLTemplate"],

"defaultTemplateParser" : "WebGUI::Asset::Template::HTMLTemplate",

preaction
0
2/2/2007 2:21 pm

Okay, it seems like we've got two different problems here:

Woutje probably has some corrupt templates (the "parser" column in the "template" table has "HTMLTemplate" instead of "WebGUI::Asset::Template::HTMLTemplate" OR the defaultTemplateParser is "HTMLTemplate").

elnino, you're absolutely sure there's nothing in the error logs for this? something along the lines of "Could not call method edit on asset with url <blah>"? You may also want to check your apache error logs for something, anything.

The behavior you're describing is what happens when an attempt to call a www_* method in an asset fails. If it's not www_view, it tries to call www_view next (which succeeds and shows the weird place). 

I'm afraid that if there's nothing in your error logs, and I can't reproduce the bug (in either of the two cases), I can't diagnose/fix it.

Woutje
0
2/2/2007 3:05 pm

Hey Doug,

I just ran the query and I get WebGUI::Asset::Template::HTMLTemplate as the only result as well. I don't have access to the config file, but because my site is hosted at one of PB's hosting partners (Procolix), it's hard to image there's an error in there. I will ask them though. Also note that if I do edit some template, HTML::Template is the only template parser I can select from the dropdown list. Maybe I can ask them if you can get access to the server as well to see if you can diagnose it there.

Thanks for your help, cheers,

Wouter 

"For every complex problem there is a solution that is clear, simple, and wrong." - Henry Louis Mencken

snapcount
0
2/6/2007 2:38 pm

I've tried and tried to duplicate this and I cannot.  I'm running webgui 7.3.9 and have followed your instructions.  My screens match up with yours as far as URLs and look go except I can always edit the template.

We can't fix this if we can't duplicate it.  I need you to duplicate this on a demo site so we can rule out your server environment.  Please re-open the bug if you can duplicate on demo. 

Details
Ticket Status Closed  
Rating0.0 
Submitted Byelnino 
Date Submitted2006-12-07 
Assigned To unassigned  
Date Assigned2010-09-02 
Assigned By 
Severity Fatal (can't continue until this is resolved)  
What's the bug in?  
WebGUI / WRE Version 7.2.1  
URLbugs/tracker/strange-asset-manager-bug
Keywords
Related Files
Ticket History
© 2010 Plain Black Corporation | All Rights Reserved