This question about Using an extension: More info required

ActionTracker Edit shows blank data

Hi, I am having a problem with editing an action after it is placed on a topic. I have the latest version of ActionTrackerPlugin (2.4.8, $Rev: 13327 (2011-12-08)) and 1.1.4 of foswiki

When I click on the edit icon, a window for editing pops up, but i am unable to do any editing and it is not formatted in html. It either shows no text at all or some text like this:

---+ ActionItems to change notifications via email ---+ Open Actions %ACTIONSEARCH{}% ---+ Action Items %ACTION{ closed="2012-01-12" closer="Main.JimParker" created="2012-01-12" creator="Main.JimParker" due="" state="closed" uid="000020" who="Main.JimParker" }% do something %ENDACTION% %ACTION{ created="2012-01-12" creator="Main.JimParker" due="2013-11-14" state="open" uid="000021" who="Main.JimParker" }% do sometning tough.%ENDACTION%

One interesting effect, is that if i am not logged in when i go to edit, the popup does correctly show login fields but afterwards, no editing is allowed of the action tracker data.

-- JimParker - 13 Jan 2012

Does this happen with all actions, or just some? Check in the apache error log for server errors, and check the browser console for Javascript errors. Try a different browser. If there's nothing obvious, then provide details such as: Foswiki version, skin being used, any customisations of the plugin you may have done.

-- CrawfordCurrie - 19 Jan 2012

hi. no customizations of the plugin. happens in firefox AND ie 7.0. happens on ALL actions, i haven't found one that worked yet. i did have this working about 2 months ago, with an older version, but not sure what broke it.

Foswiki-1.1.4, Tue, 20 Dec 2011, build 13483, Plugin API version 2.1

using the default skin

the entire wiki text for the whole page gets displayed in the edit box, so i suspect something wrong with the parsing of the %ACTION{}% and %ENDACTION% macros.

here is the entire wiki text for the page:


<br />%ACTION{ created="2012-02-08" creator="Main.JimParker" due="" state="open" uid="000023" who="Main.JimParker" }% something %ENDACTION%
---+ WikiTodoList
   * prepare for next project kickoff to use wiki
   * cable matrix?
   * inserting images
   * export shipping schedule to excel
   * bom calculators live in wiki only
   * fix action tracker
   * fix intuitive bom viewer
   * fix template
   * better forms
   * fix broken action tracker
   * add more adhoc reports
   * add sales info to wiki (get with Main.RickKraetz)

-- JimParker - 08 Feb 2012

I copied your example verbatim into a local wiki and tried it; works perfectly. Conclusion is that it's something to do with your configuration. All I can suggest is careful checking of the logs and the browser console - turn on firebug.

-- CrawfordCurrie - 13 Feb 2012

Thanks for the info. I have firebug and don't seem to see anything noteworthy. Can you point me in any further direction? Is there anything else i can provide to help debug the problem? again, the issue is that the edit popup doesn't seem to show anything but the raw text from the entire html page....rather than parsing out the %action% macro and displaying gui widgets for editing.

-- JimParker - 16 Feb 2012

Are you sure it's the raw text from the HTML page, and not the raw text of a login page? It could be that you're not authenticated to edit....?

-- CrawfordCurrie - 16 Feb 2012

Actually, if i am not currently logged into foswiki, it properly pops up the edit screen with gui widgets for logging in. so that part works great. but once i'm logged into wiki, the "edit" popup dialog just contains the full wiki text from the whole page (not just the "action tracker" text")

-- JimParker - 16 Feb 2012

Just to reclarify, the "action" shows up on the web page fine. when i click on the "edit" wand icon (on the right column of the displayed action item), i get the edit popup. In the popup dialog window, no gui widgets are displayed, just text. if you look at the text, its actually the raw wiki text from the entire topic page....not just the action item info. It even shows the "%ACTION{%" string.

-- JimParker - 16 Feb 2012

When you edit an action, the data for the action is obtained from the server via a XmlHttpRequest - you should be able to see this request in firebug, and the response. The response should only contain the data needed to edit the action. It sounds like something is going haywire with that request, or the response to the request. Beyond that, I'm stumped.

