Ticket #13 (reopened defect)

Opened 4 years ago

Last modified 6 months ago

footnotes don't get added to the list

Reported by: bencollins@tamu.edu Assigned to: athomas
Priority: normal Component: FootNoteMacro
Severity: major Keywords:
Cc: Trac Release: 0.10

Description (Last modified by athomas)

I have FootNote?.py rev. 29 installed in ~/wiki-macros. However, when I try to use in in a wiki page, I only get a little "1" superscripted, and no footnotes at the bottom (even though I have [[FootNote]] at the bottom).

Attachments

Change History

03/20/05 17:37:10 changed by athomas

  • status changed from new to assigned.

What is the exact form you are using to call FootNote?

03/21/05 09:43:04 changed by bencollins@tamu.edu

... some other wiki content ...

  • item in list[[FootNote(blah blah blah)]]

... rest of content

[[FootNote]]

03/21/05 17:26:54 changed by athomas

That is quite odd. As you can see below, an exact copy of your content works fine here. Perhaps try looking at the source, see if it is actually generating the output but not displaying it? All the styles are inline so there shouldn't be any external dependencies. Are you running under CGI or mod_python? I use CGI so perhaps it is some difference there.

... some other wiki content ...

  • item in list

    Error: Failed to load processor FootNote
    No macro or processor named 'FootNote' found

... rest of content

Error: Failed to load processor FootNote
No macro or processor named 'FootNote' found

03/30/05 07:30:09 changed by athomas

  • status changed from assigned to closed.
  • resolution set to worksforme.

04/06/05 03:21:07 changed by wrs

  • severity changed from major to normal.

I also have this issue, seems the footnotes are not being set.

If I have more than one footnote on the page, they are all called '1'.

I get the small HR at the bottom of the page, but no footnotes.

Im using the code

Text [[FootNote(This is my first footnote)]]

Text [[FootNote(This is my second footnote)]]

END
[[FootNote]]

This is all on FreeBSD4-STABLE, Apache 2.0.53, Perl 5.8.6, Python 2.4, Trac 0.8 and Footnote.py Rev29

04/06/05 03:23:27 changed by wrs

  • status changed from closed to reopened.
  • resolution deleted.
  • severity changed from normal to major.

reopen?

04/06/05 21:39:25 changed by athomas

Hmm, can you try this on 0.8.1?

04/06/05 21:39:47 changed by athomas

  • description changed.

04/06/05 22:42:15 changed by wrs

Sure, deinstalled 0.8 then installed 0.8.1 but the same problem occurs :/

This is a really nice macro ( i've seen it on other sites ), I hope we can figure out why it isn't updating the footnotes :)

I've noticed that this site has the same problem.

Whats your python version and OS ?

04/06/05 23:59:01 changed by athomas

I am running Slackware current, python 2.4. You're not using mod_python by any chance? If so, it could be a problem with the global variables not being re-initialized due to the persistent nature of mod_python.

04/07/05 04:27:16 changed by wrs

Nope, not that I am aware of:

[root@titan ~]# pkg_info | grep py
clearsilver-python-0.9.13_1 A fast, powerful, and language-neutral template system
py24-PySQLite-1.0.1 A DB-API v2 Python library for the SQLite 2 embedded SQL en
python-2.4_1        An interpreted object-oriented programming language
subversion-python-1.1.3 Version control system

:(

04/08/05 22:06:55 changed by athomas

Hmmm, I don't know what to do really, given that I can't replicatite it... :(

You've checked the logs I assume? Perhaps the next step is to place some debugging output in the macro and see what is doing what.

04/09/05 10:41:45 changed by wrs

Which logs? My apaches virtualhost logs have nothing of interest. Is there somewhere else I should be looking?

Ive never used python before, i've tried adding a couple of out.write()s to the source but havn't noticed anything odd.. but, i dont know what im doing :)

06/08/05 07:03:13 changed by ulf.schmidt@discount24.de

Same Problem for me. I'm using Linux 9.2 and the Trac-Version is 0.8.1. Any Ideas?

06/28/05 07:54:49 changed by mhuysamen@mhg.co.za

Hi

I have the same problem. The FootNotes? get added to the array, but they don't persist between invocations.

Software: Apache 2.0.47 Trac 0.8.4 (CGI) Python 2.3

06/29/05 03:11:13 changed by mhuysamen@mhg.co.za

Got it working'''

Placing the FootNoteMacro into the site-wide wikimacros

Error: Failed to load processor FootNote
No macro or processor named 'FootNote' found

directory instead of the repository local

Error: Failed to load processor FootNote
No macro or processor named 'FootNote' found

wiki-macros directory did the trick.

Error: Failed to load processor FootNote
No macro or processor named 'FootNote' found

06/29/05 13:55:22 changed by anpaza@mail.ru

Some research shows that the footnotes[] sequence is empty on every macro invocation if it's copied into the non-systemwide storage (this explain both multiple 1 marks for multiple footnotes, and also explains that there's nothing below the footnote rule), like mhuysamen@mhg.co.za noted. This means that Trac unloads the local macros while keeping loaded all global macros.

I think that this is worth to be noted somewhere in installation instructions, since it seems there's a lot of people confused by this.

07/09/05 21:28:56 changed by athomas

Okay, thanks for investigating this guys. I've added a note about this on the FootNoteMacro page.

I can't really see a work-around for this unfortunately.

07/12/05 23:31:11 changed by athomas

  • version set to stable.

09/28/05 07:40:19 changed by athomas

  • status changed from reopened to closed.
  • resolution set to fixed.

This issue was fixed in [118], for trunk. About time, some might say.

06/07/07 04:53:00 changed by anonymous

  • release set to 0.10.
  • status changed from closed to reopened.
  • resolution deleted.

This macro is broken again in Trac 0.10.3 on Windows with TracD - same problem as decribed originally (numbers but no footnotes), regardless of which wiki-macros folder is used. I tried the downloaded ZIP and the trunk.

Is the one you are using on this site different, or has Trac changed to fix it (you are running (0.10.5dev)?

06/19/07 22:24:08 changed by athomas

This site is running the same version, and nothing in Trac has changed. Try enabling debug logging and see if anything useful shows up.

07/01/07 01:55:44 changed by anonymous

there is no wiki-macros dir under trac in 0.10 for python2.4. not in my setup, anyway.

05/21/08 07:31:45 changed by anonymous

Just an observation but I found that when I unzipped the download file on Solaris the file in the 0.9 subdirectory was called footnote.py

Unsurprisingly, only when I renamed the file to the FootNote?.py did things work as documented when using the macro name FootNote?.

Looks like a problem when preparing the download file.


Add/Change #13 (footnotes don't get added to the list)




Change Properties
Action