-- CrawfordCurrie - 17 Feb 2012

I get a response packet that has the html for the entire page:


%ACTION{ created="2012-02-08" creator="Main.JimParker" due="" state="open" uid="000023" who="Main.JimParker" }% something %ENDACTION%

WikiTodoList

  • prepare for next project kickoff to use wiki
  • cable matrix?
  • inserting images
  • export shipping schedule to excel
  • bom calculators live in wiki only
  • fix action tracker
  • fix intuitive bom viewer
  • fix template
  • better forms
  • fix broken action tracker
  • add more adhoc reports
  • add sales info to wiki (get with RickKraetz)

-- JimParker - 17 Feb 2012

reponse header info:
Response Headers
Cache-Control   max-age=86400
Content-Length   530
Content-Type   text/html; charset=iso-8859-1
Date   Fri, 17 Feb 2012 21:26:49 GMT
Expires   Sat, 18 Feb 2012 21:26:50 GMT
Last-Modified   Fri, 17 Feb 2012 21:26:50 GMT
Server   Apache/2.2.14 (Ubuntu)
Vary   Accept-Encoding
X-Foswikiaction   edit
X-Foswikiuri   /bin/edit/JadakIT/WikiTodoList?skin=action,pattern;atp_action=000023;nowysiwyg=1;t=1329513929
Request Headers
Accept   text/html, */*; q=0.01
Accept-Encoding   gzip, deflate
Accept-Language   en-us,en;q=0.5
Connection   keep-alive
Cookie   __utma=77381646.1469757064.1306258522.1317757297.1326808616.5; __utmz=77381646.1317757297.4.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=jadak%20fm1; FOSWIKIPREF=%7CTwistyPlugin_additionalSettings%3D1%7CTwistyPlugin_topicattachmentslist1%3D1%7CTwistyPlugin_infoOnTemplates%3D1%7CTwistyPlugin_twistyIdSystemTwistyPlugin1258%3D%7CTwistyPlugin_twistyIdSystemTwistyPlugin1%3D0%7CTwistyPlugin_twistyIdSystemTwistyPlugin3989%3D%7CTwistyPlugin_infoOnNestedWebs%3D0%7CTwistyPlugin_topicattachmentslist2%3D1%7CTwistyPlugin_twistyIdSystemWebNotifyHelp1%3D1%7CTwistyPlugin_twistyIdSystemTwistyPlugin8437%3D%7CTwistyPlugin_edithelp%3D0%7CEditTextareaFontStyle%3Dproportional; FOSWIKISID=5389eb397c189223cf9be0ba737975e4; FOSWIKISTRIKEONE=0593ce6383bc284e3b48563849fe9d2d
Host   wiki.jadaktech.com
Referer   http://wiki.jadaktech.com/JadakIT/WikiTodoList
User-Agent   Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20100101 Firefox/10.0.1
X-Requested-With   XMLHttpRequest
-- JimParker - 17 Feb 2012

Clearly what you pasted above is not the html for the entire page, but is the pre-rendered wiki text (the TML). So which is it that you get, the HTML or the TML?

Here's what you should see in the response:
<form method="post" action="/bin/save/LitterTray/TestATP?unlock=on" type="POST" enctype="application/x-www-form-urlencoded" onsubmit="StrikeOne.submit(this)"><input type='hidden' name='validation_key' value='?91434fc3cc5e1a7b2b89eb020c4d8c28' />
  <h1>Action 004 in <a href="/bin/view/LitterTray/TestATP" class="foswikiCurrentTopicLink">TestATP</a></h1>
  <table class="atpEdit atpOrientRows"><tr><th> Assigned to </th><td class="atpEdit"> <input type="text" name="who"  size="35" /> </td></tr>
<tr><th> Due date </th><td class="atpEdit"> <input type="text" name="due" value="12 May 2012" size="16" id="date_due" /><input type="image" name="calendar" src="/foswiki/trunk/core/pub/System/JSCalendarContrib/img.gif" align="middle" alt="Calendar" onclick="return showCalendar('date_due','%e %b %Y')" /> </td></tr>
<tr><th> State </th><td class="atpEdit"> <select name="state" size="1"><option value="open" selected="selected">open</option><option value="closed">closed</option></select> </td></tr>
<tr><th> Notify </th><td class="atpEdit"> <input type="text" name="notify"  size="35" /> </td></tr>
</table><input type="hidden" name="creator" value="Main.SomeUser"  /><input type="hidden" name="todo" value=""  /><input type="hidden" name="closed" value=""  /><input type="hidden" name="uid" value="004"  /><input type="hidden" name="created" value="28 Jan 2011"  /><input type="hidden" name="closer" value=""  />
  <textarea name="text" wrap="virtual" rows="22" cols="70" style="width:99%" class="foswikiTextarea foswikiEditboxStyleProportional"><div class="foswikiConflict"> something
</textarea>
  <input type="hidden" name="closeactioneditor" value="1"  /><input type="hidden" name="cmd" value=""  /><input type="hidden" name="originalrev" value="18_1328900632"  />
  <br />
  <label for="sig" class="foswikiGrayText">Your signature to copy/paste:&nbsp;&nbsp;</label>
  <input name="sig" type="text" readonly="readonly" title="Select, copy and paste your signature text to the bottom of your entry" id="sig" value="-- Main.SomeUser - 19 Feb 2012 - 10:11" />
  <br />
  <input type="submit" value=" &nbsp; Save Changes &nbsp; " />
</form>
This content is built by taking the text of the action ("something") and wrapping it into the edit template for the "action" skin (templates/action.tmpl). If there is something wrong with your template installation, for example the action.tmpl is missing, you might end up with rubbish.

Try entering the edit URL http://wiki.jadaktech.com//bin/edit/JadakIT/WikiTodoList?skin=action,pattern;atp_action=000023;nowysiwyg=1 in the browser address bar, or passing it to wget, to see what comes back.

-- CrawfordCurrie - 19 Feb 2012

Crawford, I get this when i paste that url: %ACTION{ created="2012-02-08" creator="Main.JimParker" due="" state="open" uid="000023" who="Main.JimParker" }% something new %ENDACTION%

-- JimParker - 22 Feb 2012

By the way, i do not have an action.templ file. only an edit.action.tmpl file. That is all that is included in the current build release zip file.

-- JimParker - 22 Feb 2012

You are right, i was getting TML back. Still, it seems like i get the action macro stuff back but its not being passed into the skin or template so it never gets rendered.

-- JimParker - 22 Feb 2012

Sure, edit.action.tmpl is the one. Very odd; that is neither an HTML expansion nor a text expansion of that action, though it has clearly been extracted correctly from the topic text. I can't imagine what it's doing; without being able to reproduce the problem, it's impossible for me to debug. I'm guessing (randomly) that some other plugin or extension is interfering.

-- CrawfordCurrie - 23 Feb 2012

I do see the
....
fully html come up when i am not logged in. The form that pops up is the login form. But if i am logged in, then i just seem to get that partial stuff. when i do wget from the linux cmd line, i get the full form stuff for the login form, because it doesn't think i'm logged into the wiki. do you know how i can use wget to ping the apache server, but have it think i am logged into wiki?

-- JimParker - 23 Feb 2012

You can pass ?username=XxxXxx;password=xxxxxx in the URL (if you are using TemplateLogin)

-- CrawfordCurrie - 24 Feb 2012

PROGRESS! I figured out that the alias plugin is causing havoc. once i disable it, all shows up properly. now to figure out what particular alias is killing me here.

-- JimParker - 24 Feb 2012

Update: Turns out that even if i have NO aliases defined, the very act of enabling the aliases plugin causes the error. So it seems like an incompatibility with the alias plugin.

-- JimParker - 24 Feb 2012

looks like this is a known bug that seems to have no activity going on:

http://foswiki.org/Tasks/Item9888

-- JimParker - 24 Feb 2012
 

QuestionForm edit

Subject Using an extension
Extension ActionTrackerPlugin
Version Foswiki 1.1.3
Status More info required
Related Topics
Topic revision: r15 - 24 Feb 2012, JimParker
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy